Energy manager: Shows/Hides all selections this system works with. Call this if something is wrong with selections (like during Init and Restore event in config)
544 {
546 return;
547
548
550
551 for (int i = 0; i < slots_c; ++i)
552 {
554
555 if (plug_owner)
556 {
561 string texture_path = plug_owner.GetCompEM().GetCordTextureFile();
562 int selection_index =
m_ThisEntityAI.GetHiddenSelectionIndex(plugged_selection);
564 }
565 else
566 {
569 }
570 }
571
572
574 {
577 }
578 else
579 {
582 }
583 }
static const string SEL_CORD_FOLDED
static const string SOCKET_
static const string _AVAILABLE
static const string _PLUGGED
EntityAI GetEnergySource()
Energy manager: Returns the energy source this device is plugged into.
static const string SEL_CORD_PLUGGED
int GetSocketsCount()
Energy manager: Returns the count of power sockets (whenever used or not)
EntityAI GetDeviceBySocketID(int id)
Energy manager: Returns the device which is plugged into the given socket ID.