1163 {
1164 int slotId = InventorySlots.GetSlotIdFromString(slot_name);
1167
1169 {
1171 {
1173 {
1174 m_ComponentsBank.GetComponent(comp_key).Event_OnItemDetached(item, slot_name);
1175 }
1176 }
1177 }
1178
1179
1180 if (
m_EM && item.GetCompEM())
1181 m_EM.OnAttachmentRemoved(item);
1182
1185
1188
1189
1192 }
void ClearExclusionValueRecursive(set< int > values, int slotId)
ref array< EntityAI > m_AttachmentsWithCargo
ref array< EntityAI > m_AttachmentsWithAttachments
ref ScriptInvoker m_OnItemDetached
ref ComponentsBank m_ComponentsBank
ComponentEnergyManager m_EM
const int COMP_TYPE_COUNT