logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Struct CheckpointSnapshot

    Opaque container for serialized game state at a checkpoint. The checkpoint system treats this as a black box—it does not interpret the content.

    Implements
    IEquatable<CheckpointSnapshot>
    Inherited Members
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    Namespace: Serenity.Checkpoint.Domain.ValueObjects
    Assembly: Serenity.Checkpoint.Domain.dll
    Syntax
    public readonly struct CheckpointSnapshot : IEquatable<CheckpointSnapshot>

    Constructors

    CheckpointSnapshot(CheckpointId, CheckpointSlot, byte[], CheckpointMetadata)

    Creates a new CheckpointSnapshot.

    Declaration
    public CheckpointSnapshot(CheckpointId id, CheckpointSlot slot, byte[] data, CheckpointMetadata metadata)
    Parameters
    Type Name Description
    CheckpointId id

    The checkpoint identity.

    CheckpointSlot slot

    The logical slot.

    byte[] data

    The raw serialized game state data.

    CheckpointMetadata metadata

    The checkpoint metadata.

    Fields

    Data

    The raw serialized game state data (opaque).

    Declaration
    public readonly byte[] Data
    Field Value
    Type Description
    byte[]

    Id

    The checkpoint identity.

    Declaration
    public readonly CheckpointId Id
    Field Value
    Type Description
    CheckpointId

    Metadata

    The metadata associated with this checkpoint.

    Declaration
    public readonly CheckpointMetadata Metadata
    Field Value
    Type Description
    CheckpointMetadata

    Slot

    The logical slot this snapshot occupies.

    Declaration
    public readonly CheckpointSlot Slot
    Field Value
    Type Description
    CheckpointSlot

    Properties

    HasData

    Gets whether this snapshot contains any data.

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

    Methods

    Equals(CheckpointSnapshot)

    Declaration
    public bool Equals(CheckpointSnapshot other)
    Parameters
    Type Name Description
    CheckpointSnapshot other
    Returns
    Type Description
    bool

    Equals(object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    object obj
    Returns
    Type Description
    bool
    Overrides
    ValueType.Equals(object)

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int
    Overrides
    ValueType.GetHashCode()

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    ValueType.ToString()

    Operators

    operator ==(CheckpointSnapshot, CheckpointSnapshot)

    Declaration
    public static bool operator ==(CheckpointSnapshot left, CheckpointSnapshot right)
    Parameters
    Type Name Description
    CheckpointSnapshot left
    CheckpointSnapshot right
    Returns
    Type Description
    bool

    operator !=(CheckpointSnapshot, CheckpointSnapshot)

    Declaration
    public static bool operator !=(CheckpointSnapshot left, CheckpointSnapshot right)
    Parameters
    Type Name Description
    CheckpointSnapshot left
    CheckpointSnapshot right
    Returns
    Type Description
    bool

    Implements

    IEquatable<T>
    In this article
    © 2026 Serenity. All Rights Reserved