What it does
saveSystem.loadSlot creates a Slot in saveSystem. It takes name, and answers data.
Signature
saveSystem.loadSlot(name) → dataArguments
name
Example · generated
function start() { const data = saveSystem.loadSlot('main');}saveSystem.loadSlot is called with values of the shape its signature asks for. The code sits in start(), which the engine calls once, when the entity spawns.