예제 #1
0
 public void RegisterExtended(int packetID, OnPacketReceive onReceive)
 {
     if (packetID >= 0 && packetID < 0x100)
         _extendedHandlersLow[packetID] = new PacketHandler(packetID, 0, onReceive);
     else
         _extendedHandlersHigh[packetID] = new PacketHandler(packetID, 0, onReceive);
 }
예제 #2
0
 public void Register(int packetID, int length, bool ingame, OnPacketReceive onReceive)
 {
     _handlers[packetID] = new PacketHandler(packetID, length, onReceive);
 }