persist
Device state kept between sessions. A game sets one store with `Interact.setStateStore({ get = fn(key), set = fn(key, value) })`; every Door, Switch, Lock and Item with a `saveId` then restores its state from that store and writes it back when its owner changes it. A store that w…
interactKit.persist
Device state kept between sessions. A game sets one store with Interact.setStateStore({ get = fn(key), set = fn(key, value) }); every Door, Switch, Lock and Item with a saveId then restores its state from that store and writes it back when its owner changes it. A store that writes into the local player's own save, used on devices nobody shares (spawned with entity.spawn), gives every player their own doors, levers, locks and keys, kept on their own account. Internal: reach it through interactKit.api (setStateStore, stateStore, recall, remember).
Scoped to this part · feeds back into the world's score.