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

◆ RegisterProfileOptionFloat()

void DayZProfilesOptions::RegisterProfileOptionFloat ( EDayZProfilesOptions option,
string profileOptionName,
float defaultValue = 0.0 )
inlineprivate

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

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

453 {
454 if (!m_DayZProfilesOptionsFloat.Contains(option))
455 {
457 string outValue;
458 g_Game.GetProfileString(profileOptionName, outValue);
459 float value = outValue.ToFloat();
460
461 m_DayZProfilesOptionsFloat.Set(option, new DayZProfilesOptionFloat(profileOptionName, value, defaultValue));
462 SetProfileOptionFloat(option, value);
463 }
464 }
DayZGame g_Game
Определения DayZGame.c:3942
Param3< string, float, float > DayZProfilesOptionFloat
Определения DayZGame.c:402
void SetProfileOptionFloat(EDayZProfilesOptions option, float value)
Определения DayZGame.c:550
ref map< EDayZProfilesOptions, ref DayZProfilesOptionFloat > m_DayZProfilesOptionsFloat
Определения DayZGame.c:408
proto native float ToFloat()
Converts string to float.

Перекрестные ссылки g_Game, m_DayZProfilesOptionsFloat, SetProfileOptionFloat() и string::ToFloat().