MCPcopy Create free account
hub / github.com/Monogatari/Monogatari / storage

Method storage

src/monogatari.ts:1295–1305  ·  view source on GitHub ↗
(object: string | Record<string, unknown> | null = null)

Source from the content-addressed store, hash-verified

1293 }
1294
1295 static storage (object: string | Record<string, unknown> | null = null): unknown {
1296 if (object !== null) {
1297 if (typeof object === 'string') {
1298 return this._storage[object];
1299 } else {
1300 this._storage = merge (this._storage, object) as Record<string, unknown>;
1301 }
1302 } else {
1303 return this._storage;
1304 }
1305 }
1306
1307 static script (object: string | Record<string, unknown> | null = null): unknown {
1308 const language = this.preference ('Language') as string;

Callers 8

setupMethod · 0.95
gameObjectFunction · 0.80
resetGameFunction · 0.80
loadFromSlotFunction · 0.80
replaceVariablesFunction · 0.80
choices.spec.jsFile · 0.80
input.spec.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected