1579 {
1581
1585
1588 string texture_path = device_to_plug.GetCompEM().GetCordTextureFile();
1589 int selection_index =
m_ThisEntityAI.GetHiddenSelectionIndex( plugged_selection );
1590 m_ThisEntityAI.SetObjectTexture( selection_index, texture_path );
1591 device_to_plug.GetCompEM().SetMySocketID(socket_id);
1592 }
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.