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

◆ OnAttachmentRemoved()

void ComponentEnergyManager::OnAttachmentRemoved ( EntityAI elec_device)
inlineprotected

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

1475 {
1476 int attachment_action_type = GetAttachmentAction();
1477
1478 if ( attachment_action_type == PLUG_THIS_INTO_ATTACHMENT )
1479 {
1480 if ( elec_device == GetEnergySource() )
1481 {
1482 UnplugThis();
1483 }
1484 }
1485 else if ( attachment_action_type == PLUG_ATTACHMENTS_INTO_THIS )
1486 {
1487 elec_device.GetCompEM().UnplugThis();
1488 }
1489 }
const int PLUG_ATTACHMENTS_INTO_THIS
const int PLUG_THIS_INTO_ATTACHMENT
void UnplugThis()
Energy manager: Unplugs this device from its power source.
Определения ComponentEnergyManager.c:490
EntityAI GetEnergySource()
Energy manager: Returns the energy source this device is plugged into.
Определения ComponentEnergyManager.c:1324
int GetAttachmentAction()
Определения ComponentEnergyManager.c:1146

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