Exemplo n.º 1
0
        /// <summary>
        /// Notifies the alighting of a certain player
        /// </summary>
        static public void Object_PlayerLeave(Player p, Player leaving)
        {               //Prepare the packet
            SC_PlayerLeave update = new SC_PlayerLeave();

            update.playerID = leaving._id;

            p._client.sendReliable(update);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Notifies the alighting of a certain player
        /// </summary>
        static public void Object_PlayerLeave(IEnumerable <Player> p, Player leaving)
        {               //Prepare the packet
            SC_PlayerLeave update = new SC_PlayerLeave();

            update.playerID = leaving._id;

            foreach (Player player in p)
            {
                player._client.sendReliable(update);
            }
        }