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

455 {
456 if (!m_DayZProfilesOptionsInt.Contains(option))
457 {
459 string outValue;
460 g_Game.GetProfileString(profileOptionName, outValue);
461 int value = outValue.ToInt();
462
463 m_DayZProfilesOptionsInt.Set(option, new DayZProfilesOptionInt(profileOptionName, value, defaultValue));
464 SetProfileOptionInt(option, value);
465 }
466 }
Param3< string, int, int > DayZProfilesOptionInt
Определения DayZGame.c:417
DayZGame g_Game
Определения DayZGame.c:4074
ref map< EDayZProfilesOptions, ref DayZProfilesOptionInt > m_DayZProfilesOptionsInt
Определения DayZGame.c:423
void SetProfileOptionInt(EDayZProfilesOptions option, int value)
Определения DayZGame.c:552
proto native int ToInt()
Converts string to integer.

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