Refactor hero resource balance action

This commit is contained in:
2020-04-19 10:38:48 +03:00
parent a6cc1b5383
commit 84ac56d052
42 changed files with 182 additions and 76 deletions

View File

@ -1,5 +1,5 @@
import { Args, Command } from '../Common';
import { Task } from '../Storage/TaskQueue';
import { Args, Command } from '../Command';
import { Task } from '../Queue/TaskQueue';
import { TaskController, registerTask } from './TaskController';
import { GoToPageAction } from '../Action/GoToPageAction';
import { CompleteTaskAction } from '../Action/CompleteTaskAction';

View File

@ -1,10 +1,10 @@
import { Args, Command } from '../Common';
import { Args, Command } from '../Command';
import { BuildBuildingAction } from '../Action/BuildBuildingAction';
import { CheckBuildingRemainingTimeAction } from '../Action/CheckBuildingRemainingTimeAction';
import { CompleteTaskAction } from '../Action/CompleteTaskAction';
import { GoToPageAction } from '../Action/GoToPageAction';
import { path } from '../utils';
import { Task } from '../Storage/TaskQueue';
import { Task } from '../Queue/TaskQueue';
import { TaskController, registerTask } from './TaskController';
@registerTask

View File

@ -1,8 +1,8 @@
import { Args, Command } from '../Common';
import { Args, Command } from '../Command';
import { CompleteTaskAction } from '../Action/CompleteTaskAction';
import { GoToPageAction } from '../Action/GoToPageAction';
import { path } from '../utils';
import { Task } from '../Storage/TaskQueue';
import { Task } from '../Queue/TaskQueue';
import { TaskController, registerTask } from './TaskController';
import { grabVillageList } from '../Page/VillageBlock';
import { StoreVillageState } from '../Action/StoreVillageState';

View File

@ -1,5 +1,5 @@
import { Args, Command } from '../Common';
import { Task } from '../Storage/TaskQueue';
import { Args, Command } from '../Command';
import { Task } from '../Queue/TaskQueue';
import { TaskController, registerTask } from './TaskController';
import { GoToPageAction } from '../Action/GoToPageAction';
import { CompleteTaskAction } from '../Action/CompleteTaskAction';

View File

@ -1,5 +1,5 @@
import { Args, Command } from '../Common';
import { Task } from '../Storage/TaskQueue';
import { Args, Command } from '../Command';
import { Task } from '../Queue/TaskQueue';
import { TaskController, registerTask } from './TaskController';
import { GoToPageAction } from '../Action/GoToPageAction';
import { GrabHeroAttributesAction } from '../Action/GrabHeroAttributesAction';

View File

@ -1,4 +1,4 @@
import { Task } from '../Storage/TaskQueue';
import { Task } from '../Queue/TaskQueue';
import { Scheduler } from '../Scheduler';
const taskMap: { [name: string]: Function | undefined } = {};

View File

@ -1,5 +1,5 @@
import { Args, Command } from '../Common';
import { Task } from '../Storage/TaskQueue';
import { Args, Command } from '../Command';
import { Task } from '../Queue/TaskQueue';
import { TaskController, registerTask } from './TaskController';
import { GoToPageAction } from '../Action/GoToPageAction';
import { CompleteTaskAction } from '../Action/CompleteTaskAction';

View File

@ -1,5 +1,5 @@
import { Args, Command } from '../Common';
import { Task } from '../Storage/TaskQueue';
import { Args, Command } from '../Command';
import { Task } from '../Queue/TaskQueue';
import { TaskController, registerTask } from './TaskController';
import { GoToPageAction } from '../Action/GoToPageAction';
import { path } from '../utils';

View File

@ -1,6 +1,6 @@
import { UpgradeBuildingAction } from '../Action/UpgradeBuildingAction';
import { Args, Command } from '../Common';
import { Task } from '../Storage/TaskQueue';
import { Args, Command } from '../Command';
import { Task } from '../Queue/TaskQueue';
import { TaskController, registerTask } from './TaskController';
import { GoToPageAction } from '../Action/GoToPageAction';
import { CheckBuildingRemainingTimeAction } from '../Action/CheckBuildingRemainingTimeAction';