Ejemplo n.º 1
0
 /// <summary>
 /// Enqueues to all clients in a certain world.
 /// </summary>
 /// <param name="Packet">The packet.</param>
 /// <param name="World">The world.</param>
 /// <param name="IgnoreClient">If specified, the client won't recieve the packet.</param>
 /// <remarks></remarks>
 public void EnqueueToAllClientsInWorld(Packet Packet, string World, RemoteClient IgnoreClient = null)
 {
     foreach (RemoteClient Client in Clients)
         if (IgnoreClient != Client && Client.World.ToLower() == World.ToLower())
             Client.PacketQueue.Enqueue(Packet);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Enqueues a packet to all clients.
 /// </summary>
 /// <param name="Packet">The packet.</param>
 /// <param name="IgnoreClient">If specified, the client won't recieve the packet.</param>
 /// <remarks></remarks>
 public void EnqueueToAllClients(Packet Packet, RemoteClient IgnoreClient = null)
 {
     foreach (RemoteClient Client in Clients)
         if (IgnoreClient != Client)
             Client.PacketQueue.Enqueue(Packet);
 }