UNPKG

@woosh/meep-engine

Version:

Pure JavaScript game engine. Fully featured and production ready.

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