Example #1
0
 protected void RaiseEvent <T>(PacketEventHandler <T> handler, SecurePacketBasedClient client, T packet)
 {
     if (handler != null)
     {
         handler(client, packet);
     }
     else
     {
         Console.WriteLine("Unhandled packet: " + packet.ToString());
     }
 }
Example #2
0
 public abstract bool OnPacketReceived(SecurePacketBasedClient client, Packet packet);