/// <summary> /// Call when a ship from a player has been destroyed. /// </summary> /// <param name="plr"></param> /// <param name="destroyedShip"></param> protected virtual void PlayerShipDestroyed(Player plr, Ship destroyedShip) { PlayerShipDestroyedEvent ev = new PlayerShipDestroyedEvent(plr, destroyedShip); AppendEvent(ev); if (OnPlayerShipDestruction != null) { OnPlayerShipDestruction(this, ev); } }
/// <summary> /// Call when a ship from a player has been destroyed. /// </summary> /// <param name="plr"></param> /// <param name="destroyedShip"></param> protected virtual void PlayerShipDestroyed(Player plr, Ship destroyedShip) { PlayerShipDestroyedEvent ev = new PlayerShipDestroyedEvent(plr, destroyedShip); AppendEvent(ev); if (OnPlayerShipDestruction != null) { OnPlayerShipDestruction(this, ev); } }