1609 {
1611 return;
1612
1614
1618
1621 string texture_path = device_to_plug.GetCompEM().GetCordTextureFile();
1622 int selection_index =
m_ThisEntityAI.GetHiddenSelectionIndex( plugged_selection );
1623 m_ThisEntityAI.SetObjectTexture( selection_index, texture_path );
1624 device_to_plug.GetCompEM().SetMySocketID(socket_id);
1625 }
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.