示例#1
0
 public House(IWood wood, IBuilder builder, ITownHall townHall, IWorkerService workerService, IStoryService storyService)
 {
     _wood          = wood;
     _builder       = builder;
     _townHall      = townHall;
     _workerService = workerService;
     _storyService  = storyService;
     _timer         = new Timer(InhabitantsCallback, null, 30_000, 30_000);
 }
示例#2
0
        public House(IWood wood, IBuilder builder, ITownHall townHall, IWorkerService workerService, IStoryService storyService, IHyperState hyperState) : base(builder, hyperState)
        {
            _wood          = wood;
            _builder       = builder;
            _townHall      = townHall;
            _workerService = workerService;
            _storyService  = storyService;

            BuildTime = 30_000;

            HyperState.OnChange += HyperStateOnOnChange;
            _timer = new Timer(InhabitantsCallback, null, 30_000 / HyperState.DivideBy, 30_000 / HyperState.DivideBy);
        }
示例#3
0
 public BuildTownHall(ApplicationState state, IStoryService storyService, ITownHall townHall) : base(state, storyService, townHall)
 {
     IsVisible   = true;
     IsClickable = true;
     Title       = "Build Town Hall";
 }