示例#1
0
 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);
 }
示例#2
0
 public void SendClassicPacket(ClassicPacket packet)
 {
     ClassicQueue.Enqueue(packet);
 }