DayZ 1.30
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 строка 437

438 {
439 if (!m_DayZProfilesOptionsBool.Contains(option))
440 {
442 bool profileVal = GetProfileValueBool(profileOptionName, def);
443
444 m_DayZProfilesOptionsBool.Set(option, new DayZProfilesOptionBool(profileOptionName, profileVal, def));
445 SetProfileOptionBool(option, profileVal);
446 }
447 }
DayZProfilesOption DayZProfilesOptionBool
Определения DayZGame.c:416
ref map< EDayZProfilesOptions, ref DayZProfilesOptionBool > m_DayZProfilesOptionsBool
Определения DayZGame.c:422
void SetProfileOptionBool(EDayZProfilesOptions option, bool value)
Определения DayZGame.c:547
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().