Refactoring

This commit is contained in:
2020-04-03 12:22:49 +03:00
parent 29485d233d
commit f45f9c88ae
7 changed files with 121 additions and 128 deletions

@ -1,12 +1,11 @@
import { Args } from '../Common';
import { Task } from '../Storage/TaskQueue';
import { GameState } from '../Storage/GameState';
import Scheduler from '../Scheduler';
import { Scheduler } from '../Scheduler';
const actionMap: { [name: string]: Function | undefined } = {};
export function registerAction(constructor: Function) {
console.log('REGISTER ACTION', constructor.name);
actionMap[constructor.name] = constructor;
}