1528 {
1530 {
1532 int plugged_devices_c = plugged_devices.Count();
1533
1534 for ( int i = 0; i < plugged_devices_c; ++i )
1535 {
1536 EntityAI device = plugged_devices.Get(i);
1537 if ( device != original_caller )
1538 {
1539 device.GetCompEM().UpdateCanWork();
1540 device.GetCompEM().DeviceUpdate();
1541 device.GetCompEM().StartUpdates();
1542 device.GetCompEM().WakeUpWholeBranch( original_caller );
1543 }
1544 }
1545 }
1546 }
array< EntityAI > GetPluggedDevices()
Energy manager: Returns an array of devices which are plugged into this one.
int GetSocketsCount()
Energy manager: Returns the count of power sockets (whenever used or not)