k2tools.pubcvarlib (version 1.00.000 $Rev: 12 $, $Date: 2013-06-28 14:02:35 +0200 (Fr, 28 Jun 2013) $)
index
y:\server\csgo\csgo\addons\source-python\_libs\k2tools\pubcvarlib.py

Path     addons/source-python/_libs/k2tools/pubcvarlib.py
Name     Public Cvar Libary
Version  1.00.000
Revision $Rev: 12 $
Author   (C) [#OMEGA] - K2
 
 
INFO
 
General purpose workaround.
 
 
AGREEMENT
 
See addons/source-python/_libs/k2tools/license.txt

 
Modules
       
cvar_c

 
Functions
       
exists(var)
Returns True of the specified variable exists
Returns False otherwise
get_cvars()
Returns a dictionary of cvars (including settings per cvar)
register(var, value=None, description='', default=False, tags=[])
Registers a public variable.
 
@var         - name of the variable
@value       - initial value of the variable
@description - description of the variable
@default     - if set to true, the variable will revert to the initial 
               value specified, otherwise the current value will be used
@tags        - tags to be added to sv_tags
 
Raises ValueError if the variable exists
unregister(var)
Unregisters a public variable.
 
@var - name of the variable
 
Raises ValueError if the variable does not exist

 
Data
        __all__ = ['register', 'unregister', 'exists', 'get_cvars']

 
Author
        [#OMEGA] - K2