コード例 #1
0
 public KnightWarrior(CreateGameObjectDTO dto)
     : base(dto)
 {
     this.Type       = GameObjectType.KnightWarrior;
     this.HPMax      = 250;
     this.HPMin      = 0;
     this.HPDef      = 250;
     this.HP         = 250;
     this.EnergyMax  = 250;
     this.EnergyMin  = 0;
     this.EnergyDef  = 250;
     this.Energy     = 250;
     this.IsMoveable = true;
     this.MoveCost   = new Dictionary <TerrainType, int>()
     {
         { TerrainType.Plain, 35 },
         { TerrainType.Stone, 55 },
         { TerrainType.Snow, 60 },
     };
 }
コード例 #2
0
 public GameObject(CreateGameObjectDTO dto)
 {
     this.Id = new Guid(dto.Id);
 }
コード例 #3
0
 public UnitBase(CreateGameObjectDTO dto)
     : base(dto)
 {
 }