int Settings::getCVar(const std::string& name) { CVar* cvar = cvarlist[name]; if ( cvar ) return cvar->getIntValue(); return 0; }
void Settings::decreaseCVar(const std::string& name, const unsigned int& value) { CVar* cvar = cvarlist[name]; if ( cvar ) { cvar->decrease(value); std::stringstream v; v << cvar->getIntValue(); m_logBuffer->add(name + ": " + v.str()); } else BE_LOG( "unknown cvar: '" << name << "'" ); }
void Settings::increaseCVar(const std::string& name, const unsigned int& value) { CVar* cvar = cvarlist[name]; if ( cvar ) { cvar->increase(value); std::stringstream v; v << cvar->getIntValue(); m_logBuffer->add(name + ": " + v.str()); } else m_logDebug << "::SETTINGS unknown cvar: '" << name << "'\n"; }