From 1fb9414cf85625c3f6e6595094999d0684ece677 Mon Sep 17 00:00:00 2001 From: RokasKil Date: Wed, 25 Nov 2026 20:58:15 +0200 Subject: [PATCH 1/2] Add Client::Game::Control::PoseTypeInfoList --- .../FFXIV/Client/Game/Control/PoseTypeInfo.cs | 29 +++++++++++++++++++ .../Client/Game/Control/PoseTypeInfoList.cs | 13 +++++++++ ida/data.yml | 1 + 3 files changed, 43 insertions(+) create mode 100644 FFXIVClientStructs/FFXIV/Client/Game/Control/PoseTypeInfo.cs create mode 100644 FFXIVClientStructs/FFXIV/Client/Game/Control/PoseTypeInfoList.cs 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..94521653a2 --- /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 = 0x8 * 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 From 814a567055ff57d2948f7ea1d4326171784e0d66 Mon Sep 17 00:00:00 2001 From: Rokas <55197768+RokasKil@users.noreply.github.com> Date: Wed, 25 Nov 2026 21:15:59 +0200 Subject: [PATCH 2/2] Fix PoseTypeInfoList size --- .../FFXIV/Client/Game/Control/PoseTypeInfoList.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FFXIVClientStructs/FFXIV/Client/Game/Control/PoseTypeInfoList.cs b/FFXIVClientStructs/FFXIV/Client/Game/Control/PoseTypeInfoList.cs index 94521653a2..ebea5c01c3 100644 --- a/FFXIVClientStructs/FFXIV/Client/Game/Control/PoseTypeInfoList.cs +++ b/FFXIVClientStructs/FFXIV/Client/Game/Control/PoseTypeInfoList.cs @@ -2,7 +2,7 @@ namespace FFXIVClientStructs.FFXIV.Client.Game.Control; // Client::Game::Control::PoseTypeInfoList [GenerateInterop] -[StructLayout(LayoutKind.Explicit, Size = 0x8 * 8)] +[StructLayout(LayoutKind.Explicit, Size = 0x20 * 8)] public unsafe partial struct PoseTypeInfoList { [StaticAddress("48 8D 15 ?? ?? ?? ?? 49 C1 E1", 3)] public static partial PoseTypeInfoList* Instance();