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

◆ UpdateSocketSelections()

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

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

1579 {
1580 SetDeviceBySocketID(socket_id, device_to_plug);
1581
1582 string plugged_selection = SOCKET_ + (socket_id+1).ToString() + _PLUGGED;
1583 SetPlugOwner( plugged_selection, device_to_plug );
1584 m_ThisEntityAI.ShowSelection ( plugged_selection );
1585
1586 string unplugged_selection = SOCKET_ + (socket_id+1).ToString() + _AVAILABLE;
1587 m_ThisEntityAI.HideSelection ( unplugged_selection );
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 }
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:1650
void SetDeviceBySocketID(int id, EntityAI plugged_device)
Energy manager: Stores the device which is plugged into the given socket ID.
Определения ComponentEnergyManager.c:679

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

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