144 {
146 foreach (
ECachedEquipmentItemCategory attachmentCategory, array<ref CachedEquipmentItemAttribute> attachmentAttributes : attachmentAttributesPerCategory)
147 {
148 foreach (CachedEquipmentItemAttribute attachmentAttribute : attachmentAttributes)
149 {
151 Insert(attachmentCategory, attachmentAttribute);
152 else
153 Remove(attachmentCategory, attachmentAttribute.m_Entity);
154 }
155 }
156
158 foreach (
ECachedEquipmentItemCategory cargoCategory, array<ref CachedEquipmentItemAttribute> cargoAttributes : cargoAttributesPerCategory)
159 {
160 foreach (CachedEquipmentItemAttribute cargoAttribute : cargoAttributes)
161 {
163 Insert(cargoCategory, cargoAttribute);
164 else
165 Remove(cargoCategory, cargoAttribute.m_Entity);
166 }
167 }
168 }
map CachedItemAttributesPerCategory
ECachedEquipmentItemCategory
ECachedEquipmentOperationMode
map< ECachedEquipmentItemCategory, ref array< ref CachedEquipmentItemAttribute > > ProcessAttachments(CachedEquipmentStorageInventoryEntry params)
Processes attachments of item given through params.
map< ECachedEquipmentItemCategory, ref array< ref CachedEquipmentItemAttribute > > ProcessCargo(CachedEquipmentStorageInventoryEntry params)
Processes cargo of item given through params.
void Insert(ECachedEquipmentItemCategory category, CachedEquipmentItemAttribute attributes)
void Remove(ECachedEquipmentItemCategory category, Entity entity)