DayZ 1.27
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 строка 450

451 {
452 if (!m_DayZProfilesOptionsFloat.Contains(option))
453 {
455 string outValue;
456 GetGame().GetProfileString(profileOptionName, outValue);
457 float value = outValue.ToFloat();
458
459 m_DayZProfilesOptionsFloat.Set(option, new DayZProfilesOptionFloat(profileOptionName, value, defaultValue));
460 SetProfileOptionFloat(option, value);
461 }
462 }
Param3< string, float, float > DayZProfilesOptionFloat
Определения DayZGame.c:400
proto bool GetProfileString(string name, out string value)
Gets string from profile variable.
void SetProfileOptionFloat(EDayZProfilesOptions option, float value)
Определения DayZGame.c:548
ref map< EDayZProfilesOptions, ref DayZProfilesOptionFloat > m_DayZProfilesOptionsFloat
Определения DayZGame.c:406
proto native CGame GetGame()
proto native float ToFloat()
Converts string to float.

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