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

◆ OnAttachmentRemoved()

void ComponentEnergyManager::OnAttachmentRemoved ( EntityAI elec_device)
inlineprotected

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

1492 {
1493 int attachment_action_type = GetAttachmentAction();
1494
1495 if ( attachment_action_type == PLUG_THIS_INTO_ATTACHMENT )
1496 {
1497 if ( elec_device == GetEnergySource() )
1498 {
1499 UnplugThis();
1500 }
1501 }
1502 else if ( attachment_action_type == PLUG_ATTACHMENTS_INTO_THIS )
1503 {
1504 elec_device.GetCompEM().UnplugThis();
1505 }
1506 }
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:503
EntityAI GetEnergySource()
Energy manager: Returns the energy source this device is plugged into.
Определения ComponentEnergyManager.c:1337
int GetAttachmentAction()
Определения ComponentEnergyManager.c:1159

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