/// <summary> /// Registers the packet. /// </summary> /// <param name="packet">The packet.</param> public static void RegisterPacket(Packet packet) { RegisterPacket(packet.GetType(), packet.PacketId); }
/// <summary> /// Unregisters the packet. /// </summary> /// <param name="packet">The packet.</param> public static void UnregisterPacket(Packet packet) { UnregisterPacket(packet.GetType()); }