UNPKG

@woosh/meep-engine

Version:

Pure JavaScript game engine. Fully featured and production ready.

96 lines 2.03 kB
export class BlackboardDynamicStorageAdapter { /** * * @type {Blackboard} * @private */ private __blackboard; /** * * @type {Storage} * @private */ private __storage; /** * * @type {boolean} * @private */ private __is_linked; /** * * @type {string} * @private */ private __storage_key; /** * * @type {BinaryObjectSerializationAdapter} * @private */ private __serialization_adapter; __serialization_in_progress: boolean; __need_write: boolean; /** * "setTimeout" Handle * @type {number} * @private */ private __write_timeout_handle; /** * In milliseconds * @type {number} * @private */ private __write_timeout_delay; /** * Last time write happened * @type {number} * @private */ private __last_write_timestamp; setStorageKey(value: any): void; /** * @param {BinarySerializationRegistry} s */ setSerialization(s: BinarySerializationRegistry): void; /** * @param {Blackboard} v */ setBlackboard(v: Blackboard): void; /** * @param {Storage} v */ setStorage(v: Storage): void; /** * Read data from storage and populate blackboard accordingly */ read(): Promise<void>; __handle_serialization_finalized(): void; /** * Write data to storage, this is not guaranteed to result in immediate writing */ write(): void; __handle_write_timeout(): void; /** * Perform write right now * @private */ private __write_immediate; /** * * @param {string} name * @private */ private __watch_property; /** * * @param {string} name * @private */ private __unwatch_property; link(): Promise<void>; unlink(): Promise<void>; } import { Blackboard } from "./Blackboard.js"; //# sourceMappingURL=BlackboardDynamicStorageAdapter.d.ts.map