Energy manager: Returns an array of devices which are plugged into this one and are turned on.
1384 {
1385 array<EntityAI> return_array = new array<EntityAI>;
1387 for ( int i = 0; i < plugged_devices_c; ++i )
1388 {
1391 {
1392 return_array.Insert(device);
1393 }
1394 }
1395
1396 return return_array;
1397 }
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....