Exemple #1
0
        /// <summary>
        /// Sends a series of lio updates to the specified player
        /// </summary>
        static public void Object_LIOs(Player p, IEnumerable <Arena.SwitchState> update)
        {               //Prepare the packet
            SC_LIOUpdates lios = new SC_LIOUpdates();

            lios.objects = update;

            //Send to each recipient
            p._client.sendReliable(lios);
        }
Exemple #2
0
        /// <summary>
        /// Sends a lio update to the specified players
        /// </summary>
        static public void Object_LIOs(IEnumerable <Player> p, Arena.SwitchState update)
        {               //Prepare the packet
            SC_LIOUpdates lios = new SC_LIOUpdates();

            lios.singleUpdate = update;

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