Energy manager: Returns an array of devices which are plugged into this one and are turned on.
1339 {
1340 array<EntityAI> return_array = new array<EntityAI>;
1342 for ( int i = 0; i < plugged_devices_c; ++i )
1343 {
1346 {
1347 return_array.Insert(device);
1348 }
1349 }
1350
1351 return return_array;
1352 }
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....