saveSystem.saveSlot

Section: Save Slots

What it does

saveSystem.saveSlot saves Slot on a saveSystem object. It takes name and data. data is optional.

The API says: bundles inventory + quests + pos

Signature

saveSystem.saveSlot(name, data?)

Arguments

  • name
  • dataoptional

Example · generated

function start() {  saveSystem.saveSlot('main');}

saveSystem.saveSlot 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