saveSystem.loadSlot

Section: Save Slots

What it does

saveSystem.loadSlot creates a Slot in saveSystem. It takes name, and answers data.

Signature

saveSystem.loadSlot(name) → data

Arguments

  • 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.

8 members in saveSystem