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

◆ UpdateSocketSelections()

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

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

1609 {
1610 if (!m_ThisEntityAI)
1611 return;
1612
1613 SetDeviceBySocketID(socket_id, device_to_plug);
1614
1615 string plugged_selection = SOCKET_ + (socket_id+1).ToString() + _PLUGGED;
1616 SetPlugOwner( plugged_selection, device_to_plug );
1617 m_ThisEntityAI.ShowSelection ( plugged_selection );
1618
1619 string unplugged_selection = SOCKET_ + (socket_id+1).ToString() + _AVAILABLE;
1620 m_ThisEntityAI.HideSelection ( unplugged_selection );
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 }
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:1683
void SetDeviceBySocketID(int id, EntityAI plugged_device)
Energy manager: Stores the device which is plugged into the given socket ID.
Определения ComponentEnergyManager.c:681

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

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