Skip to content

Commit

Permalink
Update QuestManager
Browse files Browse the repository at this point in the history
  • Loading branch information
Haselnussbomber committed Nov 15, 2024
1 parent ca4649f commit d2834c4
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions FFXIVClientStructs/FFXIV/Client/Game/QuestManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,25 @@ namespace FFXIVClientStructs.FFXIV.Client.Game;

// Client::Game::QuestManager
[GenerateInterop]
[StructLayout(LayoutKind.Explicit, Size = 0xFD0)]
[StructLayout(LayoutKind.Explicit, Size = 0x10D9)]
public unsafe partial struct QuestManager {
[MemberFunction("E8 ?? ?? ?? ?? 66 BA 10 0C")]
public static partial QuestManager* Instance();

[FieldOffset(0x10), FixedSizeArray] internal FixedSizeArray30<QuestWork> _normalQuests;
[FieldOffset(0x5D8), FixedSizeArray] internal FixedSizeArray12<DailyQuestWork> _dailyQuests;
[FieldOffset(0x6C8), FixedSizeArray] internal FixedSizeArray5<TrackingWork> _trackedQuests;
[FieldOffset(0xC48), FixedSizeArray] internal FixedSizeArray17<BeastReputationWork> _beastReputation;
[FieldOffset(0xD58), FixedSizeArray] internal FixedSizeArray16<LeveWork> _leveQuests;
[FieldOffset(0xED8)] public byte NumLeveAllowances;
[FieldOffset(0x6C8), FixedSizeArray] internal FixedSizeArray10<TrackingWork> _trackedQuests;
[FieldOffset(0xCA8), FixedSizeArray] internal FixedSizeArray18<BeastReputationWork> _beastReputation;
[FieldOffset(0xDC8), FixedSizeArray] internal FixedSizeArray16<LeveWork> _leveQuests;
[FieldOffset(0xF48)] public byte NumLeveAllowances;

/// <remarks>
/// This behaves weirdly in that it does not reset but add on top when logging onto different characters,
/// but does correspond to the number of accepted quests + prior accepted quests of other characters.
/// </remarks>>
[FieldOffset(0xFC8)] public byte NumAcceptedQuests;
[FieldOffset(0x1038)] public byte NumAcceptedQuests;

// Could not find this in 7.0
//[FieldOffset(0xF50)] public byte NumAcceptedLeveQuests;
[FieldOffset(0x10D8)] public byte NumAcceptedLeveQuests;


[MemberFunction("E8 ?? ?? ?? ?? 43 88 84 3E ?? ?? ?? ??")]
Expand Down

0 comments on commit d2834c4

Please sign in to comment.