DayZ 1.29
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ UpdateSocketSelections()

void ComponentEnergyManager::UpdateSocketSelections ( int socket_id,
EntityAI device_to_plug )
inlineprotected

См. определение в файле ComponentEnergyManager.c строка 1638

1639 {
1640 if (!m_ThisEntityAI)
1641 return;
1642
1643 SetDeviceBySocketID(socket_id, device_to_plug);
1644
1645 string plugged_selection = SOCKET_ + (socket_id+1).ToString() + _PLUGGED;
1646 SetPlugOwner( plugged_selection, device_to_plug );
1647 m_ThisEntityAI.ShowSelection ( plugged_selection );
1648
1649 string unplugged_selection = SOCKET_ + (socket_id+1).ToString() + _AVAILABLE;
1650 m_ThisEntityAI.HideSelection ( unplugged_selection );
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 }
proto string ToString()
EntityAI m_ThisEntityAI
Определения Component.c:24
static const string SOCKET_
Определения ComponentEnergyManager.c:62
static const string _AVAILABLE
Определения ComponentEnergyManager.c:64
static const string _PLUGGED
Определения ComponentEnergyManager.c:63
void SetPlugOwner(string selection_name, EntityAI device)
Определения ComponentEnergyManager.c:1713
void SetDeviceBySocketID(int id, EntityAI plugged_device)
Energy manager: Stores the device which is plugged into the given socket ID.
Определения ComponentEnergyManager.c:694

Перекрестные ссылки _AVAILABLE, _PLUGGED, Component::m_ThisEntityAI, SetDeviceBySocketID(), SetPlugOwner(), SOCKET_ и ToString().

Используется в PlugCordIntoSocket().