Energy manager: Returns an array of devices which are plugged into this one and are turned on.
1371 {
1372 array<EntityAI> return_array = new array<EntityAI>;
1374 for ( int i = 0; i < plugged_devices_c; ++i )
1375 {
1378 {
1379 return_array.Insert(device);
1380 }
1381 }
1382
1383 return return_array;
1384 }
int GetPluggedDevicesCount()
Energy manager: Returns the number of devices plugged into this one.
array< EntityAI > GetPluggedDevices()
Energy manager: Returns an array of devices which are plugged into this one.
bool IsSwitchedOn()
Energy manager: Returns state of the switch. Whenever the device is working or not does not matter....