DayZ 1.27
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 строка 419

420 {
421 if (!m_DayZProfilesOptionsBool.Contains(option))
422 {
424 bool profileVal = GetProfileValueBool(profileOptionName, def);
425
426 m_DayZProfilesOptionsBool.Set(option, new DayZProfilesOptionBool(profileOptionName, profileVal, def));
427 SetProfileOptionBool(option, profileVal);
428 }
429 }
DayZProfilesOption DayZProfilesOptionBool
Определения DayZGame.c:398
ref map< EDayZProfilesOptions, ref DayZProfilesOptionBool > m_DayZProfilesOptionsBool
Определения DayZGame.c:404
void SetProfileOptionBool(EDayZProfilesOptions option, bool value)
Определения DayZGame.c:529
bool GetProfileValueBool(string name, bool def=false)
Return value from profile variable, if variable with given name is not present, default value is retu...
Определения tools.c:1021

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

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