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

◆ OnItemCargoIn()

override void OnItemCargoIn ( notnull Entity entity)

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

85 {
86 EntityAI item = EntityAI.Cast(entity);
87 if (!item.GetHierarchyParent())
88 return;
89
90 ECachedEquipmentItemCategory category = item.GetCachedEquipmentCategory();
91 if (category != ECachedEquipmentItemCategory.NONE && !IsStored(entity, category))
92 {
93 CachedEquipmentItemAttribute newItemAttributes = new CachedEquipmentItemAttribute();
94 newItemAttributes.m_Entity = entity;
95 newItemAttributes.m_Parent = item.GetHierarchyParent();
96 newItemAttributes.m_InventoryDepth = item.GetHierarchyLevel();
97 newItemAttributes.m_InventoryPlacement = ECachedEquipmentPlacement.CARGO;
98
99 #ifdef ENABLE_LOGGING
100 LogMessage(string.Format("parent:%1 entity:%2", item.GetHierarchyParent(), entity), "OnItemCargoIn");
101 #endif
102
103 Insert(category, newItemAttributes);
104 }
105
106 CachedEquipmentStorageInventoryEntry params = new CachedEquipmentStorageInventoryEntry();
107 params.m_Entity = item;
108 params.m_GameInventory = item.GetInventory();
109 params.m_CallerMethod = "OnItemCargoIn";
110 params.m_OperationMode = ECachedEquipmentOperationMode.INSERT;
111
112 ProcessItemInventory(params);
113 }
void ProcessItemInventory(CachedEquipmentStorageInventoryEntry params)
Определения CachedEquipmentStorage.c:141
ECachedEquipmentItemCategory
Определения ECachedEquipmentItemCategory.c:2
ECachedEquipmentOperationMode
Определения ECachedEquipmentOperationMode.c:2
ECachedEquipmentPlacement
Определения ECachedEquipmentPlacement.c:2

Перекрестные ссылки CachedEquipmentStorageBase::Insert() и ProcessItemInventory().