Skip to content

Commit

Permalink
Add AgentInventoryContext::InventoryContextEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
Haselnussbomber committed Jan 11, 2025
1 parent c7de089 commit 7dd4fb3
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
using FFXIVClientStructs.FFXIV.Client.System.String;
using FFXIVClientStructs.FFXIV.Client.UI.Agent;
using FFXIVClientStructs.FFXIV.Common.Component.Excel;
using FFXIVClientStructs.FFXIV.Component.GUI;

namespace FFXIVClientStructs.FFXIV.Client.Game.Event;

// Client::Game::Event::ShopEventHandler
// Client::Game::Event::EventHandler
// Client::UI::Agent::AgentInventoryContext::InventoryContextEvent
[GenerateInterop]
[Inherits<EventHandler>]
[Inherits<EventHandler>, Inherits<AgentInventoryContext.InventoryContextEvent>]
[StructLayout(LayoutKind.Explicit, Size = 0x32F0)]
public unsafe partial struct ShopEventHandler {
// 0x210: second base class, related to context menu integration for selling items
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ namespace FFXIVClientStructs.FFXIV.Client.UI.Agent;
// Client::UI::Agent::AgentHousingPlant
// Client::UI::Agent::AgentInterface
// Component::GUI::AtkModuleInterface::AtkEventInterface
// Client::UI::Agent::AgentInventoryContext::InventoryContextEvent
[Agent(AgentId.HousingPlant)]
[GenerateInterop]
[Inherits<AgentInterface>]
[Inherits<AgentInterface>, Inherits<AgentInventoryContext.InventoryContextEvent>]
[StructLayout(LayoutKind.Explicit, Size = 0x950)]
public unsafe partial struct AgentHousingPlant {
[FieldOffset(0x40)] public uint ContextAddonId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,8 @@ public bool IsContextItemDisabled(int index) {

[MemberFunction("E8 ?? ?? ?? ?? 48 83 C4 ?? 5B C3 8B 83")]
public partial void LowerItemQuality(InventoryItem* itemSlot, InventoryType inventory, int slot, uint addonId);

[GenerateInterop(isInherited: true)]
[StructLayout(LayoutKind.Explicit, Size = 0x8)]
public partial struct InventoryContextEvent; // contains 2 vfs
}
31 changes: 31 additions & 0 deletions ida/data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4934,13 +4934,19 @@ classes:
vtbls:
- ea: 0x141F38A88
base: Client::UI::Agent::AgentInterface
- ea: 0x141F38B00
base: Client::UI::Agent::AgentInventoryContext::InventoryContextEvent
funcs:
0x1402E2BF0: ctor
0x1402E2CF0: Finalizer
Client::UI::Agent::AgentFreeCompanyChest:
vtbls:
- ea: 0x141F38E98
base: Client::UI::Agent::AgentInterface
- ea: 0x141F38F10
base: Client::UI::Agent::AgentInventoryContext::InventoryContextEvent
- ea: 0x141F38F20
base: Client::UI::Info::InfoEventHandlerInterface
funcs:
0x1403005B0: ctor
0x140300770: Finalizer # inlined @ 0x1403CD9F0
Expand Down Expand Up @@ -9009,6 +9015,9 @@ classes:
base: Client::UI::Agent::AgentInterface
funcs:
0x140A828F0: ctor
Client::UI::Agent::AgentInventoryContext::InventoryContextEvent:
vtbls:
- ea: 0x141F36778
Client::UI::Agent::AgentInventoryContext:
vtbls:
- ea: 0x141F36788
Expand Down Expand Up @@ -9113,6 +9122,8 @@ classes:
vtbls:
- ea: 0x141F9ED58
base: Client::UI::Agent::AgentInterface
- ea: 0x141F9EDD0
base: Client::UI::Agent::AgentInventoryContext::InventoryContextEvent
funcs:
0x140AA69B0: ctor
0x140AA6A80: Finalizer
Expand Down Expand Up @@ -9260,6 +9271,8 @@ classes:
vtbls:
- ea: 0x141F9D650
base: Client::UI::Agent::AgentInterface
- ea: 0x141F9D6C8
base: Client::UI::Agent::AgentInventoryContext::InventoryContextEvent
funcs:
0x140A68450: ctor
0x140A68650: Finalizer
Expand Down Expand Up @@ -9536,6 +9549,12 @@ classes:
vtbls:
- ea: 0x1420801F0
base: Client::UI::Agent::AgentInterface
- ea: 0x142080268
base: Client::UI::Agent::AgentContext::AgentContextUpdateChecker
- ea: 0x142080270
base: Client::UI::Agent::AgentInventoryContext::InventoryContextEvent
- ea: 0x141F382A8
base: Client::UI::Info::InfoEventHandlerInterface
funcs:
0x14149F440: ctor
0x14149FC60: Finalizer
Expand Down Expand Up @@ -9567,6 +9586,8 @@ classes:
vtbls:
- ea: 0x142080518
base: Client::UI::Agent::AgentInterface
- ea: 0x142080590
base: Client::UI::Agent::AgentInventoryContext::InventoryContextEvent
funcs:
0x1414C1F80: ctor
Client::UI::Agent::AgentPersonalRoomPortal:
Expand Down Expand Up @@ -9598,6 +9619,8 @@ classes:
vtbls:
- ea: 0x142080698
base: Client::UI::Agent::AgentInterface
- ea: 0x142080710
base: Client::UI::Agent::AgentInventoryContext::InventoryContextEvent
funcs:
0x1414C65A0: ctor
Client::UI::Agent::AgentTreasureHunt:
Expand Down Expand Up @@ -9673,6 +9696,8 @@ classes:
vtbls:
- ea: 0x141F9D740
base: Client::UI::Agent::AgentInterface
- ea: 0x141F9D7B8
base: Client::UI::Agent::AgentInventoryContext::InventoryContextEvent
funcs:
0x140A6FF30: ctor
0x140A70040: Finalizer
Expand Down Expand Up @@ -9702,6 +9727,8 @@ classes:
vtbls:
- ea: 0x141F9EDE0
base: Client::UI::Agent::AgentInterface
- ea: 0x141F9EE58
base: Client::UI::Agent::AgentInventoryContext::InventoryContextEvent
funcs:
0x140AA7BB0: ctor
Client::UI::Agent::AgentRelicSphereUpgrade:
Expand Down Expand Up @@ -12377,6 +12404,8 @@ classes:
vtbls:
- ea: 0x142083C78
base: Client::Game::Event::EventHandler
- ea: 0x1420844E0
base: Client::UI::Agent::AgentInventoryContext::InventoryContextEvent
funcs:
0x141591F80: ctor
0x141592310: CreateInstance
Expand Down Expand Up @@ -12506,6 +12535,8 @@ classes:
vtbls:
- ea: 0x142085670
base: Client::Game::Event::EventHandler
- ea: 0x142085ED8
base: Client::UI::Agent::AgentInventoryContext::InventoryContextEvent
Client::Game::InstanceContent::ContentTalkEventHandler:
vtbls:
- ea: 0x14211D2A8
Expand Down

0 comments on commit 7dd4fb3

Please sign in to comment.