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

◆ EEItemAttached()

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

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

1128 {
1129 int slotId = InventorySlots.GetSlotIdFromString(slot_name);
1130 PropagateExclusionValueRecursive(item.GetAttachmentExclusionMaskAll(slotId),slotId); //Performed from parent to avoid event order issues on swap
1132
1133 if ( m_ComponentsBank != NULL )
1134 {
1135 for ( int comp_key = 0; comp_key < COMP_TYPE_COUNT; ++comp_key )
1136 {
1137 if ( m_ComponentsBank.IsComponentAlreadyExist(comp_key) )
1138 {
1139 m_ComponentsBank.GetComponent(comp_key).Event_OnItemAttached(item, slot_name);
1140 }
1141 }
1142 }
1143
1144 // Energy Manager
1145 if ( m_EM && item.GetCompEM())
1146 m_EM.OnAttachmentAdded(item);
1147
1148 if ( item.GetInventory().GetCargo() )
1149 m_AttachmentsWithCargo.Insert( item );
1150
1151 if ( item.GetInventory().GetAttachmentSlotsCount() > 0 )
1152 m_AttachmentsWithAttachments.Insert( item );
1153
1154 if ( m_OnItemAttached )
1155 m_OnItemAttached.Invoke( item, slot_name, this );
1156 }
ref array< EntityAI > m_AttachmentsWithCargo
Определения EntityAI.c:119
ref array< EntityAI > m_AttachmentsWithAttachments
Определения EntityAI.c:120
ref ComponentsBank m_ComponentsBank
Определения EntityAI.c:305
ref ScriptInvoker m_OnItemAttached
Определения EntityAI.c:169
ComponentEnergyManager m_EM
Определения EntityAI.c:306
void SetWeightDirty()
Определения EntityAI.c:3512
void PropagateExclusionValueRecursive(set< int > values, int slotId)
Определения EntityAI.c:4411
const int COMP_TYPE_COUNT
Определения Component.c:12

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