UNPKG

@woosh/meep-engine

Version:

Pure JavaScript game engine. Fully featured and production ready.

36 lines 742 B
/** * Doubly linked list implementation for key-value pairs * @template Key * @template Value * @class */ export class CacheElement<Key, Value> { /** * * @type {Key} */ key: Key; /** * * @type {Value} */ value: Value; /** * * @type {number} */ weight: number; /** * Link to next element (implements linked list) * @type {CacheElement<Key,Value>|null} */ next: CacheElement<Key, Value> | null; /** * Link to previous element (implements linked list) * @type {CacheElement<Key,Value>|null} */ previous: CacheElement<Key, Value> | null; unlink(): void; toString(): string; } //# sourceMappingURL=CacheElement.d.ts.map