Пример #1
0
        public TrainActionDef(uint cooldown, uint trainingTime, string imageSource, ISpawnableDef spawnableDef) : base(cooldown, imageSource)
        {
            SpawnableDef = spawnableDef;

            TrainingTime = trainingTime;
        }
Пример #2
0
 public SpawnActionDef(uint cooldown, string imageSource, ISpawnableDef spawnableDef) : base(cooldown, imageSource)
 {
     this.SpawnableDef = spawnableDef;
 }
 //    TODO rewrite. this is risky
 public ISpawnable CreateNewSpawnable(ISpawnableDef def)
 {
     return(CreateNewUnit((UnitDef)def, new FloatCoords(), game.GameModel.World, faction));
 }