PlayerRestoreContext
What a player-scope save’s restore receives: as read’s, with
what it writes with, and the target’s predicted traits writable.
Extends
Section titled “Extends”Properties
Section titled “Properties”| Property | Type | Description | Overrides |
|---|---|---|---|
account |
SaveAccount |
- | - |
entities |
readonly Entity[] |
The entities this record of the player’s keeps beside the player entity and saved entities: what the player built for themselves, registered with addRecordEntity or spawned by the record’s restore. A read reaches these and no other entity of the world; the world’s own things are the world’s record’s. |
- |
player |
PlayerEntity |
The player entity, which the core makes as the player joins. | - |
target |
PredictedEntity |
The player entity, whose predicted traits restore may write. |
PlayerSaveContext.target |
world |
World |
The world, to read: restore writes through its writer. |
- |
writer |
Authority | JoinStep |
What restore writes with, as every write verb takes it first: the join’s step during the player’s join, which writes the player entity and what the join made, and the world’s authority where a room remakes the player entity. It keeps the rules of what was handed in, so keep none. |
- |