DayZ 1.29
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ Remove()

void CachedEquipmentStorageBase::Remove ( ECachedEquipmentItemCategory category,
Entity entity )
inlineprotected

См. определение в файле CachedEquipmentStorageBase.c строка 144

145 {
146 if (!m_ItemsCacheByCategory.Contains(category))
147 return;
148
149 array<CachedEquipmentItemAttribute> toRemove = new array<CachedEquipmentItemAttribute>();
150 foreach (CachedEquipmentItemAttribute attributeToRemove : m_ItemsCacheByCategory[category])
151 {
152 if (attributeToRemove.m_Entity == entity)
153 toRemove.Insert(attributeToRemove);
154 }
155
156 foreach (CachedEquipmentItemAttribute attribute : toRemove)
157 m_ItemsCacheByCategory[category].RemoveItem(attribute);
158 }
ref map< ECachedEquipmentItemCategory, ref array< ref CachedEquipmentItemAttribute > > m_ItemsCacheByCategory
Определения CachedEquipmentStorageBase.c:53

Перекрестные ссылки m_ItemsCacheByCategory.

Используется в OnItemCargoOut(), OnItemDetached() и ProcessItemInventory().