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

◆ OnWork()

override void Chemlight_ColorBase::OnWork ( float consumed_energy)
inlineprivate

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

142 {
143 if (!m_Light)
144 CreateLight();
145
146 // Handle fade out of chemlight
147 if (m_Light)
148 {
149 float efficiency = GetEfficiency0To1();
150
151 if ( efficiency < 1 )
152 {
153 m_Light.SetIntensity( efficiency, GetCompEM().GetUpdateInterval() );
154 }
155 }
156 }
void CreateLight()
Определения ChemLight.c:66
ChemlightLight m_Light
Определения ChemLight.c:6
float GetEfficiency0To1()
Returns efficiency. The value is synchronized from server to all clients and is accurate down to 0....
Определения ChemLight.c:12

Перекрестные ссылки CreateLight(), GetEfficiency0To1() и m_Light.