fCraft.PlayerEnumerable.Send C# (CSharp) Method

Send() public static method

Broadcasts a packet with normal priority.
public static Send ( [ source, Packet packet ) : int
source [ List of players who will receive the packet.
packet Packet Packet to send.
return int
        public static int Send( [NotNull] this IEnumerable<Player> source, Packet packet ) {
            if( source == null ) throw new ArgumentNullException( "source" );
            int i = 0;
            foreach( Player player in source ) {
                player.Send( packet );
                i++;
            }
            return i;
        }

Same methods

PlayerEnumerable::Send ( [ source, [ except, Packet packet ) : int