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

◆ GetViewIndex() [3/3]

override int ItemBase::GetViewIndex ( )
inlineprotected

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

405 {
406 if (MemoryPointExists("invView2"))
407 {
408 InventoryLocation il = new InventoryLocation();
409 GetInventory().GetCurrentInventoryLocation(il);
410 InventoryLocationType type = il.GetType();
411
412 if (GetState() == PACKED)
413 {
414 switch (type)
415 {
416 case InventoryLocationType.ATTACHMENT:
417 return 1;
418 default:
419 return 0;
420 }
421 }
422 else
423 {
424 switch (type)
425 {
426 case InventoryLocationType.ATTACHMENT:
427 case InventoryLocationType.GROUND:
428 return 1;
429 default:
430 return 0;
431 }
432 }
433 }
434
435 return 0;
436 }
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:438

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