Class SaveSlotSummary
Lightweight, metadata-only projection of a save slot, used to render a slot picker without
loading the slot's full SaveDocument payload.
Inheritance
SaveSlotSummary
Assembly: Serenity.GameSave.Domain.dll
Syntax
public sealed class SaveSlotSummary
Constructors
SaveSlotSummary(int, bool, string, long, double, double)
Declaration
public SaveSlotSummary(int slotIndex, bool isOccupied, string label, long savedAtUtcTicks, double playtimeSeconds, double completionPercent)
Parameters
Properties
CompletionPercent
The completion percentage (0-100) at the time of the save.
Declaration
public double CompletionPercent { get; }
Property Value
IsOccupied
Whether this slot currently holds a save.
Declaration
public bool IsOccupied { get; }
Property Value
Label
The save's display label, or null when the slot is unoccupied.
Declaration
public string Label { get; }
Property Value
PlaytimeSeconds
The accumulated playtime, in seconds, at the time of the save.
Declaration
public double PlaytimeSeconds { get; }
Property Value
SavedAtUtcTicks
The UTC timestamp (in ticks) at which this save was last written. Zero when unoccupied.
Declaration
public long SavedAtUtcTicks { get; }
Property Value
SlotIndex
The slot's zero-based index.
Declaration
public int SlotIndex { get; }
Property Value
Methods
Empty(int)
Creates the shared representation of an empty, never-saved slot at slotIndex.
Declaration
public static SaveSlotSummary Empty(int slotIndex)
Parameters
| Type |
Name |
Description |
| int |
slotIndex |
|
Returns
ToString()
Declaration
public override string ToString()
Returns
Overrides