class CachedEquipmentStorageBase
Full hierarchy 1
- CachedEquipmentStorageBase
Constructors 1
void CachedEquipmentStorageBase()References m_ItemsCacheByCategory
Members 1
protected ref map<ECachedEquipmentItemCategory, ref array<ref CachedEquipmentItemAttribute>> m_ItemsCacheByCategoryReferenced by CachedEquipmentStorageBase(), DumpCache(), GetEntitiesByCategory()
Show 5 more
, Insert(), IsStored(), PrintCachedEntitiesByCategory(), Remove(), and UpdateParents()Methods 12
Referenced by EntityAI.EEItemAttached()
Referenced by EntityAI.EEItemDetached()
void OnItemCargoIn(notnull Entity entity)void OnItemCargoOut(notnull Entity entity)array<Entity> GetEntitiesByCategory(CachedEquipmentStorageQuery query)List of entities matching the CachedEquipmentStorageQuery query
query- Query filter settings
References array.Count(), array.Count(), array.Find()
Show 13 more
, map.GetKeyArray(), array.Insert(), array.Insert(), new TIntArray(), CachedEquipmentStorageQuery.m_Category, CachedEquipmentItemAttribute.m_Entity, CachedEquipmentItemAttribute.m_InventoryDepth, CachedEquipmentItemAttribute.m_InventoryPlacement, m_ItemsCacheByCategory, CachedEquipmentStorageQuery.m_MaximumDepth, CachedEquipmentItemAttribute.m_ParentInventoryPlacement, CachedEquipmentStorageQuery.m_ParentPlacement, and CachedEquipmentStorageQuery.m_Placementarray<Entity> GetEntitiesByCategory(ECachedEquipmentItemCategory category, ECachedEquipmentPlacement placement = ECachedEquipmentPlacement.ANY)List of entities matching the category and inventory placement
category- Matching category
placement- Inventory placement (see ECachedEquipmentPlacement)
References new CachedEquipmentStorageQuery(), CachedEquipmentStorageQuery.m_Category, CachedEquipmentStorageQuery.m_MaximumDepth
Show 1 more
, CachedEquipmentStorageQuery.m_Placementprotected bool IsStored(Entity entity, ECachedEquipmentItemCategory category)protected void Insert(ECachedEquipmentItemCategory category, CachedEquipmentItemAttribute attributes)protected void Remove(ECachedEquipmentItemCategory category, Entity entity)References map.Contains(), array.Insert(), array.RemoveItem()
Show 2 more
, CachedEquipmentItemAttribute.m_Entity, and m_ItemsCacheByCategoryvoid UpdateParents()void PrintCachedEntitiesByCategory(ECachedEquipmentItemCategory category)DIAG_DEVELOPERReferenced by DumpCache()
void DumpCache()DIAG_DEVELOPERReferences EnumTools.EnumFlagsToString(), string.Format(), map.GetKeyArray()