Interface: GameStateSnapshotInfo<T>

Information accompanying a complete game-state snapshot.

Extends

Type Parameters

T

T = SyncedObject

Properties

affects

readonly affects: (...path) => boolean

Returns whether this snapshot invalidates a path in game state. Initial snapshots and recovery replacements affect every path.

Parameters

path

...SyncedObjectPath

Returns

boolean


change?

readonly optional change?: GameStateChangedEvent<T>

The accepted change as represented through this view for a SnapshotReason.Change snapshot. It is absent for SnapshotReason.Initial and SnapshotReason.Resync snapshots.


reason

readonly reason: SnapshotReason

Why Plot delivered this complete snapshot.

Inherited from

SnapshotInfo.reason