Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

PlayerSaveContext

What a player-scope save’s read and restore receive.

Property Type Description
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 Entity The entity the save is kept on: the player entity here, and the saved entity in an entity’s scope, so a save a game may keep in either reads one field.
world World The world, to read: restore writes through its writer.