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

◆ GetParameterBool()

bool PluginFileHandler::GetParameterBool ( string name)
inlineprivate

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

524 {
525 string loaded_param = LoadParameter(name);
526 bool ret_value = false;
527
528 if ( loaded_param != "" )
529 {
530 int v = loaded_param.ToInt();
531 if ( v == 1 )
532 {
533 ret_value = true;
534 }
535 }
536 else
537 {
538 SetParameterBool(name, ret_value);
539 }
540
541 return ret_value;
542 }
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
void SetParameterBool(string name, bool value, bool save_in_file=true)
Определения PluginLocalProfile.c:452
string LoadParameter(string param_name)
Определения PluginLocalProfile.c:304
proto native int ToInt()
Converts string to integer.

Перекрестные ссылки LoadParameter(), name, SetParameterBool() и string::ToInt().