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

◆ RegisterProfileOptionInt()

void DayZProfilesOptions::RegisterProfileOptionInt ( EDayZProfilesOptions option,
string profileOptionName,
int defaultValue = 0 )
inlineprivate

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

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

437 {
438 if (!m_DayZProfilesOptionsInt.Contains(option))
439 {
441 string outValue;
442 GetGame().GetProfileString(profileOptionName, outValue);
443 int value = outValue.ToInt();
444
445 m_DayZProfilesOptionsInt.Set(option, new DayZProfilesOptionInt(profileOptionName, value, defaultValue));
446 SetProfileOptionInt(option, value);
447 }
448 }
Param3< string, int, int > DayZProfilesOptionInt
Определения DayZGame.c:399
proto bool GetProfileString(string name, out string value)
Gets string from profile variable.
ref map< EDayZProfilesOptions, ref DayZProfilesOptionInt > m_DayZProfilesOptionsInt
Определения DayZGame.c:405
void SetProfileOptionInt(EDayZProfilesOptions option, int value)
Определения DayZGame.c:534
proto native CGame GetGame()
proto native int ToInt()
Converts string to integer.

Перекрестные ссылки GetGame(), CGame::GetProfileString(), m_DayZProfilesOptionsInt, SetProfileOptionInt() и string::ToInt().