assassin-bug/src/engine/state.js

15 lines
235 B
JavaScript

class State {
constructor() {
this.states = new Map();
}
get(key) {
return this.states.get(key);
}
set(key, value) {
return this.states.set(key, value);
}
}
export default new State();