2228 {
2229 if (item.CanHaveTemperature())
2230 {
2231 float fireplaceTemp = GetTemperature();
2232 float itemTemp = item.GetTemperature();
2233 float heatPermCoef = item.GetHeatPermeabilityCoef();
2234 float tempCoef;
2235 float deltaTime;
2236
2238 {
2241 }
2243 {
2246 }
2247 else
2248 {
2249 return;
2250 }
2251
2252 item.SetTemperatureEx(
new TemperatureDataInterpolated(fireplaceTemp,
ETemperatureAccessTypes.ACCESS_FIREPLACE,deltaTime,tempCoef,heatPermCoef));
2253 }
2254 }
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