1558 {
1560 {
1562 int plugged_devices_c = plugged_devices.Count();
1563
1564 for ( int i = 0; i < plugged_devices_c; ++i )
1565 {
1566 EntityAI device = plugged_devices.Get(i);
1567 if ( device != original_caller )
1568 {
1569 device.GetCompEM().UpdateCanWork();
1570 device.GetCompEM().DeviceUpdate();
1571 device.GetCompEM().StartUpdates();
1572 device.GetCompEM().WakeUpWholeBranch( original_caller );
1573 }
1574 }
1575 }
1576 }
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)