Esempio n. 1
0
 public virtual void Handle(Packet packet)
 {
 }
Esempio n. 2
0
 public void Broadcast(Packet packet)
 {
     foreach (var player in server.World.EntityHandler.Players) {
         player.Client.SendPacket(packet);
     }
 }
Esempio n. 3
0
 public void Broadcast(Packet packet)
 {
     foreach (var player in Players) {
         player.Client.SendPacket(packet);
     }
 }
Esempio n. 4
0
 public void Broadcast(Packet packet)
 {
     foreach (var player in subscribedEntities) {
         player.Client.SendPacket(packet);
     }
 }
Esempio n. 5
0
 public static void Put(Packet packet, NetworkWriter writer)
 {
     writer.Write((byte)packet.Id);
     packet.Write(writer);
     writer.Flush();
 }
Esempio n. 6
0
 public void SendPacket(Packet packet)
 {
     lock (sendQueue) {
         sendQueue.Enqueue(packet);
     }
 }
Esempio n. 7
0
 public void SendPacket(Packet packet)
 {
     pipe.SendPacket(packet);
 }