Index

Storage

MMO.core · 1 symbol · generated 5 Oct 2026

class

Storage

Storage.js:15

Persist entities in localStorage/sessionStorage, namespaced by their schema id.

class MMO.core.Storage
Namespace
MMO.core
See
MMO.core.Storage#clear only wipes the entries of this collection.
Every key is prefixed with the schema id so two collections never collide, and
const store = new MMO.core.Storage('local', 'SCHEMA://app.entities.User'); store.setItem('current', user); const user = store.getItem('current');//an MMO.elements.Entity, or null

Methods6

constructor(type, schemaId)

Storage.js:21
constructor(type, schemaId)
type
schemaId