Beispiel #1
0
        public KeepBuilder(GameController input, GameUI ui, CameraMover camera, KeepType type)
            : base(input, ui, camera, type.MyTypeInstance, Cost.Free)
        {
            AbleFront = Color.Blue;

            cwUI = new BaseCustomWindowUI(ui, type.Name, "");
        }
Beispiel #2
0
        public GateBuilder(GameController input, GameUI ui, CameraMover camera, GateType type)
            : base(input, ui, camera, type.MyTypeInstance, input.Level.EditorMode ? Cost.Free : type.Cost)
        {
            AbleFront = Color.Red;
            AbleBack  = Color.Yellow;

            cwUI = new BaseCustomWindowUI(ui, type.Name, $"Cost: {type.Cost}");
        }
Beispiel #3
0
 public TreeCutterBuilder(GameController input,
                          GameUI ui,
                          CameraMover camera,
                          TreeCutterType type)
     : base(input, ui, camera, type.MyTypeInstance, input.Level.EditorMode ? Cost.Free : type.Cost)
 {
     cwUI = new BaseCustomWindowUI(ui, type.Name, $"Cost: {type.Cost}");
 }
Beispiel #4
0
        public Destroyer(GameController input, GameUI ui, CameraMover camera)
            : base(input.Level, new DestroyBuildingType())
        {
            this.Input  = input;
            this.Ui     = ui;
            this.Camera = camera;

            cwUI = new BaseCustomWindowUI(ui, "Demolish buildings", "");
        }
Beispiel #5
0
 public WallBuilder(GameController input, GameUI ui, CameraMover camera, BuildingType type, WallType myType)
     : base(input, ui, camera, type, input.Level.EditorMode ? Cost.Free : myType.Cost)
 {
     cwUI = new BaseCustomWindowUI(ui, myType.Name, $"Cost: {myType.Cost}");
 }