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

◆ OnItemCargoOut()

override void CachedEquipmentStorage::OnItemCargoOut ( notnull Entity entity)
inlineprivate

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

120 {
121 EntityAI item = EntityAI.Cast(entity);
122 ECachedEquipmentItemCategory category = item.GetCachedEquipmentCategory();
123 if (category != ECachedEquipmentItemCategory.NONE)
124 {
125 #ifdef ENABLE_LOGGING
126 LogMessage(string.Format("parent:%1 entity:%2", item.GetHierarchyParent(), entity), "OnItemCargoOut");
127 #endif
128
129 Remove(category, entity);
130 }
131
132 CachedEquipmentStorageInventoryEntry params = new CachedEquipmentStorageInventoryEntry();
133 params.m_Entity = item;
134 params.m_GameInventory = item.GetInventory();
135 params.m_CallerMethod = "OnItemCargoOut";
136 params.m_OperationMode = ECachedEquipmentOperationMode.REMOVE;
137
138 ProcessItemInventory(params);
139 }
class LogManager EntityAI
ECachedEquipmentItemCategory
Определения ECachedEquipmentItemCategory.c:2
ECachedEquipmentOperationMode
Определения ECachedEquipmentOperationMode.c:2
void ProcessItemInventory(CachedEquipmentStorageInventoryEntry params)
Определения CachedEquipmentStorage.c:143
void Remove(ECachedEquipmentItemCategory category, Entity entity)
Определения CachedEquipmentStorageBase.c:156

Перекрестные ссылки ProcessItemInventory() и CachedEquipmentStorageBase::Remove().