BakkesMod Programming Wiki
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

CVarManagerWrapper

View Implementation

CVarManagerWrapper(const CVarManagerWrapper &other)


Parameter Type Description
other CVarManagerWrapper

CVarManagerWrapper 
operator=(CVarManagerWrapper rhs)


Parameter Type Description
rhs CVarManagerWrapper

~CVarManagerWrapper()



void 
executeCommand(std::string command, bool log=true)


Parameter Type Description
command std::string
log bool

void 
registerNotifier(std::string cvar, std::function< void(std::vector< std::string >)> notifier, std::string description, unsigned char permissions)


Parameter Type Description
cvar std::string
notifier std::function< void(std::vector< std::string >)>
description std::string
permissions unsigned char

bool 
removeNotifier(std::string cvar)


Parameter Type Description
cvar std::string

CVarWrapper 
registerCvar(std::string cvar, std::string defaultValue, std::string desc="", bool searchAble=true, bool hasMin=false, float min=0, bool hasMax=false, float max=0, bool saveToCfg=true)


Parameter Type Description
cvar std::string
defaultValue std::string
desc std::string
searchAble bool
hasMin bool
min float
hasMax bool
max float
saveToCfg bool

bool 
removeCvar(std::string cvar)


Parameter Type Description
cvar std::string

void 
log(std::wstring text)


Parameter Type Description
text std::wstring

CVarWrapper 
getCvar(std::string cvar)


Parameter Type Description
cvar std::string

std::string 
getBindStringForKey(std::string key)


Parameter Type Description
key std::string

void 
setBind(std::string key, std::string command)


Parameter Type Description
key std::string
command std::string

void 
removeBind(std::string key)


Parameter Type Description
key std::string

std::string 
getAlias(std::string alias)


Parameter Type Description
alias std::string

void 
setAlias(std::string key, std::string script)


Parameter Type Description
key std::string
script std::string

void 
backupCfg(std::string path)


Parameter Type Description
path std::string

void 
backupBinds(std::string path)


Parameter Type Description
path std::string

void 
loadCfg(std::string path)


Parameter Type Description
path std::string