private void Shelling(Enemy_Combined_Hougeki shelling) { if (shelling == null) { return; } var damages = shelling.GetDamages(); this.CalcDamages(damages); }
private void Shelling(Enemy_Combined_Hougeki shelling) { if (shelling == null) { return; } var damages = shelling.GetDamages(); foreach (var damage in damages[0]) { this.FriendFleet.Fleets[damage.Key].CalcDamages(damage.Value.ToArray()); } foreach (var damage in damages[1]) { this.EnemyFleet.Fleets[damage.Key].CalcDamages(damage.Value.ToArray()); } }