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)
557 {
559 return;
560
561
563
564 for (int i = 0; i < slots_c; ++i)
565 {
567
568 if (plug_owner)
569 {
574 string texture_path = plug_owner.GetCompEM().GetCordTextureFile();
575 int selection_index =
m_ThisEntityAI.GetHiddenSelectionIndex(plugged_selection);
577 }
578 else
579 {
582 }
583 }
584
585
587 {
590 }
591 else
592 {
595 }
596 }
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.