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

469 {
470 if (!m_DayZProfilesOptionsFloat.Contains(option))
471 {
473 string outValue;
474 g_Game.GetProfileString(profileOptionName, outValue);
475 float value = outValue.ToFloat();
476
477 m_DayZProfilesOptionsFloat.Set(option, new DayZProfilesOptionFloat(profileOptionName, value, defaultValue));
478 SetProfileOptionFloat(option, value);
479 }
480 }
DayZGame g_Game
Определения DayZGame.c:4074
Param3< string, float, float > DayZProfilesOptionFloat
Определения DayZGame.c:418
void SetProfileOptionFloat(EDayZProfilesOptions option, float value)
Определения DayZGame.c:566
ref map< EDayZProfilesOptions, ref DayZProfilesOptionFloat > m_DayZProfilesOptionsFloat
Определения DayZGame.c:424
proto native float ToFloat()
Converts string to float.

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