Exemplo n.º 1
0
        /// <summary>
        /// Sends a series of flag updates to the specified player
        /// </summary>
        static public void Object_Flags(Player p, IEnumerable <Arena.FlagState> update)
        {               //Prepare the packet
            SC_Flags flags = new SC_Flags();

            flags.flags = update;

            //Send to each recipient
            p._client.sendReliable(flags);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Sends a flag update to the specified players
        /// </summary>
        static public void Object_Flags(IEnumerable <Player> p, Arena.FlagState update)
        {               //Prepare the packet
            SC_Flags flags = new SC_Flags();

            flags.singleUpdate = update;

            //Send to each recipient
            foreach (Player player in p)
            {
                player._client.sendReliable(flags);
            }
        }
Exemplo n.º 3
0
        /// <summary>
        /// Instructs the client to reset and disable all flags
        /// </summary>
        static public void Object_FlagsReset(IEnumerable <Player> p)
        {               //Prepare the packet
            SC_Flags flags = new SC_Flags();

            flags.bDisable = true;

            //Send to each recipient
            foreach (Player player in p)
            {
                player._client.sendReliable(flags);
            }
        }