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

◆ PlugThisInto()

bool ComponentEnergyManager::PlugThisInto ( EntityAI energy_source,
int socket_id = -1 )
inlineprotected

Energy manager: Attempts to plug this device into the energy_source. Returns true if the action was successfull, or false if not (due to plug incompatibility or no free socket on the receiver). The ID of the power socket is chosen automatically unless optional parameter socket_id is used (starting from 0). If the given ID is not free then a free socket is found.

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

736 {
737 return energy_source.GetCompEM().PlugInDevice(m_ThisEntityAI, socket_id);
738 }
EntityAI m_ThisEntityAI
Определения Component.c:24

Перекрестные ссылки Component::m_ThisEntityAI.

Используется в OnAttachmentAdded().