1653 {
1655 {
1656 device_to_plug.IncreaseLifetime();
1658 if (device_to_plug.GetCompEM().IsPlugged())
1659 device_to_plug.GetCompEM().UnplugThis();
1660
1663
1666
1669
1671 {
1674 }
1675
1676 return true;
1677 }
1678
1679 return false;
1680 }
static const string SEL_CORD_FOLDED
void InteractBranch(EntityAI originalCaller, Man player=null, int system=0)
void WakeUpWholeBranch(EntityAI original_caller)
void PlugCordIntoSocket(EntityAI device_to_plug, int socket_id=-1)
array< EntityAI > GetPluggedDevices()
Energy manager: Returns an array of devices which are plugged into this one.
static const string SEL_CORD_PLUGGED
void OnOwnSocketTaken(EntityAI device)
bool CanReceivePlugFrom(EntityAI device_to_plug)
Energy manager: Returns true if this device can receive power plug of the other device.