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

◆ GetViewIndex() [3/3]

override int ItemBase::GetViewIndex ( )
inlineprotected

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

426 {
427 if (MemoryPointExists("invView2"))
428 {
429 InventoryLocation il = new InventoryLocation();
430 GetInventory().GetCurrentInventoryLocation(il);
431 InventoryLocationType type = il.GetType();
432
433 if (GetState() == PACKED)
434 {
435 switch (type)
436 {
437 case InventoryLocationType.ATTACHMENT:
438 return 1;
439 default:
440 return 0;
441 }
442 }
443 else
444 {
445 switch (type)
446 {
447 case InventoryLocationType.ATTACHMENT:
448 case InventoryLocationType.GROUND:
449 return 1;
450 default:
451 return 0;
452 }
453 }
454 }
455
456 return 0;
457 }
InventoryLocationType
types of Inventory Location
Определения InventoryLocation.c:4
proto native int GetType()
returns type of InventoryLocation
static const int PACKED
Определения TentBase.c:20
int GetState()
Определения TentBase.c:459

Перекрестные ссылки GetState(), InventoryLocation::GetType() и PACKED.