public TrainActionDef(uint cooldown, uint trainingTime, string imageSource, ISpawnableDef spawnableDef) : base(cooldown, imageSource) { SpawnableDef = spawnableDef; TrainingTime = trainingTime; }
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)); }