logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    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
    object
    SaveSlotSummary
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    Namespace: Serenity.GameSave.Domain.ValueObjects
    Assembly: Serenity.GameSave.Domain.dll
    Syntax
    public sealed class SaveSlotSummary

    Constructors

    SaveSlotSummary(int, bool, string, long, double, double)

    Creates a new SaveSlotSummary.

    Declaration
    public SaveSlotSummary(int slotIndex, bool isOccupied, string label, long savedAtUtcTicks, double playtimeSeconds, double completionPercent)
    Parameters
    Type Name Description
    int slotIndex
    bool isOccupied
    string label
    long savedAtUtcTicks
    double playtimeSeconds
    double completionPercent

    Properties

    CompletionPercent

    The completion percentage (0-100) at the time of the save.

    Declaration
    public double CompletionPercent { get; }
    Property Value
    Type Description
    double

    IsOccupied

    Whether this slot currently holds a save.

    Declaration
    public bool IsOccupied { get; }
    Property Value
    Type Description
    bool

    Label

    The save's display label, or null when the slot is unoccupied.

    Declaration
    public string Label { get; }
    Property Value
    Type Description
    string

    PlaytimeSeconds

    The accumulated playtime, in seconds, at the time of the save.

    Declaration
    public double PlaytimeSeconds { get; }
    Property Value
    Type Description
    double

    SavedAtUtcTicks

    The UTC timestamp (in ticks) at which this save was last written. Zero when unoccupied.

    Declaration
    public long SavedAtUtcTicks { get; }
    Property Value
    Type Description
    long

    SlotIndex

    The slot's zero-based index.

    Declaration
    public int SlotIndex { get; }
    Property Value
    Type Description
    int

    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
    Type Description
    SaveSlotSummary

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    object.ToString()
    In this article
    © 2026 Serenity. All Rights Reserved