Skip to content

Commit

Permalink
Add HwdManager/HwdDevEventHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
Haselnussbomber committed Feb 23, 2025
1 parent 67a89c1 commit eadc292
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 5 deletions.
1 change: 1 addition & 0 deletions FFXIVClientStructs/FFXIV/Client/Game/Event/EventHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ public enum EventHandlerType : ushort {
DisposalShop = 0x0035,
PreHandler = 0x0036, // checks quest completion before handling something, for example opening the Scrip Exchange
TripleTriadCompetition = 0x0037,
HwdDev = 0x0038, // Ishgardian Restoration (Firmament / Heavensward Development?!)
Salvage = 0x0039, // Desynthesis (0x390000), Materia Extraction (0x390001), Aetherial Reduction (0x390002)
InclusionShop = 0x003A,
CollectablesShop = 0x003B,
Expand Down
19 changes: 19 additions & 0 deletions FFXIVClientStructs/FFXIV/Client/Game/Event/HwdDevEventHandler.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
using FFXIVClientStructs.FFXIV.Client.System.String;

namespace FFXIVClientStructs.FFXIV.Client.Game.Event;

// Client::Game::Event::HwdDevEventHandler
// Client::Game::Event::EventHandler
[GenerateInterop]
[Inherits<EventHandler>]
[StructLayout(LayoutKind.Explicit, Size = 0x320)]
public unsafe partial struct HwdDevEventHandler {
[FieldOffset(0x210)] public byte DevelopmentLevel;

[FieldOffset(0x218)] public int NextTimestamp;
[FieldOffset(0x21C)] public bool IsInProgress;
[FieldOffset(0x21D)] public bool IsComplete;

[FieldOffset(0x240)] public Utf8String ToDoLine1;
[FieldOffset(0x2A8)] public Utf8String ToDoLine2;
}
17 changes: 17 additions & 0 deletions FFXIVClientStructs/FFXIV/Client/Game/HwdManager.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using FFXIVClientStructs.FFXIV.Client.Game.Event;

namespace FFXIVClientStructs.FFXIV.Client.Game;

// Client::Game::HwdManager
// Manager for Firmament (Ishgardian Restoration)
[GenerateInterop]
[StructLayout(LayoutKind.Explicit, Size = 0x68)]
public unsafe partial struct HwdManager {
[StaticAddress("48 8B 05 ?? ?? ?? ?? 48 8B 4C 24 ?? 0F B6 50 11", 3, isPointer: true)]
public static partial MirageManager* Instance();

[FieldOffset(0x11)] public byte DevelopmentLevel;
[FieldOffset(0x12)] public ushort TerritoryTypeId;

[FieldOffset(0x40)] public HwdDevEventHandler* HwdDevEventHandler;
}
12 changes: 7 additions & 5 deletions ida/data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10832,7 +10832,7 @@ classes:
- ea: 0x141F96038
base: Client::UI::Agent::AgentInterface
funcs:
0x1418D4710: ctor
0x140A321D0: ctor
Client::UI::Agent::AgentLeveQuest:
vtbls:
- ea: 0x141FBEF38
Expand Down Expand Up @@ -13601,10 +13601,6 @@ classes:
vtbls:
- ea: 0x142121CD8
base: Client::Game::Event::EventHandler
Client::Game::Event::ContentEntryEventHandler: # 0x2C
vtbls:
- ea: 0x1421B4ED0
base: Client::Game::Event::EventHandler
Client::Game::Event::VerminionEventHandler: # 0x2D
vtbls:
- ea: 0x141FB60B8
Expand Down Expand Up @@ -13655,6 +13651,12 @@ classes:
base: Client::Game::Event::EventHandler
funcs:
0x141829090: ctor
Client::Game::Event::HwdDevEventHandler: # 0x38
vtbls:
- ea: 0x1421B4ED0
base: Client::Game::Event::EventHandler
funcs:
0x1418D3A20: ctor
Client::Game::Event::SalvageEventHandler: # 0x39
vtbls:
- ea: 0x1421A9D50
Expand Down

0 comments on commit eadc292

Please sign in to comment.