Skip to content

Commit

Permalink
Update AgentContentsFinder.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Caraxi committed Sep 25, 2024
1 parent 6db2841 commit 3ea098e
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions FFXIVClientStructs/FFXIV/Client/UI/Agent/AgentContentsFinder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ public unsafe partial struct AgentContentsFinder {

[FieldOffset(0x7D8)] public AgentContentsFinderReward RewardSub;

[FieldOffset(0x1C70)] public StdVector<Pointer<Contents>> ContentList;
[FieldOffset(0x1C88)] public StdVector<ContentsId> SelectedContent;

[FieldOffset(0x1CA4)] public int SelectedDutyId; // ContentFinderCondition rowId for duties, ContentRoulette rowId for roulette
[FieldOffset(0x1CB0)] public byte NumCollectedRewards; // Value used for "Reward already received"
[FieldOffset(0x1CB1)] public byte HasRouletteSelected; // Prevents more roulettes from being selected
Expand Down Expand Up @@ -46,6 +49,25 @@ public enum ContentsRouletteRole : byte {
None = 3,
}

[StructLayout(LayoutKind.Explicit, Size = 0xF0)]
public struct Contents {
[FieldOffset(0x00)] public Utf8String RequiredLevel;
[FieldOffset(0x68)] public Utf8String Name;
[FieldOffset(0xD0)] public ContentsId Id;
}

[StructLayout(LayoutKind.Explicit, Size = 0x8)]
public struct ContentsId {
public enum ContentsType : byte {
None,
Roulette, // Id refers to ContentRoulette sheet
Regular, // Id refers to ContentFinderCondition sheet
}

[FieldOffset(0x0)] public ContentsType ContentType;
[FieldOffset(0x4)] public uint Id;
}

[GenerateInterop]
[StructLayout(LayoutKind.Explicit, Size = 0x1470)]
public unsafe partial struct AgentContentsFinderReward {
Expand Down

0 comments on commit 3ea098e

Please sign in to comment.