1639 {
1641 return;
1642
1644
1648
1651 string texture_path = device_to_plug.GetCompEM().GetCordTextureFile();
1652 int selection_index =
m_ThisEntityAI.GetHiddenSelectionIndex( plugged_selection );
1653 m_ThisEntityAI.SetObjectTexture( selection_index, texture_path );
1654 device_to_plug.GetCompEM().SetMySocketID(socket_id);
1655 }
static const string SOCKET_
static const string _AVAILABLE
static const string _PLUGGED
void SetPlugOwner(string selection_name, EntityAI device)
void SetDeviceBySocketID(int id, EntityAI plugged_device)
Energy manager: Stores the device which is plugged into the given socket ID.