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); }
public void Register(int packetID, int length, bool ingame, OnPacketReceive onReceive) { _handlers[packetID] = new PacketHandler(packetID, length, onReceive); }