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

◆ Execute()

override void UniversalTemperatureSourceLambdaBaseImpl::Execute ( UniversalTemperatureSourceSettings pSettings,
UniversalTemperatureSourceResult resultValues )
inlineprotected

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

139 {
140 resultValues.m_TemperatureItem = pSettings.m_TemperatureItemCap;
141 resultValues.m_TemperatureHeatcomfort = pSettings.m_TemperatureCap;
142
143 array<Object> nearestObjects = new array<Object>();
144
145 vector pos = pSettings.m_Position;
146 if (pSettings.m_Parent != null)
147 pos = pSettings.m_Parent.GetPosition();
148
149 GetGame().GetObjectsAtPosition(pos, pSettings.m_RangeMax, nearestObjects, null);
150 if (nearestObjects.Count() > 0)
151 {
152 DryItemsInVicinity(pSettings, pos, nearestObjects);
153 WarmAndCoolItemsInVicinity(pSettings, pos, nearestObjects);
154 }
155 }
proto native void GetObjectsAtPosition(vector pos, float radius, out array< Object > objects, out array< CargoBase > proxyCargos)
Returns list of all objects in circle "radius" around position "pos".
override void WarmAndCoolItemsInVicinity(UniversalTemperatureSourceSettings pSettings, vector position, out notnull array< Object > nearestObjects)
override void DryItemsInVicinity(UniversalTemperatureSourceSettings pSettings, vector position, out notnull array< Object > nearestObjects)
vector m_Position
if the stats can be overriden by coefficient/variables from WorldData (currently TemperatureCap only)
Определения UniversalTemperatureSource.c:18
float m_TemperatureCap
used to determine speed of temperature change, and some temperature subsystems
Определения UniversalTemperatureSource.c:6
float m_RangeMax
range where the full temperature is given to receiver
Определения UniversalTemperatureSource.c:8
float m_TemperatureItemCap
how often the Update is ticking
Определения UniversalTemperatureSource.c:4
proto native CGame GetGame()

Перекрестные ссылки DryItemsInVicinity(), GetGame(), CGame::GetObjectsAtPosition(), UniversalTemperatureSourceSettings::m_Parent, UniversalTemperatureSourceSettings::m_Position, UniversalTemperatureSourceSettings::m_RangeMax, UniversalTemperatureSourceSettings::m_TemperatureCap, UniversalTemperatureSourceSettings::m_TemperatureItemCap и WarmAndCoolItemsInVicinity().