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.
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
Fields
Data
The raw serialized game state data (opaque).
Declaration
public readonly byte[] Data
Field Value
Id
Declaration
public readonly CheckpointId Id
Field Value
Metadata
The metadata associated with this checkpoint.
Declaration
public readonly CheckpointMetadata Metadata
Field Value
Slot
The logical slot this snapshot occupies.
Declaration
public readonly CheckpointSlot Slot
Field Value
Properties
HasData
Gets whether this snapshot contains any data.
Declaration
public bool HasData { get; }
Property Value
Methods
Equals(CheckpointSnapshot)
Declaration
public bool Equals(CheckpointSnapshot other)
Parameters
Returns
Equals(object)
Declaration
public override bool Equals(object obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
operator ==(CheckpointSnapshot, CheckpointSnapshot)
Declaration
public static bool operator ==(CheckpointSnapshot left, CheckpointSnapshot right)
Parameters
Returns
operator !=(CheckpointSnapshot, CheckpointSnapshot)
Declaration
public static bool operator !=(CheckpointSnapshot left, CheckpointSnapshot right)
Parameters
Returns
Implements