1581 {
1582 if (socket_id >= 0)
1583 {
1585
1586 if (!plug_owner_by_socket)
1587 {
1589 return;
1590 }
1591 }
1592
1594
1595 for ( int i = 0; i < slots_c; ++i )
1596 {
1598
1599 if ( !plug_owner )
1600 {
1602 break;
1603 }
1604 }
1605 }
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.