DayZ 1.27
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.

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

1022{
1023 string value;
1024 if (GetGame().GetProfileString(name, value))
1025 {
1026 if (value == "true" || value == "1")
1027 {
1028 return true;
1029 }
1030 else
1031 {
1032 return false;
1033 }
1034 }
1035 else
1036 {
1037 return def;
1038 }
1039}
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
proto native CGame GetGame()

Перекрестные ссылки GetGame() и name.

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