1588 {
1590 {
1592 int plugged_devices_c = plugged_devices.Count();
1593
1594 for ( int i = 0; i < plugged_devices_c; ++i )
1595 {
1596 EntityAI device = plugged_devices.Get(i);
1597 if ( device != original_caller )
1598 {
1599 device.GetCompEM().UpdateCanWork();
1600 device.GetCompEM().DeviceUpdate();
1601 device.GetCompEM().StartUpdates();
1602 device.GetCompEM().WakeUpWholeBranch( original_caller );
1603 }
1604 }
1605 }
1606 }
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)