forked from aers/FFXIVClientStructs
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add DataCenterHelper and WorldHelper
- Loading branch information
1 parent
ad05c8d
commit a7d96d2
Showing
4 changed files
with
79 additions
and
8 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
FFXIVClientStructs/FFXIV/Client/UI/Misc/DataCenterHelper.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using FFXIVClientStructs.FFXIV.Client.System.Framework; | ||
|
||
namespace FFXIVClientStructs.FFXIV.Client.UI.Misc; | ||
|
||
// Client::UI::Misc::DataCenterHelper | ||
[StructLayout(LayoutKind.Explicit, Size = 0x20)] | ||
public unsafe partial struct DataCenterHelper { | ||
public static DataCenterHelper* Instance() => Framework.Instance()->GetUiModule()->GetDataCenterHelper(); | ||
|
||
/// <summary> | ||
/// Contains all data centers of the current region. | ||
/// </summary> | ||
[FieldOffset(0x08)] public StdVector<DataCenter> DataCenters; | ||
|
||
[StructLayout(LayoutKind.Explicit, Size = 0x22)] | ||
public partial struct DataCenter { | ||
[FieldOffset(0x00)] public ushort Region; | ||
/// <remarks> RowId of sheet WorldDCGroupType </remarks> | ||
[FieldOffset(0x02)] public uint RowId; | ||
[FieldOffset(0x06), FixedString("Name")] public fixed byte NameData[32]; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using FFXIVClientStructs.FFXIV.Client.System.Framework; | ||
|
||
namespace FFXIVClientStructs.FFXIV.Client.UI.Misc; | ||
|
||
// Client::UI::Misc::WorldHelper | ||
[StructLayout(LayoutKind.Explicit, Size = 0x40)] | ||
public unsafe partial struct WorldHelper { | ||
public static WorldHelper* Instance() => Framework.Instance()->GetUiModule()->GetWorldHelper(); | ||
|
||
[FieldOffset(0x08)] public StdMap<ushort, World> AllWorlds; | ||
/// <summary> Contains all worlds of the current data center. </summary> | ||
[FieldOffset(0x18)] public StdMap<ushort, World> DataCenterWorlds; | ||
// [FieldOffset(0x28)] public ClassThatLoadsWorlds WorldLoader; // size: 0x10 | ||
[FieldOffset(0x38)] public bool IsLoaded; | ||
|
||
[StructLayout(LayoutKind.Explicit, Size = 0x22)] | ||
public partial struct World { | ||
[FieldOffset(0x00)] public byte DataCenter; | ||
[FieldOffset(0x01)] public bool IsPublic; | ||
[FieldOffset(0x02), FixedString("Name")] public fixed byte NameData[32]; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters