diff --git a/FFXIVClientStructs/FFXIV/Client/Game/Control/PoseTypeInfo.cs b/FFXIVClientStructs/FFXIV/Client/Game/Control/PoseTypeInfo.cs new file mode 100644 index 0000000000..9b8237d42e --- /dev/null +++ b/FFXIVClientStructs/FFXIV/Client/Game/Control/PoseTypeInfo.cs @@ -0,0 +1,29 @@ +using FFXIVClientStructs.FFXIV.Client.Game.Character; + +namespace FFXIVClientStructs.FFXIV.Client.Game.Control; + +// Client::Game::Control::PoseTypeInfo +[GenerateInterop] +[StructLayout(LayoutKind.Explicit, Size = 0x20)] +public unsafe partial struct PoseTypeInfo { + /// + /// A pointer to an array the size of containing emote ids. + /// + [FieldOffset(0x00)] public ushort* Emotes; + /// + /// Timeline this PoseType uses when PoseState is 0 + /// + [FieldOffset(0x08)] public ushort BaseTimelineId; + /// + /// When the local player's timeline in slot 0 matches the game calls this method to see if this PoseType is applicable, + /// if the method pointer is null then it's considered applicable by default. + /// + [FieldOffset(0x10)] public delegate* unmanaged ShouldApplyPoseType; + [FieldOffset(0x18)] public byte PoseCount; + [FieldOffset(0x19)] public bool CanBeRandom; + + /// + /// A span of emote ids the size of . + /// + public Span EmotesSpan => new(Emotes, PoseCount); +} diff --git a/FFXIVClientStructs/FFXIV/Client/Game/Control/PoseTypeInfoList.cs b/FFXIVClientStructs/FFXIV/Client/Game/Control/PoseTypeInfoList.cs new file mode 100644 index 0000000000..ebea5c01c3 --- /dev/null +++ b/FFXIVClientStructs/FFXIV/Client/Game/Control/PoseTypeInfoList.cs @@ -0,0 +1,13 @@ +namespace FFXIVClientStructs.FFXIV.Client.Game.Control; + +// Client::Game::Control::PoseTypeInfoList +[GenerateInterop] +[StructLayout(LayoutKind.Explicit, Size = 0x20 * 8)] +public unsafe partial struct PoseTypeInfoList { + [StaticAddress("48 8D 15 ?? ?? ?? ?? 49 C1 E1", 3)] + public static partial PoseTypeInfoList* Instance(); + /// + /// One entry for every + /// + [FieldOffset(0x0), FixedSizeArray] internal FixedSizeArray8 _poseTypeInfo; +} diff --git a/ida/data.yml b/ida/data.yml index 778943ca6c..38f6853cab 100644 --- a/ida/data.yml +++ b/ida/data.yml @@ -152,6 +152,7 @@ globals: 0x142F78FA0: ?s_instance@?$hkSingleton@VhkBuiltinTypeRegistry@@@@2PEAVhkBuiltinTypeRegistry@@EA 0x142F78FF0: ?s_instance@?$hkSingleton@VhkSerializeDeprecated@@@@2PEAVhkSerializeDeprecated@@EA 0x142F915B8: ?s_instance@?$hkSingleton@VhkVtableClassRegistry@@@@2PEAVhkVtableClassRegistry@@EA + 0x14217cc40: g_Client::Game::Control::PoseTypeInfoList functions: 0x14005B120: VectorConstructorIterator