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

◆ GetProfileValueBool()

bool GetProfileValueBool ( string name,
bool def = false )
protected

Return value from profile variable, if variable with given name is not present, default value is returned.

См. определение в файле 3_Game/DayZ/tools/tools.c строка 1019

1020{
1021 string value;
1022 if (g_Game.GetProfileString(name, value))
1023 {
1024 if (value == "true" || value == "1")
1025 {
1026 return true;
1027 }
1028 else
1029 {
1030 return false;
1031 }
1032 }
1033 else
1034 {
1035 return def;
1036 }
1037}
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
DayZGame g_Game
Определения DayZGame.c:3942

Перекрестные ссылки g_Game и name.

Используется в DayZProfilesOptions::RegisterProfileOption() и DayZProfilesOptions::ResetOptionsBool().