Beispiel #1
0
 public static AirCombatResult[] ToResult(this Api_Kouku kouku, string prefixName = "")
 {
     return(kouku != null
                         ? new []
     {
         kouku.api_stage1.ToResult($"{prefixName}공대공"),
         kouku.api_stage2.ToResult($"{prefixName}공대함")
     }
                         : new AirCombatResult[0]);
 }
Beispiel #2
0
 public static AirSupremacy GetAirSupremacy(this Api_Kouku kouku)
 => (AirSupremacy)(kouku?.api_stage1?.api_disp_seiku ?? (int)AirSupremacy.항공전없음);
Beispiel #3
0
 public static FleetDamages GetEnemyDamages(this Api_Kouku kouku)
 => kouku?.api_stage3?.api_edam?.GetDamages()
 ?? defaultValue;
Beispiel #4
0
 public static FleetDamages GetSecondEnemyDamages(this Api_Kouku kouku)
 => kouku?.api_stage3_combined?.api_edam?.GetDamages()
 ?? defaultValue;
Beispiel #5
0
 public static FleetDamages GetFirstFleetDamages(this Api_Kouku kouku)
 => kouku?.api_stage3?.api_fdam.GetDamages()
 ?? defaultValue;