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

◆ GetItemSlots()

array< string > Attachments::GetItemSlots ( EntityAI e)
inlineprotected

См. определение в файле 5_Mission/DayZ/GUI/InventoryNew/Attachments.c строка 564

565 {
566 TStringArray searching_in = new TStringArray;
567 searching_in.Insert( CFG_VEHICLESPATH );
568 searching_in.Insert( CFG_WEAPONSPATH );
569 searching_in.Insert( CFG_MAGAZINESPATH );
570
571 array<string> attachments_slots = new array<string>;
572 int i = 0;
573 for ( int s = 0; s < searching_in.Count(); ++s )
574 {
575 string cfg_name = searching_in.Get( s );
576 string path = cfg_name + " " + e.GetType();
577
578 if ( g_Game.ConfigIsExisting( path ) )
579 {
580 g_Game.ConfigGetTextArray( path + " attachments", attachments_slots );
581 if ( e.IsWeapon() && (!e.ConfigIsExisting("DisplayMagazine") || e.ConfigGetBool("DisplayMagazine")) )
582 {
583 attachments_slots.Insert( "magazine" );
584 }
585
586 return attachments_slots;
587 }
588 }
589 if ( e.IsWeapon() && (!e.ConfigIsExisting("DisplayMagazine") || e.ConfigGetBool("DisplayMagazine")) )
590 {
591 attachments_slots.Insert( "magazine" );
592 }
593
594 return attachments_slots;
595 }
DayZGame g_Game
Определения DayZGame.c:4074
string path
Определения OptionSelectorMultistate.c:142
proto int Insert(T value)
class array< Class T > TStringArray
const string CFG_VEHICLESPATH
Определения 3_Game/DayZ/constants.c:228
const string CFG_WEAPONSPATH
Определения 3_Game/DayZ/constants.c:229
const string CFG_MAGAZINESPATH
Определения 3_Game/DayZ/constants.c:230

Перекрестные ссылки CFG_MAGAZINESPATH, CFG_VEHICLESPATH, CFG_WEAPONSPATH, g_Game, path и TStringArray.

Используется в Attachments().