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

RestoreContext

RestoreContext<Scope> = Scope extends `${World}` ? WorldRestoreContext : Scope extends `${Entity}` ? EntityRestoreContext : PlayerRestoreContext

What a save’s restore receives in Scope: as SaveContext, with the writer it writes with, and the saved entity’s predicted traits writable in an entity’s.

Type Parameter Default type
Scope extends SaveScopeName SaveScopeName