Esempio n. 1
0
File: Keep.cs Progetto: MK4H/MHUrho
        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, "");
        }
Esempio n. 2
0
File: Gate.cs Progetto: MK4H/MHUrho
        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}");
        }
Esempio n. 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}");
 }
Esempio n. 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", "");
        }
Esempio n. 5
0
File: Wall.cs Progetto: MK4H/MHUrho
 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}");
 }