コード例 #1
0
ファイル: Objects.cs プロジェクト: mizzouse/FreeInfantry
        /// <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);
        }
コード例 #2
0
ファイル: Objects.cs プロジェクト: mizzouse/FreeInfantry
        /// <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);
            }
        }