Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions FFXIVClientStructs/FFXIV/Client/UI/Agent/AgentLobby.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ public unsafe partial struct AgentLobby {
[FieldOffset(0xE30), FixedSizeArray] internal FixedSizeArray7<Utf8String> _unkUtf8Strings;

[FieldOffset(0x1240)] public sbyte ServiceAccountIndex;
[FieldOffset(0x1241)] public byte SelectedCharacterIndex;
[FieldOffset(0x1241)] public sbyte DisplayedCharacterIndex;
[FieldOffset(0x1241), Obsolete("Renamed to DisplayedCharacterIndex")] public byte SelectedCharacterIndex;

[FieldOffset(0x1248)] public ulong HoveredCharacterContentId;
[FieldOffset(0x1250)] public byte DataCenter;
Expand Down Expand Up @@ -67,7 +68,13 @@ public unsafe partial struct AgentLobby {
[FieldOffset(0x12B8)] public long QueueTimeSinceLastUpdate;
[FieldOffset(0x12C8)] public int QueuePosition;

[FieldOffset(0x12CD)] public sbyte HoveredCharacterIndex; // index in CharaSelectCharacterList
/// <summary>
/// Set to 60 when logout is requested, decremented by 1 each frame.
/// When it reaches 0, the game sets LobbyUIStage to 1.
/// </summary>
[FieldOffset(0x12CD)] public byte FramesUntilLogout;

[FieldOffset(0x12CD), Obsolete("Use DisplayedCharacterIndex")] public sbyte HoveredCharacterIndex; // index in CharaSelectCharacterList

[FieldOffset(0x12D0)] public ulong SelectedCharacterContentId;

Expand Down Expand Up @@ -99,8 +106,11 @@ public unsafe partial struct AgentLobby {
[MemberFunction("40 53 56 57 41 57 48 81 EC ?? ?? ?? ?? 48 8B 05 ?? ?? ?? ?? 48 33 C4 48 89 84 24 ?? ?? ?? ?? 8B 99")]
public partial void UpdateLoginPosition(int newPosition);

/// <summary>
/// <seealso cref="FramesUntilLogout"/>
/// </summary>
[MemberFunction("40 56 41 56 41 57 48 83 EC 40 80 B9")]
public partial void HandleLogout(bool isExiting, byte a3); // a3 is some kind of frame-based countdown for the lobby
public partial void HandleLogout(bool isExiting, byte framesUntilLogout);
}

[GenerateInterop]
Expand Down
Loading