1551 {
1552 if (socket_id >= 0)
1553 {
1555
1556 if (!plug_owner_by_socket)
1557 {
1559 return;
1560 }
1561 }
1562
1564
1565 for ( int i = 0; i < slots_c; ++i )
1566 {
1568
1569 if ( !plug_owner )
1570 {
1572 break;
1573 }
1574 }
1575 }
int GetSocketsCount()
Energy manager: Returns the count of power sockets (whenever used or not)
void UpdateSocketSelections(int socket_id, EntityAI device_to_plug)
EntityAI GetDeviceBySocketID(int id)
Energy manager: Returns the device which is plugged into the given socket ID.