forked from sruon/ffxivlib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
FATE.cs
53 lines (37 loc) · 1.32 KB
/
FATE.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
using System;
using System.Runtime.InteropServices;
namespace ffxivlib
{
public class FATE : BaseObject<FATE.FATEINFO>
{
#region Constructor
public FATE(FATEINFO structure, IntPtr address)
: base(structure, address)
{
Initialize();
}
#endregion
#region Properties
public int Unk_1 { get; set; }
public int Unk_2 { get; set; }
public int Id { get; set; }
public int Unk_3 { get; set; }
public int PercentUntilReady { get; set; }
public bool IsReady { get; set; }
public int Cost { get; set; }
public int Unk_4 { get; set; }
#endregion
#region Unmanaged structure
[StructLayout(LayoutKind.Explicit, Pack = 1)]
public struct FATEINFO
{
[MarshalAs(UnmanagedType.I4)] [FieldOffset(0x18)] public int Id;
[MarshalAs(UnmanagedType.I4)] [FieldOffset(0xAE)] public string Name;
[MarshalAs(UnmanagedType.I4)] [FieldOffset(0x330)] public float X;
[MarshalAs(UnmanagedType.I4)] [FieldOffset(0x334)] public float Z;
[MarshalAs(UnmanagedType.I4)] [FieldOffset(0x338)] public float Y;
[MarshalAs(UnmanagedType.I1)] [FieldOffset(0x344)] public float Radius;
};
#endregion
}
}