public virtual void Handle(Packet packet) { }
public void Broadcast(Packet packet) { foreach (var player in server.World.EntityHandler.Players) { player.Client.SendPacket(packet); } }
public void Broadcast(Packet packet) { foreach (var player in Players) { player.Client.SendPacket(packet); } }
public void Broadcast(Packet packet) { foreach (var player in subscribedEntities) { player.Client.SendPacket(packet); } }
public static void Put(Packet packet, NetworkWriter writer) { writer.Write((byte)packet.Id); packet.Write(writer); writer.Flush(); }
public void SendPacket(Packet packet) { lock (sendQueue) { sendQueue.Enqueue(packet); } }
public void SendPacket(Packet packet) { pipe.SendPacket(packet); }