2210 {
2211 if (item.CanHaveTemperature())
2212 {
2214 float itemTemp = item.GetTemperature();
2215 float heatPermCoef = item.GetHeatPermeabilityCoef();
2216 float tempCoef;
2217 float deltaTime;
2218
2220 {
2223 }
2225 {
2228 }
2229 else
2230 {
2231 return;
2232 }
2233
2234 item.SetTemperatureEx(
new TemperatureDataInterpolated(fireplaceTemp,
ETemperatureAccessTypes.ACCESS_FIREPLACE,deltaTime,tempCoef,heatPermCoef));
2235 }
2236 }
const int TIMER_HEATING_UPDATE_INTERVAL
timer constants
const int TIMER_COOLING_UPDATE_INTERVAL
update interval duration of heating process (seconds)
ref Timer m_HeatingTimer
value for calculating of wetness that fireplace gain when raining
const float TEMP_COEF_FIREPLACE_COOLING
const float TEMP_COEF_FIREPLACE_HEATING