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

◆ EEItemDetached()

void Entity::EEItemDetached ( EntityAI item,
string slot_name )
inlineprotected

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

1163 {
1164 int slotId = InventorySlots.GetSlotIdFromString(slot_name);
1165 ClearExclusionValueRecursive(item.GetAttachmentExclusionMaskAll(slotId),slotId); //Performed from parent to avoid event order issues on swap
1167
1168 if ( m_ComponentsBank != NULL )
1169 {
1170 for ( int comp_key = 0; comp_key < COMP_TYPE_COUNT; ++comp_key )
1171 {
1172 if ( m_ComponentsBank.IsComponentAlreadyExist(comp_key) )
1173 {
1174 m_ComponentsBank.GetComponent(comp_key).Event_OnItemDetached(item, slot_name);
1175 }
1176 }
1177 }
1178
1179 // Energy Manager
1180 if (m_EM && item.GetCompEM())
1181 m_EM.OnAttachmentRemoved(item);
1182
1183 if ( m_AttachmentsWithCargo.Find( item ) > -1 )
1184 m_AttachmentsWithCargo.RemoveItem( item );
1185
1186 if ( m_AttachmentsWithAttachments.Find( item ) > -1 )
1187 m_AttachmentsWithAttachments.RemoveItem( item );
1188
1189
1190 if ( m_OnItemDetached )
1191 m_OnItemDetached.Invoke( item, slot_name, this );
1192 }
void ClearExclusionValueRecursive(set< int > values, int slotId)
Определения EntityAI.c:4428
ref array< EntityAI > m_AttachmentsWithCargo
Определения EntityAI.c:119
ref array< EntityAI > m_AttachmentsWithAttachments
Определения EntityAI.c:120
ref ScriptInvoker m_OnItemDetached
Определения EntityAI.c:171
ref ComponentsBank m_ComponentsBank
Определения EntityAI.c:305
ComponentEnergyManager m_EM
Определения EntityAI.c:306
void SetWeightDirty()
Определения EntityAI.c:3512
const int COMP_TYPE_COUNT
Определения Component.c:12

Перекрестные ссылки ClearExclusionValueRecursive(), COMP_TYPE_COUNT, EntityAI(), InventorySlots::GetSlotIdFromString(), m_AttachmentsWithAttachments, m_AttachmentsWithCargo, m_ComponentsBank, m_EM, m_OnItemDetached и SetWeightDirty().