Files
nage/engine/lib/MapProxy.ts
T
2026-03-05 23:36:33 +01:00

14 lines
221 B
TypeScript

import type { Box } from "#/engine/Box.ts";
export default class MapProxy<K, V> {
map: Map<K, Box<V>>;
constructor() {
this.map = new Map();
}
get(key: K): V | undefined {
return this.map.get(key)?.value;
}
}