private void HandleClassicPacket(RemoteClient client, ClassicPacket packet) { if (ClassicPacketHandlers[packet.Id] == null) { return; } //throw new InvalidOperationException("No packet handler registered for 0x" + packet.Id.ToString("X2")); ClassicPacketHandlers[packet.Id](client, this, packet); }
public void SendClassicPacket(ClassicPacket packet) { ClassicQueue.Enqueue(packet); }