175 {
177 if (!categories)
178 return;
179
180 InventoryLocation parentInventoryLocation = new InventoryLocation();
181
183 {
185 continue;
186
188 {
189 if (!itemAttributes || !itemAttributes.m_Parent)
190 continue;
191
193 if (!Class.CastTo(parent, itemAttributes.m_Parent))
194 continue;
195
196 GameInventory parentInventory = parent.GetInventory();
197 if (!parentInventory)
198 continue;
199
201 itemAttributes.m_ParentInventoryPlacement = parentInventoryLocation.
GetSlot();
202 }
203 }
204 }
ECachedEquipmentItemCategory
ref map< ECachedEquipmentItemCategory, ref array< ref CachedEquipmentItemAttribute > > m_ItemsCacheByCategory
proto native bool GetCurrentInventoryLocation(out notnull InventoryLocation loc)
returns information about current item location
proto native int GetSlot()
returns slot id if current type is Attachment