70 {
73
74 foreach (int category: categoriesAll)
75 {
77 matchedCategories.Insert(category);
78 }
79
80 array<Entity> entities = new array<Entity>();
81
82 if (matchedCategories.Count() > 0)
83 {
84 foreach (int matchedCategory : matchedCategories)
85 {
87 {
88 bool placementMatched = false;
89 bool parentPlacementMatched = false;
90 bool inventoryDepthMatched = false;
91
93 placementMatched = true;
94
96 parentPlacementMatched = true;
97
99 inventoryDepthMatched = true;
100
101 if (placementMatched && parentPlacementMatched && inventoryDepthMatched)
102 entities.Insert(itemAttributes.m_Entity);
103 }
104 }
105 }
106
107 return entities;
108 }
ECachedEquipmentPlacement
ref map< ECachedEquipmentItemCategory, ref array< ref CachedEquipmentItemAttribute > > m_ItemsCacheByCategory
ECachedEquipmentItemCategory m_Category
ref TIntArray m_ParentPlacement
ECachedEquipmentPlacement m_Placement
const int INDEX_NOT_FOUND