public static FleetDamages GetEnemyDamages(this kcsapi_data_midnight_hougeki hougeki) { return(hougeki != null ? hougeki.api_damage != null ? hougeki.api_damage.GetEnemyDamages(hougeki.api_df_list) : defaultValue : defaultValue); }
public static FleetDamages GetEnemyDamages(this kcsapi_data_midnight_hougeki hougeki) => hougeki?.api_damage?.GetEnemyDamages(hougeki.api_df_list) ?? defaultValue;