DayZ Scripts
PC Stable Documentation
 
Loading...
Searching...
No Matches
CachedEquipmentStorageBase Class Reference

Private Member Functions

void CachedEquipmentStorageBase ()
 
void OnItemAttached (notnull Entity entity, int slotId, notnull Entity parent)
 
void OnItemDetached (notnull Entity entity, int slotId, notnull Entity parent)
 
void OnItemCargoIn (notnull Entity entity)
 
void OnItemCargoOut (notnull Entity entity)
 
array< EntityGetEntitiesByCategory (CachedEquipmentStorageQuery query)
 List of entities matching the CachedEquipmentStorageQuery query.
 
array< EntityGetEntitiesByCategory (ECachedEquipmentItemCategory category, ECachedEquipmentPlacement placement=ECachedEquipmentPlacement.ANY)
 List of entities matching the category and inventory placement.
 
protected bool IsStored (Entity entity, ECachedEquipmentItemCategory category)
 
protected void Insert (ECachedEquipmentItemCategory category, CachedEquipmentItemAttribute attributes)
 
protected void Remove (ECachedEquipmentItemCategory category, Entity entity)
 

Private Attributes

protected ref map< ECachedEquipmentItemCategory, ref array< ref CachedEquipmentItemAttribute > > m_ItemsCacheByCategory
 

Constructor & Destructor Documentation

◆ CachedEquipmentStorageBase()

void CachedEquipmentStorageBase ( )
inlineprivate

Member Function Documentation

◆ GetEntitiesByCategory() [1/2]

array< Entity > GetEntitiesByCategory ( CachedEquipmentStorageQuery  query)
inlineprivate

◆ GetEntitiesByCategory() [2/2]

array< Entity > GetEntitiesByCategory ( ECachedEquipmentItemCategory  category,
ECachedEquipmentPlacement  placement = ECachedEquipmentPlacement.ANY 
)
inlineprivate

List of entities matching the category and inventory placement.

Parameters
categoryMatching category
placementInventory placement (see ECachedEquipmentPlacement)

References m_ItemsCacheByCategory.

◆ Insert()

protected void Insert ( ECachedEquipmentItemCategory  category,
CachedEquipmentItemAttribute  attributes 
)
inlineprivate

◆ IsStored()

protected bool IsStored ( Entity  entity,
ECachedEquipmentItemCategory  category 
)
inlineprivate

◆ OnItemAttached()

void OnItemAttached ( notnull Entity  entity,
int  slotId,
notnull Entity  parent 
)
private

◆ OnItemCargoIn()

void OnItemCargoIn ( notnull Entity  entity)
private

Referenced by Entity::EECargoIn().

◆ OnItemCargoOut()

void OnItemCargoOut ( notnull Entity  entity)
private

Referenced by Entity::EECargoOut().

◆ OnItemDetached()

void OnItemDetached ( notnull Entity  entity,
int  slotId,
notnull Entity  parent 
)
private

◆ Remove()

protected void Remove ( ECachedEquipmentItemCategory  category,
Entity  entity 
)
inlineprivate

Field Documentation

◆ m_ItemsCacheByCategory

protected ref map<ECachedEquipmentItemCategory, ref array<ref CachedEquipmentItemAttribute> > m_ItemsCacheByCategory
private

The documentation for this class was generated from the following file: