示例#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
文件: Packet.cs 项目: fry/Survivalist
 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);
 }