Skip to content

Commit ba0a660

Browse files
authored
Merge pull request #1415 from Haselnussbomber/domanenclavemanager
Replace ReconstructionBoxManager with DomanEnclaveManager
2 parents 5e4fcb8 + 512e894 commit ba0a660

File tree

4 files changed

+48
-2
lines changed

4 files changed

+48
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
using FFXIVClientStructs.FFXIV.Common.Component.Excel;
2+
3+
namespace FFXIVClientStructs.FFXIV.Client.Game;
4+
5+
// Client::Game::DomanEnclaveManager
6+
// Manager for Doman Enclave Reconstruction
7+
[GenerateInterop]
8+
[StructLayout(LayoutKind.Explicit, Size = 0xA8)]
9+
public unsafe partial struct DomanEnclaveManager {
10+
[StaticAddress("48 8B 15 ?? ?? ?? ?? 48 8B C8 48 83 C4 28", 3, isPointer: true)]
11+
public static partial DomanEnclaveManager* Instance();
12+
13+
[FieldOffset(0x08)] public bool IsLoaded;
14+
[FieldOffset(0x10)] public ExcelSheetWaiter* DomaStoryProgressSheetWaiter; // size: 0x50
15+
[FieldOffset(0x18)] public ExcelSheet* DomaStoryProgressSheet;
16+
/// <remarks> RowIds of DomaStoryProgress sheet. </remarks>
17+
[FieldOffset(0x20), FixedSizeArray] internal FixedSizeArray128<byte> _milestones;
18+
[FieldOffset(0xA0)] public DomanEnclaveState State;
19+
20+
[StructLayout(LayoutKind.Explicit, Size = 0x08)]
21+
public struct DomanEnclaveState {
22+
[FieldOffset(0x00)] public ushort Donated;
23+
/// <remarks> Index in the <see cref="Milestones" /> array. </remarks>
24+
[FieldOffset(0x02)] public byte CurrentMilestone;
25+
[FieldOffset(0x03)] public bool IsAcceptingDonations;
26+
/// <remarks> Add 100 to get the correct value. </remarks>
27+
[FieldOffset(0x04)] public byte Factor;
28+
[FieldOffset(0x06)] public ushort Allowance;
29+
}
30+
}

FFXIVClientStructs/FFXIV/Client/Game/ReconstructionBoxManager.cs

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ namespace FFXIVClientStructs.FFXIV.Client.Game;
33
// Client::Game::ReconstructionBoxManager
44
// Doman Enclave Reconstruction Box
55
[GenerateInterop]
6+
[Obsolete("Use DomanEnclaveManager instead.")]
67
[StructLayout(LayoutKind.Explicit, Size = 0xA8)]
78
public unsafe partial struct ReconstructionBoxManager {
89
[StaticAddress("48 8B 15 ?? ?? ?? ?? 48 8B C8 48 83 C4 28", 3, isPointer: true)]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
namespace FFXIVClientStructs.FFXIV.Common.Component.Excel;
2+
3+
// Common::Component::Excel::ExcelSheetWaiter
4+
[GenerateInterop(isInherited: true)]
5+
[StructLayout(LayoutKind.Explicit, Size = 0x30)]
6+
public unsafe partial struct ExcelSheetWaiter;

ida/data.yml

+11-2
Original file line numberDiff line numberDiff line change
@@ -8621,7 +8621,8 @@ classes:
86218621
0x140788CF0: GrandCompanyUpdateTask # (this) -> void
86228622
0x140788F70: PvPStateUpdateTask # (this) -> void
86238623
0x140789080: ToggleWXHBRightFocusFlag
8624-
0x1407F4B30: ToggleWXHBLeftFocusFlag
8624+
0x1407890E0: ToggleWXHBLeftFocusFlag
8625+
0x140789140: ToggleWXHBFocusFlags
86258626
0x14078C440: SetStandardHotbarShareState
86268627
0x14078C4B0: SetCrossHotbarShareState
86278628
0x14078E420: DeleteAllHotbars # (this, performReset) -> void?
@@ -14024,7 +14025,7 @@ classes:
1402414025
base: Client::Game::Event::Director
1402514026
funcs:
1402614027
0x140CAD360: ctor
14027-
Client::Game::ReconstructionBoxManager:
14028+
Client::Game::DomanEnclaveManager:
1402814029
instances:
1402914030
- ea: 0x142932230
1403014031
pointer: true
@@ -14037,6 +14038,14 @@ classes:
1403714038
0x1409744F0: Destroy
1403814039
0x140974550: HasInstance
1403914040
0x140974570: GetInstance
14041+
0x140974680: GetProgress
14042+
0x140974730: ReadPacket
14043+
0x140974A20: ctor
14044+
Client::Game::DomanEnclaveManager::DomanEnclaveState:
14045+
funcs:
14046+
0x1409743C0: ctor
14047+
0x1409743F0: ReadPacket
14048+
0x140974420: GetAllowance
1404014049
Client::Game::Event::EventFramework:
1404114050
instances:
1404214051
- ea: 0x14294F4F0

0 commit comments

Comments
 (0)