Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
JSI_ConfigDB Namespace Reference

Functions

bool IsProtectedConfigName (const std::string &name)
 
bool GetConfigNamespace (const std::wstring &cfgNsString, EConfigNamespace &cfgNs)
 
bool HasChanges (const std::wstring &cfgNsString)
 
bool SetChanges (const std::wstring &cfgNsString, bool value)
 
std::string GetValue (const std::wstring &cfgNsString, const std::string &name)
 
bool CreateValue (const std::wstring &cfgNsString, const std::string &name, const std::string &value)
 
bool CreateValues (const std::wstring &cfgNsString, const std::string &name, const std::vector< CStr > &values)
 
bool RemoveValue (const std::wstring &cfgNsString, const std::string &name)
 
bool SaveChanges (const std::wstring &cfgNsString)
 
bool RemoveValueAndSave (const std::wstring &cfgNsString, const std::string &name)
 
bool SaveValue (const std::wstring &cfgNsString, const std::string &name, const std::string &value)
 
void CreateAndSaveValue (const std::wstring &cfgNsString, const std::string &name, const std::string &value)
 
bool Reload (const std::wstring &cfgNsString)
 
void PauseOnFocusLoss (bool pause)
 
void SetGUIScale (float scale)
 
void RegisterScriptFunctions (const ScriptRequest &rq)
 

Variables

static const std::unordered_set< std::string > g_ProtectedConfigNames
 

Function Documentation

◆ CreateAndSaveValue()

void JSI_ConfigDB::CreateAndSaveValue ( const std::wstring &  cfgNsString,
const std::string &  name,
const std::string &  value 
)

◆ CreateValue()

bool JSI_ConfigDB::CreateValue ( const std::wstring &  cfgNsString,
const std::string &  name,
const std::string &  value 
)

◆ CreateValues()

bool JSI_ConfigDB::CreateValues ( const std::wstring &  cfgNsString,
const std::string &  name,
const std::vector< CStr > &  values 
)

◆ GetConfigNamespace()

bool JSI_ConfigDB::GetConfigNamespace ( const std::wstring &  cfgNsString,
EConfigNamespace cfgNs 
)

◆ GetValue()

std::string JSI_ConfigDB::GetValue ( const std::wstring &  cfgNsString,
const std::string &  name 
)

◆ HasChanges()

bool JSI_ConfigDB::HasChanges ( const std::wstring &  cfgNsString)

◆ IsProtectedConfigName()

bool JSI_ConfigDB::IsProtectedConfigName ( const std::string &  name)

◆ PauseOnFocusLoss()

void JSI_ConfigDB::PauseOnFocusLoss ( bool  pause)

◆ RegisterScriptFunctions()

void JSI_ConfigDB::RegisterScriptFunctions ( const ScriptRequest rq)

◆ Reload()

bool JSI_ConfigDB::Reload ( const std::wstring &  cfgNsString)

◆ RemoveValue()

bool JSI_ConfigDB::RemoveValue ( const std::wstring &  cfgNsString,
const std::string &  name 
)

◆ RemoveValueAndSave()

bool JSI_ConfigDB::RemoveValueAndSave ( const std::wstring &  cfgNsString,
const std::string &  name 
)

◆ SaveChanges()

bool JSI_ConfigDB::SaveChanges ( const std::wstring &  cfgNsString)

◆ SaveValue()

bool JSI_ConfigDB::SaveValue ( const std::wstring &  cfgNsString,
const std::string &  name,
const std::string &  value 
)

◆ SetChanges()

bool JSI_ConfigDB::SetChanges ( const std::wstring &  cfgNsString,
bool  value 
)

◆ SetGUIScale()

void JSI_ConfigDB::SetGUIScale ( float  scale)

Variable Documentation

◆ g_ProtectedConfigNames

const std::unordered_set<std::string> JSI_ConfigDB::g_ProtectedConfigNames
static
Initial value:
= {
"modio.public_key",
"modio.v1.baseurl",
"modio.v1.api_key",
"modio.v1.name_id",
"userreport.id"
}