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

◆ OnAttachmentRemoved()

void ComponentEnergyManager::OnAttachmentRemoved ( EntityAI elec_device)
inlineprotected

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

1435 {
1436 int attachment_action_type = GetAttachmentAction();
1437
1438 if ( attachment_action_type == PLUG_THIS_INTO_ATTACHMENT )
1439 {
1440 if ( elec_device == GetEnergySource() )
1441 {
1442 UnplugThis();
1443 }
1444 }
1445 else if ( attachment_action_type == PLUG_ATTACHMENTS_INTO_THIS )
1446 {
1447 elec_device.GetCompEM().UnplugThis();
1448 }
1449 }
const int PLUG_ATTACHMENTS_INTO_THIS
Определения _constants.c:36
const int PLUG_THIS_INTO_ATTACHMENT
Определения _constants.c:35
void UnplugThis()
Energy manager: Unplugs this device from its power source.
Определения ComponentEnergyManager.c:494
EntityAI GetEnergySource()
Energy manager: Returns the energy source this device is plugged into.
Определения ComponentEnergyManager.c:1292
int GetAttachmentAction()
Определения ComponentEnergyManager.c:1114

Перекрестные ссылки GetAttachmentAction(), GetEnergySource(), PLUG_ATTACHMENTS_INTO_THIS, PLUG_THIS_INTO_ATTACHMENT и UnplugThis().