Interface: PlayerDataChangedEvent<T>
Information delivered for one accepted player-data change.
Type Parameters
T
T = SyncedObject
Properties
affects
readonlyaffects: (...path) =>boolean
Returns whether this change affects a path or anything above or below it. Call with no segments to match any change to the root object.
Parameters
path
Returns
boolean
Example
changedPaths
readonlychangedPaths:SyncedObjectChangedPaths
The complete invalidation set prepared by Plot. Every actual difference is covered and every reported path identifies a subtree that differs. To keep work bounded, Plot may collapse many descendants to their differing ancestor; an empty path identifies the root object. Prefer affects when deciding whether to update a specific feature.
current
readonlycurrent:ImmutableSynced<T>
The current complete immutable object.
playerId
readonlyplayerId:number
The player that owns the changed object.
previous
readonlyprevious:ImmutableSynced<T>
The complete object before this change.
reason
readonlyreason:SyncedObjectChangeReason
Whether this SDK initiated the accepted change.
revision
readonlyrevision:number
The accepted per-player revision of the current object.