Esempio n. 1
0
 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));
     }
 }
Esempio n. 2
0
 public BattleModule(ModuleSaveData save, BattleShip ship, GameDataManager dataManager)
     : this(dataManager.Modules[save.DataID], ship, save.GridPosition, save.Rotation)
 {
 }