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

◆ OnItemDetached()

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

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

62 {
63 EntityAI item = EntityAI.Cast(entity);
64 ECachedEquipmentItemCategory category = item.GetCachedEquipmentCategory();
65 if (category != ECachedEquipmentItemCategory.NONE)
66 {
67 #ifdef ENABLE_LOGGING
68 LogMessage(string.Format("parent:%1 entity:%2 (slot:%3)", parent, entity, InventorySlots.GetSlotName(slotId)), "OnItemDetached");
69 #endif
70
71 Remove(category, entity);
72 }
73
74 CachedEquipmentStorageInventoryEntry params = new CachedEquipmentStorageInventoryEntry();
75 params.m_Entity = item;
76 params.m_GameInventory = item.GetInventory();
77 params.m_SlotId = slotId;
78 params.m_CallerMethod = "OnItemDetached";
79 params.m_OperationMode = ECachedEquipmentOperationMode.REMOVE;
80
82 }
class LogManager EntityAI
ECachedEquipmentItemCategory
Определения ECachedEquipmentItemCategory.c:2
ECachedEquipmentOperationMode
Определения ECachedEquipmentOperationMode.c:2
void ProcessItemInventory(CachedEquipmentStorageInventoryEntry params)
Определения CachedEquipmentStorage.c:143
void Remove(ECachedEquipmentItemCategory category, Entity entity)
Определения CachedEquipmentStorageBase.c:156

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