87 {
89 if (!item.GetHierarchyParent())
90 return;
91
94 {
95 CachedEquipmentItemAttribute newItemAttributes = new CachedEquipmentItemAttribute();
96 newItemAttributes.m_Entity = entity;
97 newItemAttributes.m_Parent = item.GetHierarchyParent();
98 newItemAttributes.m_InventoryDepth = item.GetHierarchyLevel();
100
101 #ifdef ENABLE_LOGGING
102 LogMessage(string.Format("parent:%1 entity:%2", item.GetHierarchyParent(), entity), "OnItemCargoIn");
103 #endif
104
105 Insert(category, newItemAttributes);
106 }
107
108 CachedEquipmentStorageInventoryEntry params = new CachedEquipmentStorageInventoryEntry();
109 params.m_Entity = item;
110 params.m_GameInventory = item.GetInventory();
111 params.m_CallerMethod = "OnItemCargoIn";
113
115 }
ECachedEquipmentItemCategory
ECachedEquipmentOperationMode
ECachedEquipmentPlacement
void ProcessItemInventory(CachedEquipmentStorageInventoryEntry params)
bool IsStored(Entity entity, ECachedEquipmentItemCategory category)
void Insert(ECachedEquipmentItemCategory category, CachedEquipmentItemAttribute attributes)