public BattleModule(ModuleData data, BattleShip ship, Point gridPosition, int rotation) { Data = data; Ship = ship; GridPosition = gridPosition; Rotation = rotation; foreach (TurretData turret in Data.Turrets) { Turrets.Add(new BattleTurret(this, turret)); } }
public BattleModule(ModuleSaveData save, BattleShip ship, GameDataManager dataManager) : this(dataManager.Modules[save.DataID], ship, save.GridPosition, save.Rotation) { }