wIp
This commit is contained in:
1 parent
c2dce421b3
commit
c6bb4abac0
12 files changed
+131
-144
No files matched your search
@@ -0,0 +1,13 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user