-
Notifications
You must be signed in to change notification settings - Fork 0
/
Acp.cs
38 lines (28 loc) · 1.2 KB
/
Acp.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
using System.Runtime.InteropServices;
using Ray2Mod.Game.Structs;
using Ray2Mod.Game.Structs.SPO;
namespace R2ObjView
{
public static unsafe class Acp
{
#region HIE
public delegate bool XHIE_tdfnEnumSpoCallback(SuperObject* p_stSpo);
[DllImport("ACP_Ray2.dll", CallingConvention = CallingConvention.Cdecl)]
public static extern string XHIE_fn_szGetObjectName(SuperObject* p_stSpo, XHIE_OI_TYPE ulInfoType);
[DllImport("ACP_Ray2.dll", CallingConvention = CallingConvention.Cdecl)]
public static extern int XHIE_fn_lEnumSpoChildren(SuperObject* p_stSpo, XHIE_tdfnEnumSpoCallback p_fnCallback);
#endregion
#region AI
public delegate bool XAI_tdfnEnumDsgVarCallback(byte ucIndex, DsgVarType ulType, void *pCurrentValue, void *pInitValue, void *pModelInitValue);
[DllImport("ACP_Ray2.dll", CallingConvention = CallingConvention.Cdecl)]
public static extern int XAI_fn_lEnumSpoDsgVars(SuperObject* p_stSpo, XAI_tdfnEnumDsgVarCallback p_fnCallback);
#endregion
public enum XHIE_OI_TYPE
{
TOI_FAMILY,
TOI_MODEL,
TOI_INSTANCE,
OI_TYPE_COUNT
}
}
}