1683 {
1685 {
1686 device_to_plug.IncreaseLifetime();
1688 if (device_to_plug.GetCompEM().IsPlugged())
1689 device_to_plug.GetCompEM().UnplugThis();
1690
1693
1696
1699
1701 {
1704 }
1705
1706 return true;
1707 }
1708
1709 return false;
1710 }
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.