29 {
33 {
34 CachedEquipmentItemAttribute newItemAttributes = new CachedEquipmentItemAttribute();
35 newItemAttributes.m_Entity = entity;
36 newItemAttributes.m_Parent = parent;
37 newItemAttributes.m_InventoryDepth = item.GetHierarchyLevel();
38 newItemAttributes.m_SlotIndex = slotId;
40
41 #ifdef ENABLE_LOGGING
42 LogMessage(string.Format("parent:%1 entity:%2 (slot:%3)", parent, entity, InventorySlots.GetSlotName(slotId)), "OnItemAttached");
43 #endif
44
45 Insert(category, newItemAttributes);
46 }
47
48 CachedEquipmentStorageInventoryEntry params = new CachedEquipmentStorageInventoryEntry();
49 params.m_Entity = item;
50 params.m_GameInventory = item.GetInventory();
51 params.m_SlotId = slotId;
52 params.m_CallerMethod = "OnItemAttached";
54
57 }
ECachedEquipmentItemCategory
ECachedEquipmentOperationMode
ECachedEquipmentPlacement
void ProcessItemInventory(CachedEquipmentStorageInventoryEntry params)
bool IsStored(Entity entity, ECachedEquipmentItemCategory category)
void Insert(ECachedEquipmentItemCategory category, CachedEquipmentItemAttribute attributes)