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

◆ OnItemDetached()

override void OnItemDetached ( notnull Entity entity,
int slotId,
notnull Entity parent )

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

60 {
61 EntityAI item = EntityAI.Cast(entity);
62 ECachedEquipmentItemCategory category = item.GetCachedEquipmentCategory();
63 if (category != ECachedEquipmentItemCategory.NONE)
64 {
65 #ifdef ENABLE_LOGGING
66 LogMessage(string.Format("parent:%1 entity:%2 (slot:%3)", parent, entity, InventorySlots.GetSlotName(slotId)), "OnItemDetached");
67 #endif
68
69 Remove(category, entity);
70 }
71
72 CachedEquipmentStorageInventoryEntry params = new CachedEquipmentStorageInventoryEntry();
73 params.m_Entity = item;
74 params.m_GameInventory = item.GetInventory();
75 params.m_SlotId = slotId;
76 params.m_CallerMethod = "OnItemDetached";
77 params.m_OperationMode = ECachedEquipmentOperationMode.REMOVE;
78
80 }
void Remove(Object object)
Определения ActionTargets.c:207
void ProcessItemInventory(CachedEquipmentStorageInventoryEntry params)
Определения CachedEquipmentStorage.c:141
ECachedEquipmentItemCategory
Определения ECachedEquipmentItemCategory.c:2
ECachedEquipmentOperationMode
Определения ECachedEquipmentOperationMode.c:2
static proto native owned string GetSlotName(int id)
converts slot_id to string
provides access to slot configuration
Определения InventorySlots.c:6

Перекрестные ссылки InventorySlots::GetSlotName(), ProcessItemInventory() и CachedEquipmentStorageBase::Remove().