コード例 #1
0
 public CharacterInfo(string name, VanillaRTS rts, bool isPlayer = false) : this()
 {
     this.mId = mLastPlayerId;
     mLastPlayerId++;
     this.mName       = name;
     this.RTS         = rts;
     this.Faction     = rts != null ? rts.Faction : Faction.Red;
     this.mSpawnPoint = Vector3.ZERO;
     this.mIsPlayer   = isPlayer;
     this.mLife       = this.mIsPlayer ? VanillaPlayer.DEFAULT_PLAYER_LIFE : VanillaNonPlayer.DEFAULT_NPC_LIFE;
     this.mMana       = this.mIsPlayer ? VanillaPlayer.DEFAULT_PLAYER_MANA : 0;
 }
コード例 #2
0
ファイル: Building.cs プロジェクト: RenaudWasTaken/SkyLands
 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();
 }
コード例 #3
0
 public CharacterInfo(string name, VanillaRTS rts, bool isPlayer = false)
     : this()
 {
     this.mId = mLastPlayerId;
     mLastPlayerId++;
     this.mName = name;
     this.RTS = rts;
     this.Faction = rts != null ? rts.Faction : Faction.Red;
     this.mSpawnPoint = Vector3.ZERO;
     this.mIsPlayer = isPlayer;
     this.mLife = this.mIsPlayer ? VanillaPlayer.DEFAULT_PLAYER_LIFE : VanillaNonPlayer.DEFAULT_NPC_LIFE;
     this.mMana = this.mIsPlayer ? VanillaPlayer.DEFAULT_PLAYER_MANA : 0;
 }
コード例 #4
0
 public RobotFactory(StateManager stateMgr, Island island, VanillaRTS rts, Vector3 position)
     : base(stateMgr, island, rts, "RF", position)
 {
 }
コード例 #5
0
 public RobotFactory(StateManager stateMgr, Island island, VanillaRTS rts)
     : base(stateMgr, island, rts, "RF")
 {
 }
コード例 #6
0
 public CrystalDrill(StateManager stateMgr, Island island, VanillaRTS rts)
     : base(stateMgr, island, rts, "CD")
 {
 }
コード例 #7
0
 public CrystalDrill(StateManager stateMgr, Island island, VanillaRTS rts, Vector3 position)
     : base(stateMgr, island, rts, "RF", position)
 {
 }
コード例 #8
0
ファイル: Generator.cs プロジェクト: RenaudWasTaken/SkyLands
 public Generator(StateManager stateMgr, Island island, VanillaRTS rts)
     : base(stateMgr, island, rts, "G")
 {
 }
コード例 #9
0
ファイル: Generator.cs プロジェクト: RenaudWasTaken/SkyLands
 public Generator(StateManager stateMgr, Island island, VanillaRTS rts, Vector3 position)
     : base(stateMgr, island, rts, "G", position)
 {
 }
コード例 #10
0
 public HeadQuarter(StateManager stateMgr, Island island, VanillaRTS rts)
     : base(stateMgr, island, rts, "HQ")
 {
 }
コード例 #11
0
 public HeadQuarter(StateManager stateMgr, Island island, VanillaRTS rts, Vector3 position)
     : base(stateMgr, island, rts, "HQ", position)
 {
 }
コード例 #12
0
ファイル: Building.cs プロジェクト: RenaudWasTaken/SkyLands
 protected Building(StateManager stateMgr, Island island, VanillaRTS rts, string selection)
     : this(stateMgr, island, rts, selection, -Vector3.UNIT_SCALE)
 {
 }