DayZ 1.29
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 строка 438

439 {
440 if (!m_DayZProfilesOptionsInt.Contains(option))
441 {
443 string outValue;
444 g_Game.GetProfileString(profileOptionName, outValue);
445 int value = outValue.ToInt();
446
447 m_DayZProfilesOptionsInt.Set(option, new DayZProfilesOptionInt(profileOptionName, value, defaultValue));
448 SetProfileOptionInt(option, value);
449 }
450 }
Param3< string, int, int > DayZProfilesOptionInt
Определения DayZGame.c:401
DayZGame g_Game
Определения DayZGame.c:3942
ref map< EDayZProfilesOptions, ref DayZProfilesOptionInt > m_DayZProfilesOptionsInt
Определения DayZGame.c:407
void SetProfileOptionInt(EDayZProfilesOptions option, int value)
Определения DayZGame.c:536
proto native int ToInt()
Converts string to integer.

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