DayZ 1.29
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ RegisterProfileOption()

void DayZProfilesOptions::RegisterProfileOption ( EDayZProfilesOptions option,
string profileOptionName,
bool def = true )
inlineprivate

init of DayZProfilesOption - profileOptionName, value from Profiles files, or use default value

См. определение в файле DayZGame.c строка 421

422 {
423 if (!m_DayZProfilesOptionsBool.Contains(option))
424 {
426 bool profileVal = GetProfileValueBool(profileOptionName, def);
427
428 m_DayZProfilesOptionsBool.Set(option, new DayZProfilesOptionBool(profileOptionName, profileVal, def));
429 SetProfileOptionBool(option, profileVal);
430 }
431 }
DayZProfilesOption DayZProfilesOptionBool
Определения DayZGame.c:400
ref map< EDayZProfilesOptions, ref DayZProfilesOptionBool > m_DayZProfilesOptionsBool
Определения DayZGame.c:406
void SetProfileOptionBool(EDayZProfilesOptions option, bool value)
Определения DayZGame.c:531
bool GetProfileValueBool(string name, bool def=false)
Return value from profile variable, if variable with given name is not present, default value is retu...
Определения 3_Game/DayZ/tools/tools.c:1019

Перекрестные ссылки GetProfileValueBool(), m_DayZProfilesOptionsBool и SetProfileOptionBool().

Используется в RegisterProfileOptionBool().