public LandBaseAirCombatResult(string name, AirCombatResult stage1, AirCombatResult stage2, Api_Squadron_Plane[] squadrons)
 {
     this.Name = name;
     this.Stage1 = stage1;
     this.Stage2 = stage2;
     this.Squadrons = squadrons.Select(s => new Squadron(s)).ToArray();
 }
Exemplo n.º 2
0
 public LandBaseAirCombatResult(string name, AirCombatResult stage1, AirCombatResult stage2, Api_Squadron_Plane[] squadrons)
 {
     this.Name      = name;
     this.Stage1    = stage1;
     this.Stage2    = stage2;
     this.Squadrons = squadrons.Select(s => new Squadron(s)).ToArray();
 }
 public AirCombatResultViewModel(AirCombatResult result, FleetType type)
 {
     if (type == FleetType.First)
     {
         this.Name = result.Name;
         this.IsHappen = result.IsHappen;
         this.Count = result.FriendCount;
         this.LostCount = result.FriendLostCount;
     }
     if (type == FleetType.Enemy)
     {
         this.Name = result.Name;
         this.IsHappen = result.IsHappen;
         this.Count = result.EnemyCount;
         this.LostCount = result.EnemyLostCount;
     }
 }