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