Interface: SyncedObjectSchema<T>
A runtime schema that validates and optionally normalizes a synced object into a game-defined type.
Keep parse deterministic and free of side effects: Plot may call it more
than once for reads, writes, updater retries, and notifications. It may add
defaults or normalize values, but normalization during a read is not written
back to synchronized state. Plot validates and deeply freezes the result
before returning it through this schema view.
A read throws the parser's original error, and a write promise rejects with it. If parsing a notification fails, Plot reports the error to the browser, skips that notification for this schema view, and continues other listeners.
Type Parameters
T
T
Methods
parse()
parse(
value):T
Parses one synchronized root object.
Parameters
value
unknown
A complete object from synchronized state or game code.
Returns
T
A supported synced object in the game-defined shape.