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

◆ GetViewIndex() [3/3]

override int ItemBase::GetViewIndex ( )
inlineprotected

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

428 {
429 if (MemoryPointExists("invView2"))
430 {
431 InventoryLocation il = new InventoryLocation();
432 GetInventory().GetCurrentInventoryLocation(il);
433 InventoryLocationType type = il.GetType();
434
435 if (GetState() == PACKED)
436 {
437 switch (type)
438 {
439 case InventoryLocationType.ATTACHMENT:
440 return 1;
441 default:
442 return 0;
443 }
444 }
445 else
446 {
447 switch (type)
448 {
449 case InventoryLocationType.ATTACHMENT:
450 case InventoryLocationType.GROUND:
451 return 1;
452 default:
453 return 0;
454 }
455 }
456 }
457
458 return 0;
459 }
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:461

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