/// <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);
            }
        }
Beispiel #2
0
 /// <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);
     }
 }