2203 {
2204 if (item.CanHaveTemperature())
2205 {
2206 float fireplaceTemp = GetTemperature();
2207 float itemTemp = item.GetTemperature();
2208 float heatPermCoef = item.GetHeatPermeabilityCoef();
2209 float tempCoef;
2210 float deltaTime;
2211
2213 {
2216 }
2218 {
2221 }
2222 else
2223 {
2224 return;
2225 }
2226
2227 item.SetTemperatureEx(
new TemperatureDataInterpolated(fireplaceTemp,
ETemperatureAccessTypes.ACCESS_FIREPLACE,deltaTime,tempCoef,heatPermCoef));
2228 }
2229 }
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