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

◆ OnItemCargoOut()

override void OnItemCargoOut ( notnull Entity entity)

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

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

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