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

◆ ProcessItemInventory()

void ProcessItemInventory ( CachedEquipmentStorageInventoryEntry params)
protected

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

142 {
143 CachedItemAttributesPerCategory attachmentAttributesPerCategory = ProcessAttachments(params);
144 foreach (ECachedEquipmentItemCategory attachmentCategory, array<ref CachedEquipmentItemAttribute> attachmentAttributes : attachmentAttributesPerCategory)
145 {
146 foreach (CachedEquipmentItemAttribute attachmentAttribute : attachmentAttributes)
147 {
148 if (params.m_OperationMode == ECachedEquipmentOperationMode.INSERT)
149 Insert(attachmentCategory, attachmentAttribute);
150 else
151 Remove(attachmentCategory, attachmentAttribute.m_Entity);
152 }
153 }
154
155 CachedItemAttributesPerCategory cargoAttributesPerCategory = ProcessCargo(params);
156 foreach (ECachedEquipmentItemCategory cargoCategory, array<ref CachedEquipmentItemAttribute> cargoAttributes : cargoAttributesPerCategory)
157 {
158 foreach (CachedEquipmentItemAttribute cargoAttribute : cargoAttributes)
159 {
160 if (params.m_OperationMode == ECachedEquipmentOperationMode.INSERT)
161 Insert(cargoCategory, cargoAttribute);
162 else
163 Remove(cargoCategory, cargoAttribute.m_Entity);
164 }
165 }
166 }
void Remove(Object object)
Определения ActionTargets.c:207
map< ECachedEquipmentItemCategory, ref array< ref CachedEquipmentItemAttribute > > ProcessCargo(CachedEquipmentStorageInventoryEntry params)
Processes cargo of item given through params.
Определения CachedEquipmentStorage.c:219
map< ECachedEquipmentItemCategory, ref array< ref CachedEquipmentItemAttribute > > ProcessAttachments(CachedEquipmentStorageInventoryEntry params)
Processes attachments of item given through params.
Определения CachedEquipmentStorage.c:174
ECachedEquipmentItemCategory
Определения ECachedEquipmentItemCategory.c:2
ECachedEquipmentOperationMode
Определения ECachedEquipmentOperationMode.c:2
Result for an object found in CGame.IsBoxCollidingGeometryProxy.

Перекрестные ссылки CachedEquipmentStorageBase::Insert(), ProcessAttachments(), ProcessCargo() и CachedEquipmentStorageBase::Remove().

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