Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
BaseTimeAndWeatherManagerEntity.c
Go to the documentation of this file.
1 /*
2 ===========================================
3 Do not modify, this script is generated
4 ===========================================
5 */
6 
12 class BaseTimeAndWeatherManagerEntityClass: BaseWeatherManagerEntityClass
13 {
14 }
15 
20 class BaseTimeAndWeatherManagerEntity: BaseWeatherManagerEntity
21 {
22  proto external ref WeatherState GetCurrentWeatherState();
23 
24  //Returns true if the hour is inside the nighttime.
25  proto external bool IsNightHour(float hour24);
26  //Returns true if the hour is inside the daytime.
27  proto external bool IsDayHour(float hour24);
28  // Defines a callback that should be invoked at the specified time (format should be "HHMMSS" and TimeAndWeatherManager periodicity should be set accordingly)
29  proto void SetTimeEvent(string time, Managed inst, func callback, bool delayed = true, bool singleUse = false);
34  proto external float GetMoonPhase(float timeOfTheDay24);
47  proto float GetMoonPhaseForDate(int year, int month, int day, float timeOfTheDay24, float timezone, float dstOffset);
60  proto external bool SetDate(int year, int month, int day, bool immediateChange = false);
61  proto external void UpdateWeather(float timeSlice);
83  proto external bool SetTimeOfTheDay(float hours24, bool immediateChange = false);
92  proto external bool CheckValidDate(int year, int month, int day);
100  proto void GetCurrentSunMoonDirAndPhase(out vector outSunDir, out vector outMoonDir, out float outMoonPhase01);
113  proto external float GetTimeOfTheDay();
118  proto external float GetEngineTime();
122  proto external int GetYear();
126  proto external int GetMonth();
130  proto external int GetDay();
135  proto external int GetWeekDay();
144  proto external int GetWeekDayForDate(int year, int month, int day);
148  proto external float GetTimeZoneOffset();
153  proto external void SetTimeZoneOffset(float utcTimeZone);
157  proto external float GetDSTOffset();
162  proto external bool SetDSTOffset(float dstOffsetHours);
166  proto external bool IsDSTEnabled();
170  proto external bool SetDSTEnabled(bool enabled);
175  proto bool GetSunriseHour(out float hour24);
180  proto bool GetSunsetHour(out float hour24);
195  proto bool GetSunriseHourForDate(int year, int month, int day, float latitude, float longitude, float timezone, float dstOffset, out float hour24);
200  proto bool GetSunsetHourForDate(int year, int month, int day, float latitude, float longitude, float timezone, float dstOffset, out float hour24);
209  proto external bool TryGetCompleteLocalWeather(LocalWeatherSituation lws, float swayFrequency, vector location);
217  proto external bool SetDayDuration(float realtimeSeconds);
222  proto external float GetDayDuration();
230  proto external bool SetIsDayAutoAdvanced(bool autoAdvanced);
235  proto external bool GetIsDayAutoAdvanced();
241  proto external bool SetCurrentLongitude(float longitude);
245  proto external float GetCurrentLongitude();
251  proto external bool SetCurrentLatitude(float latitude);
255  proto external float GetCurrentLatitude();
279  proto external bool SetHoursMinutesSeconds(int hours, int minutes, int seconds, bool immediateChange = false);
284  proto void GetDate(out int year, out int month, out int day);
302  proto void GetHoursMinutesSeconds(out int hours, out int minutes, out int seconds);
303  /*
304  Converts in-game time of the day to hours, minutes and seconds.
305  \param hours24 In-game time as a fraction of day <0.0, 24.0>
306  */
307  static proto void TimeToHoursMinutesSeconds(float hours24, out int hours, out int minutes, out int seconds);
311  proto external void GetWeatherStatesList(out notnull array<ref WeatherState> outStates);
317  /*
318  Converts hours, minutes and seconds to in-game time of the day.
319  \return Returns time of the day as a fraction of day <0.0, 24.0>
320  */
321  static proto float HoursMinutesSecondsToTime(int hours, int minutes, int seconds);
329  proto external bool SetWindSpeedOverride(bool doOverride, float windSpeed = 0);
334  proto external float GetWindSpeed();
342  proto external bool SetWindDirectionOverride(bool doOverride, float windDirection = 0);
347  proto external float GetWindDirection();
348  proto external bool IsWindSpeedOverridden();
349  proto external bool IsWindDirectionOverridden();
355  proto external bool SetRainIntensityOverride(bool doOverride, float rainIntensity = 0);
356  proto external float GetRainIntensity();
357  proto external bool IsRainIntensityOverridden();
358  /*
359  Sets current wetness (in <0,1>)
360  Can only be set by the authority (server, singleplayer...)
361  \return Returns true when command is authorized, false otherwise.
362  */
363  proto external bool SetCurrentWetness(float wetness);
364  /*
365  Gets current wetness (in <0,1>)
366  */
367  proto external float GetCurrentWetness();
368  /*
369  Sets current water accumulation(in <0,1>)
370  Can only be set by the authority (server, singleplayer...)
371  \param waterAccumulationCracks water accumulation value in cracks
372  \param waterAccumulationPuddles water accumulation value in puddles
373  \return Returns true when command is authorized, false otherwise.
374  */
375  proto external bool SetCurrentWaterAccumulation(float waterAccumulationCracks, float waterAccumulationPuddles);
376  /*
377  Gets current water accumulation in cracks (in <0,1>)
378  */
379  proto external float GetCurrentWaterAccumulationCracks();
380  /*
381  Gets current water accumulation in puddles (in <0,1>)
382  */
383  proto external float GetCurrentWaterAccumulationPuddles();
384  proto external void AddLightning(WeatherLightning lightning);
385 }
386 
WeatherStateTransitionManager
Definition: WeatherStateTransitionManager.c:7
SetTimeEvent
proto void SetTimeEvent(string time, Managed inst, func callback, bool delayed=true, bool singleUse=false)
SetDSTEnabled
proto external bool SetDSTEnabled(bool enabled)
GetWeekDayForDate
proto external int GetWeekDayForDate(int year, int month, int day)
GetYear
proto external int GetYear()
GetCurrentSunMoonDirAndPhase
proto void GetCurrentSunMoonDirAndPhase(out vector outSunDir, out vector outMoonDir, out float outMoonPhase01)
GetWeatherStatesList
proto external void GetWeatherStatesList(out notnull array< ref WeatherState > outStates)
GetSunsetHourForDate
proto bool GetSunsetHourForDate(int year, int month, int day, float latitude, float longitude, float timezone, float dstOffset, out float hour24)
GetWindSpeed
proto external float GetWindSpeed()
IsRainIntensityOverridden
proto external bool IsRainIntensityOverridden()
SetHoursMinutesSeconds
proto external bool SetHoursMinutesSeconds(int hours, int minutes, int seconds, bool immediateChange=false)
IsNightHour
proto external bool IsNightHour(float hour24)
GetMonth
proto external int GetMonth()
SetIsDayAutoAdvanced
proto external bool SetIsDayAutoAdvanced(bool autoAdvanced)
GetCurrentLatitude
proto external float GetCurrentLatitude()
GetRainIntensity
proto external float GetRainIntensity()
LocalWeatherSituation
Definition: LocalWeatherSituation.c:12
BaseTimeAndWeatherManagerEntityClass
Definition: BaseTimeAndWeatherManagerEntity.c:12
GetSunriseHourForDate
proto bool GetSunriseHourForDate(int year, int month, int day, float latitude, float longitude, float timezone, float dstOffset, out float hour24)
func
func
Definition: SCR_AIThreatSystem.c:5
IsWindSpeedOverridden
proto external bool IsWindSpeedOverridden()
GetMoonPhaseForDate
proto float GetMoonPhaseForDate(int year, int month, int day, float timeOfTheDay24, float timezone, float dstOffset)
IsWindDirectionOverridden
proto external bool IsWindDirectionOverridden()
GetMoonPhase
proto external float GetMoonPhase(float timeOfTheDay24)
SetDSTOffset
proto external bool SetDSTOffset(float dstOffsetHours)
UpdateWeather
proto external void UpdateWeather(float timeSlice)
GetTimeOfTheDay
proto external float GetTimeOfTheDay()
GetSunriseHour
proto bool GetSunriseHour(out float hour24)
CheckValidDate
proto external bool CheckValidDate(int year, int month, int day)
TryGetCompleteLocalWeather
proto external bool TryGetCompleteLocalWeather(LocalWeatherSituation lws, float swayFrequency, vector location)
GetDate
proto void GetDate(out int year, out int month, out int day)
GetCurrentWetness
proto external float GetCurrentWetness()
IsDayHour
proto external bool IsDayHour(float hour24)
SetCurrentWetness
proto external bool SetCurrentWetness(float wetness)
GetWindDirection
proto external float GetWindDirection()
GetCurrentWaterAccumulationPuddles
proto external float GetCurrentWaterAccumulationPuddles()
SetTimeOfTheDay
proto external bool SetTimeOfTheDay(float hours24, bool immediateChange=false)
SetDayDuration
proto external bool SetDayDuration(float realtimeSeconds)
SetCurrentLongitude
proto external bool SetCurrentLongitude(float longitude)
SetDate
proto external bool SetDate(int year, int month, int day, bool immediateChange=false)
GetIsDayAutoAdvanced
proto external bool GetIsDayAutoAdvanced()
IsDSTEnabled
proto external bool IsDSTEnabled()
GetCurrentWaterAccumulationCracks
proto external float GetCurrentWaterAccumulationCracks()
GetEngineTime
proto external float GetEngineTime()
GetTimeZoneOffset
proto external float GetTimeZoneOffset()
GetDSTOffset
proto external float GetDSTOffset()
SetTimeZoneOffset
proto external void SetTimeZoneOffset(float utcTimeZone)
GetCurrentLongitude
proto external float GetCurrentLongitude()
SetWindSpeedOverride
proto external bool SetWindSpeedOverride(bool doOverride, float windSpeed=0)
GetSunsetHour
proto bool GetSunsetHour(out float hour24)
GetDayDuration
proto external float GetDayDuration()
SetCurrentWaterAccumulation
proto external bool SetCurrentWaterAccumulation(float waterAccumulationCracks, float waterAccumulationPuddles)
SetWindDirectionOverride
proto external bool SetWindDirectionOverride(bool doOverride, float windDirection=0)
GetTransitionManager
proto ref WeatherStateTransitionManager GetTransitionManager()
SetCurrentLatitude
proto external bool SetCurrentLatitude(float latitude)
callback
DownloadConfigCallback callback
GetCurrentWeatherState
BaseTimeAndWeatherManagerEntityClass BaseWeatherManagerEntityClass GetCurrentWeatherState()
AddLightning
proto external void AddLightning(WeatherLightning lightning)
SetRainIntensityOverride
proto external bool SetRainIntensityOverride(bool doOverride, float rainIntensity=0)
GetDay
proto external int GetDay()
GetWeekDay
proto external int GetWeekDay()
GetHoursMinutesSeconds
proto void GetHoursMinutesSeconds(out int hours, out int minutes, out int seconds)