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

◆ OnAttachmentAdded()

void ComponentEnergyManager::OnAttachmentAdded ( EntityAI elec_device)
inlineprotected

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

1417 {
1418 int attachment_action_type = GetAttachmentAction();
1419
1420 if ( attachment_action_type == PLUG_THIS_INTO_ATTACHMENT )
1421 {
1422 if ( elec_device.GetCompEM().CanReceivePlugFrom( m_ThisEntityAI ) )
1423 {
1424 PlugThisInto(elec_device);
1425 }
1426 }
1427 else if ( attachment_action_type == PLUG_ATTACHMENTS_INTO_THIS )
1428 {
1429 elec_device.GetCompEM().PlugThisInto(m_ThisEntityAI);
1430 }
1431 }
const int PLUG_ATTACHMENTS_INTO_THIS
Определения _constants.c:36
const int PLUG_THIS_INTO_ATTACHMENT
Определения _constants.c:35
EntityAI m_ThisEntityAI
Определения Component.c:24
int GetAttachmentAction()
Определения ComponentEnergyManager.c:1114
bool PlugThisInto(EntityAI energy_source, int socket_id=-1)
Energy manager: Attempts to plug this device into the energy_source. Returns true if the action was s...
Определения ComponentEnergyManager.c:735

Перекрестные ссылки GetAttachmentAction(), Component::m_ThisEntityAI, PLUG_ATTACHMENTS_INTO_THIS, PLUG_THIS_INTO_ATTACHMENT и PlugThisInto().