cvars.flags module

Provides access to all ConVar flags in the engine.

class cvars.flags.ConVarFlags[source]

Bases: enum.IntEnum

ConVar’s flags wrapper enumerator.

_member_type_

alias of int

_generate_next_value_(name, start, count, last_values)
ARCHIVE = <ConVarFlags.ARCHIVE: 128>
ARCHIVE_XBOX = <ConVarFlags.ARCHIVE_XBOX: 16777216>
CHEAT = <ConVarFlags.CHEAT: 16384>
CLIENTCMD_CAN_EXECUTE = <ConVarFlags.CLIENTCMD_CAN_EXECUTE: 1073741824>
CLIENTDLL = <ConVarFlags.CLIENTDLL: 8>
DEMO = <ConVarFlags.DEMO: 65536>
DEVELOPMENTONLY = <ConVarFlags.DEVELOPMENTONLY: 2>
DONTRECORD = <ConVarFlags.DONTRECORD: 131072>
GAMEDLL = <ConVarFlags.GAMEDLL: 4>
HIDDEN = <ConVarFlags.HIDDEN: 16>
NEVER_AS_STRING = <ConVarFlags.NEVER_AS_STRING: 4096>
NONE = <ConVarFlags.NONE: 0>
NOTIFY = <ConVarFlags.NOTIFY: 256>
NOT_CONNECTED = <ConVarFlags.NOT_CONNECTED: 4194304>
PRINTABLEONLY = <ConVarFlags.PRINTABLEONLY: 1024>
PROTECTED = <ConVarFlags.PROTECTED: 32>
REPLICATED = <ConVarFlags.REPLICATED: 8192>
SERVER_CANNOT_QUERY = <ConVarFlags.SERVER_CANNOT_QUERY: 536870912>
SERVER_CAN_EXECUTE = <ConVarFlags.SERVER_CAN_EXECUTE: 268435456>
SPONLY = <ConVarFlags.SPONLY: 64>
UNLOGGED = <ConVarFlags.UNLOGGED: 2048>
UNREGISTERED = <ConVarFlags.UNREGISTERED: 1>
USERINFO = <ConVarFlags.USERINFO: 512>
_member_map_ = OrderedDict([('NONE', <ConVarFlags.NONE: 0>), ('UNREGISTERED', <ConVarFlags.UNREGISTERED: 1>), ('DEVELOPMENTONLY', <ConVarFlags.DEVELOPMENTONLY: 2>), ('GAMEDLL', <ConVarFlags.GAMEDLL: 4>), ('CLIENTDLL', <ConVarFlags.CLIENTDLL: 8>), ('HIDDEN', <ConVarFlags.HIDDEN: 16>), ('PROTECTED', <ConVarFlags.PROTECTED: 32>), ('SPONLY', <ConVarFlags.SPONLY: 64>), ('ARCHIVE', <ConVarFlags.ARCHIVE: 128>), ('NOTIFY', <ConVarFlags.NOTIFY: 256>), ('USERINFO', <ConVarFlags.USERINFO: 512>), ('PRINTABLEONLY', <ConVarFlags.PRINTABLEONLY: 1024>), ('UNLOGGED', <ConVarFlags.UNLOGGED: 2048>), ('NEVER_AS_STRING', <ConVarFlags.NEVER_AS_STRING: 4096>), ('REPLICATED', <ConVarFlags.REPLICATED: 8192>), ('CHEAT', <ConVarFlags.CHEAT: 16384>), ('DEMO', <ConVarFlags.DEMO: 65536>), ('DONTRECORD', <ConVarFlags.DONTRECORD: 131072>), ('NOT_CONNECTED', <ConVarFlags.NOT_CONNECTED: 4194304>), ('ARCHIVE_XBOX', <ConVarFlags.ARCHIVE_XBOX: 16777216>), ('SERVER_CAN_EXECUTE', <ConVarFlags.SERVER_CAN_EXECUTE: 268435456>), ('SERVER_CANNOT_QUERY', <ConVarFlags.SERVER_CANNOT_QUERY: 536870912>), ('CLIENTCMD_CAN_EXECUTE', <ConVarFlags.CLIENTCMD_CAN_EXECUTE: 1073741824>)])
_member_names_ = ['NONE', 'UNREGISTERED', 'DEVELOPMENTONLY', 'GAMEDLL', 'CLIENTDLL', 'HIDDEN', 'PROTECTED', 'SPONLY', 'ARCHIVE', 'NOTIFY', 'USERINFO', 'PRINTABLEONLY', 'UNLOGGED', 'NEVER_AS_STRING', 'REPLICATED', 'CHEAT', 'DEMO', 'DONTRECORD', 'NOT_CONNECTED', 'ARCHIVE_XBOX', 'SERVER_CAN_EXECUTE', 'SERVER_CANNOT_QUERY', 'CLIENTCMD_CAN_EXECUTE']
_value2member_map_ = {0: <ConVarFlags.NONE: 0>, 1: <ConVarFlags.UNREGISTERED: 1>, 2: <ConVarFlags.DEVELOPMENTONLY: 2>, 4: <ConVarFlags.GAMEDLL: 4>, 8: <ConVarFlags.CLIENTDLL: 8>, 16: <ConVarFlags.HIDDEN: 16>, 32: <ConVarFlags.PROTECTED: 32>, 64: <ConVarFlags.SPONLY: 64>, 128: <ConVarFlags.ARCHIVE: 128>, 256: <ConVarFlags.NOTIFY: 256>, 512: <ConVarFlags.USERINFO: 512>, 1024: <ConVarFlags.PRINTABLEONLY: 1024>, 2048: <ConVarFlags.UNLOGGED: 2048>, 4096: <ConVarFlags.NEVER_AS_STRING: 4096>, 8192: <ConVarFlags.REPLICATED: 8192>, 16384: <ConVarFlags.CHEAT: 16384>, 65536: <ConVarFlags.DEMO: 65536>, 131072: <ConVarFlags.DONTRECORD: 131072>, 4194304: <ConVarFlags.NOT_CONNECTED: 4194304>, 16777216: <ConVarFlags.ARCHIVE_XBOX: 16777216>, 268435456: <ConVarFlags.SERVER_CAN_EXECUTE: 268435456>, 536870912: <ConVarFlags.SERVER_CANNOT_QUERY: 536870912>, 1073741824: <ConVarFlags.CLIENTCMD_CAN_EXECUTE: 1073741824>}