/// <summary> /// Set the following function to handle this type of packets. /// </summary> static public void SetPacketHandler(Packet packet, GameClient.OnPacket callback) { if (mInstance != null) { mInstance.mClient.packetHandlers[(byte)packet] = callback; } }
/// <summary> /// Set the following function to handle this type of packets. /// </summary> static public void SetPacketHandler(byte packetID, GameClient.OnPacket callback) { if (mInstance != null) { mInstance.mClient.packetHandlers[packetID] = callback; } }