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

◆ GetConfigAttachments()

TStringArray SceneObject::GetConfigAttachments ( )
inlineprotected

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

586 {
587 string type_name = GetTypeName();
588 TStringArray cfg_attachments = new TStringArray;
589
590 string cfg_path;
591
592 if (GetGame().ConfigIsExisting(CFG_VEHICLESPATH+" "+type_name))
593 {
594 cfg_path = CFG_VEHICLESPATH+" "+type_name+" attachments";
595 }
596 else if (GetGame().ConfigIsExisting(CFG_WEAPONSPATH+" "+type_name))
597 {
598 cfg_path = CFG_WEAPONSPATH+" "+type_name+" attachments";
599 }
600 else if (GetGame().ConfigIsExisting(CFG_MAGAZINESPATH+" "+type_name))
601 {
602 cfg_path = CFG_MAGAZINESPATH+" "+type_name+" attachments";
603 }
604
605 GetGame().ConfigGetTextArray(cfg_path, cfg_attachments);
606
607 return cfg_attachments;
608 }
proto native void ConfigGetTextArray(string path, out TStringArray values)
Get array of strings from config on path.
string GetTypeName()
Определения SceneObject.c:375
proto native CGame GetGame()
array< string > TStringArray
Определения EnScript.c:685
const string CFG_VEHICLESPATH
Определения constants.c:220
const string CFG_WEAPONSPATH
Определения constants.c:221
const string CFG_MAGAZINESPATH
Определения constants.c:222

Перекрестные ссылки CFG_MAGAZINESPATH, CFG_VEHICLESPATH, CFG_WEAPONSPATH, CGame::ConfigGetTextArray(), GetGame() и GetTypeName().

Используется в UIScriptedMenu::Refresh().