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

◆ OnItemCargoIn()

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

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

87 {
88 EntityAI item = EntityAI.Cast(entity);
89 if (!item.GetHierarchyParent())
90 return;
91
92 ECachedEquipmentItemCategory category = item.GetCachedEquipmentCategory();
93 if (category != ECachedEquipmentItemCategory.NONE && !IsStored(entity, category))
94 {
95 CachedEquipmentItemAttribute newItemAttributes = new CachedEquipmentItemAttribute();
96 newItemAttributes.m_Entity = entity;
97 newItemAttributes.m_Parent = item.GetHierarchyParent();
98 newItemAttributes.m_InventoryDepth = item.GetHierarchyLevel();
99 newItemAttributes.m_InventoryPlacement = ECachedEquipmentPlacement.CARGO;
100
101 #ifdef ENABLE_LOGGING
102 LogMessage(string.Format("parent:%1 entity:%2", item.GetHierarchyParent(), entity), "OnItemCargoIn");
103 #endif
104
105 Insert(category, newItemAttributes);
106 }
107
108 CachedEquipmentStorageInventoryEntry params = new CachedEquipmentStorageInventoryEntry();
109 params.m_Entity = item;
110 params.m_GameInventory = item.GetInventory();
111 params.m_CallerMethod = "OnItemCargoIn";
112 params.m_OperationMode = ECachedEquipmentOperationMode.INSERT;
113
114 ProcessItemInventory(params);
115 }
class LogManager EntityAI
ECachedEquipmentItemCategory
Определения ECachedEquipmentItemCategory.c:2
ECachedEquipmentOperationMode
Определения ECachedEquipmentOperationMode.c:2
ECachedEquipmentPlacement
Определения ECachedEquipmentPlacement.c:2
void ProcessItemInventory(CachedEquipmentStorageInventoryEntry params)
Определения CachedEquipmentStorage.c:143
bool IsStored(Entity entity, ECachedEquipmentItemCategory category)
Определения CachedEquipmentStorageBase.c:129
void Insert(ECachedEquipmentItemCategory category, CachedEquipmentItemAttribute attributes)
Определения CachedEquipmentStorageBase.c:145

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