Пример #1
0
 private static void InitFormationsFor1Round(Player me)
 {
     formations.Add(new InitialGroundVehicleFormation(MagicConstants.GroundFormationGroupId,
                                                      VehicleRegistry
                                                      .MyVehicles(me)
                                                      .Where(v => v.Type == VehicleType.Arrv || v.Type == VehicleType.Ifv || v.Type == VehicleType.Tank)
                                                      .Select(v => v.Id)
                                                      .ToList(),
                                                      CommandManager, VehicleRegistry));
     formations.Add(new InitialAirVehicleFormation(MagicConstants.AirFormationGroupId,
                                                   VehicleRegistry
                                                   .MyVehicles(me)
                                                   .Where(v => v.Type == VehicleType.Fighter || v.Type == VehicleType.Helicopter)
                                                   .Select(v => v.Id)
                                                   .ToList(),
                                                   CommandManager, VehicleRegistry));
     VehicleRegistry.RemoveFromNewVehicles(VehicleRegistry.MyVehicleIds(me));
 }