mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-15 13:14:17 +01:00
feat: expose PF last patch timestamp
This commit is contained in:
parent
76edc0c7d4
commit
e137598604
2 changed files with 8 additions and 1 deletions
|
|
@ -51,7 +51,7 @@ namespace Dalamud.Game.Gui.PartyFinder.Internal
|
|||
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 3)]
|
||||
private readonly byte[] header7; // all zero in every pf I've examined
|
||||
|
||||
private readonly uint lastPatchHotfixTimestamp; // last time the servers were restarted?
|
||||
internal readonly uint LastPatchHotfixTimestamp; // last time the servers were restarted?
|
||||
internal readonly ushort SecondsRemaining;
|
||||
|
||||
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 6)]
|
||||
|
|
|
|||
|
|
@ -54,6 +54,7 @@ namespace Dalamud.Game.Gui.PartyFinder.Types
|
|||
this.MinimumItemLevel = listing.MinimumItemLevel;
|
||||
this.Parties = listing.NumParties;
|
||||
this.SlotsAvailable = listing.NumSlots;
|
||||
this.LastPatchHotfixTimestamp = listing.LastPatchHotfixTimestamp;
|
||||
this.JobsPresent = listing.JobsPresent
|
||||
.Select(id => new Lazy<ClassJob>(
|
||||
() => id == 0
|
||||
|
|
@ -143,6 +144,12 @@ namespace Dalamud.Game.Gui.PartyFinder.Types
|
|||
/// </summary>
|
||||
public byte SlotsAvailable { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the time at which the server this listings is on last restarted for a patch/hotfix.
|
||||
/// Probably.
|
||||
/// </summary>
|
||||
public uint LastPatchHotfixTimestamp { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets a list of player slots that the Party Finder is accepting.
|
||||
/// </summary>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue