1620 {
1622 {
1623 device_to_plug.IncreaseLifetime();
1625 if (device_to_plug.GetCompEM().IsPlugged())
1626 device_to_plug.GetCompEM().UnplugThis();
1627
1630
1633
1636
1638 {
1641 }
1642
1643 return true;
1644 }
1645
1646 return false;
1647 }
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.
proto native CGame GetGame()