31 proto native
float GetActual();
34 proto native
float GetForecast();
42 proto native
void Set(
float forecast,
float time = 0,
float minDuration = 0 );
45 proto native
float GetNextChange();
47 proto native
void SetNextChange(
float time );
54 proto
void GetLimits( out
float fnMin, out
float fnMax );
67 proto native
void SetLimits(
float fnMin,
float fnMax );
74 proto
void GetForecastChangeLimits( out
float fcMin, out
float fcMax );
88 proto native
void SetForecastChangeLimits(
float fcMin,
float fcMax );
95 proto
void GetForecastTimeLimits( out
float ftMin, out
float ftMax );
106 proto native
void SetForecastTimeLimits(
float ftMin,
float ftMax );
118 bool OnBeforeChange(
float change,
float time )
123 if ( weather.GetMissionWeather() )
129 if ( currentMission )
131 WorldData worldData = currentMission.GetWorldData();
134 return worldData.WeatherOnBeforeChange(
GetType(), GetActual(), change, time );
156 protected bool m_missionWeather;
160 m_missionWeather =
false;
166 proto native
float GetTime();
169 proto native
Overcast GetOvercast();
172 proto native
Fog GetFog();
175 proto native
Rain GetRain();
184 proto native
void SetStorm(
float density,
float threshold,
float timeOut );
187 proto native
void SuppressLightningSimulation(
bool state);
190 proto native
vector GetWind();
192 proto native
void SetWind(
vector wind );
197 proto native
float GetWindSpeed();
203 proto native
void SetWindSpeed(
float speed );
208 proto native
float GetWindMaximumSpeed();
210 proto native
void SetWindMaximumSpeed(
float maxSpeed );
217 proto
void GetWindFunctionParams( out
float fnMin, out
float fnMax, out
float fnSpeed );
224 proto native
void SetWindFunctionParams(
float fnMin,
float fnMax,
float fnSpeed );
242 proto native
void SetRainThresholds(
float tMin,
float tMax,
float tTime );
244 void MissionWeather(
bool use )
246 m_missionWeather = use;
249 bool GetMissionWeather()
251 return m_missionWeather;