Example #1
0
 protected Building(StateManager stateMgr, Island island, VanillaRTS rts, string selection, Vector3 position)
 {
     this.mStateMgr        = stateMgr;
     this.mIsland          = island;
     this.RTS              = rts;
     this.mColoredBlock    = (byte)((this.RTS.Faction == Faction.Blue) ? 32 : 31);
     this.NeededRessources = new Dictionary <byte, int>();
     this.Position         = position == -Vector3.UNIT_SCALE ? this.mStateMgr.MainState.User.SelectedBlockPos : position;
     this.Selection        = selection;
     this.NeededRessources = this.mStateMgr.MainState.BuildingMgr.GetNeededRessources(this.Selection);
     this.Init();
 }
Example #2
0
 public Generator(StateManager stateMgr, Island island, VanillaRTS rts)
     : base(stateMgr, island, rts, "G")
 {
 }
Example #3
0
 protected Building(StateManager stateMgr, Island island, VanillaRTS rts, string selection) : this(stateMgr, island, rts, selection, -Vector3.UNIT_SCALE)
 {
 }
Example #4
0
 public RobotFactory(StateManager stateMgr, Island island, VanillaRTS rts, Vector3 position)
     : base(stateMgr, island, rts, "RF", position)
 {
 }
Example #5
0
 public Generator(StateManager stateMgr, Island island, VanillaRTS rts, Vector3 position)
     : base(stateMgr, island, rts, "G", position)
 {
 }
Example #6
0
 public RobotFactory(StateManager stateMgr, Island island, VanillaRTS rts) : base(stateMgr, island, rts, "RF")
 {
 }
Example #7
0
 public CrystalDrill(StateManager stateMgr, Island island, VanillaRTS rts)
     : base(stateMgr, island, rts, "CD")
 {
 }
Example #8
0
 public CrystalDrill(StateManager stateMgr, Island island, VanillaRTS rts, Vector3 position)
     : base(stateMgr, island, rts, "RF", position)
 {
 }
Example #9
0
 public HeadQuarter(StateManager stateMgr, Island island, VanillaRTS rts)
     : base(stateMgr, island, rts, "HQ")
 {
 }
Example #10
0
 public HeadQuarter(StateManager stateMgr, Island island, VanillaRTS rts, Vector3 position)
     : base(stateMgr, island, rts, "HQ", position)
 {
 }