public ProtocolExtensionPacket(PacketReader reader) : base(0xF0, "Protocol Extension Packet") { Subcommand = reader.ReadByte(); switch (Subcommand) { case SubcommandNegotiateFeatures: DisabledFeatures = (AssistantFeatures)reader.ReadUInt64(); break; } }
public static void SetDisallowed(AssistantFeatures feature, bool value) { if (value) { Settings.DisallowedFeatures |= feature; } else { Settings.DisallowedFeatures &= ~feature; } Save(); }
public static void AllowFeature(AssistantFeatures feature) => SetDisallowed(feature, false);
public static void DisallowFeature(AssistantFeatures feature) => SetDisallowed(feature, true);