Exemplo n.º 1
0
        /// <summary>
        /// Handles a damage event notifier from a client
        /// </summary>
        static public void Handle_CS_DamageEvent(CS_DamageEvent pkt, Player player)
        {       //Allow the player's arena to handle it
            if (player._arena == null)
            {
                Log.write(TLog.Error, "Player {0} sent damage event update packet with no arena.", player);
                return;
            }

            if (player.IsSpectator)
            {
                Log.write(TLog.Warning, "Player {0} attempted to trigger a damage event from spec.", player);
                return;
            }

            player._arena.handleEvent(delegate(Arena arena)
            {
                player._arena.handlePlayerDamageEvent(player, pkt);
            }
                                      );
        }
Exemplo n.º 2
0
 /// <summary>
 /// Triggered when a player notifies the server of a damage event
 /// </summary>
 public virtual void handlePlayerDamageEvent(Player from, CS_DamageEvent update)
 {
 }