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

◆ IsAttachment()

bool GameInventory::IsAttachment ( )
inlineprotected

Returns true if this Inventory owner is an attachment of something.

См. определение в файле 3_Game/DayZ/Systems/Inventory/Inventory.c строка 410

411 {
412 InventoryLocation lcn = new InventoryLocation();
414 if (lcn.GetType() == InventoryLocationType.ATTACHMENT)
415 {
416 return true;
417 }
418
419 return false;
420 }
InventoryLocationType
types of Inventory Location
Определения InventoryLocation.c:4
proto native bool GetCurrentInventoryLocation(out notnull InventoryLocation loc)
returns information about current item location
proto native int GetType()
returns type of InventoryLocation

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