mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-23 08:59: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)]
|
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 3)]
|
||||||
private readonly byte[] header7; // all zero in every pf I've examined
|
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;
|
internal readonly ushort SecondsRemaining;
|
||||||
|
|
||||||
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 6)]
|
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 6)]
|
||||||
|
|
|
||||||
|
|
@ -54,6 +54,7 @@ namespace Dalamud.Game.Gui.PartyFinder.Types
|
||||||
this.MinimumItemLevel = listing.MinimumItemLevel;
|
this.MinimumItemLevel = listing.MinimumItemLevel;
|
||||||
this.Parties = listing.NumParties;
|
this.Parties = listing.NumParties;
|
||||||
this.SlotsAvailable = listing.NumSlots;
|
this.SlotsAvailable = listing.NumSlots;
|
||||||
|
this.LastPatchHotfixTimestamp = listing.LastPatchHotfixTimestamp;
|
||||||
this.JobsPresent = listing.JobsPresent
|
this.JobsPresent = listing.JobsPresent
|
||||||
.Select(id => new Lazy<ClassJob>(
|
.Select(id => new Lazy<ClassJob>(
|
||||||
() => id == 0
|
() => id == 0
|
||||||
|
|
@ -143,6 +144,12 @@ namespace Dalamud.Game.Gui.PartyFinder.Types
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public byte SlotsAvailable { get; }
|
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>
|
/// <summary>
|
||||||
/// Gets a list of player slots that the Party Finder is accepting.
|
/// Gets a list of player slots that the Party Finder is accepting.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue