Arma Reforger Explorer
1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
|
Data Structures | |
class | BaseTimeAndWeatherManagerEntityClass |
class | LocalWeatherSituation |
Functions | |
BaseTimeAndWeatherManagerEntityClass BaseWeatherManagerEntityClass | GetCurrentWeatherState () |
proto external bool | IsNightHour (float hour24) |
proto external bool | IsDayHour (float hour24) |
proto void | SetTimeEvent (string time, Managed inst, func callback, bool delayed=true, bool singleUse=false) |
proto external float | GetMoonPhase (float timeOfTheDay24) |
proto float | GetMoonPhaseForDate (int year, int month, int day, float timeOfTheDay24, float timezone, float dstOffset) |
proto external bool | SetDate (int year, int month, int day, bool immediateChange=false) |
proto external void | UpdateWeather (float timeSlice) |
proto external bool | SetTimeOfTheDay (float hours24, bool immediateChange=false) |
proto external bool | CheckValidDate (int year, int month, int day) |
proto void | GetCurrentSunMoonDirAndPhase (out vector outSunDir, out vector outMoonDir, out float outMoonPhase01) |
proto external float | GetTimeOfTheDay () |
proto external float | GetEngineTime () |
proto external int | GetYear () |
proto external int | GetMonth () |
proto external int | GetDay () |
proto external int | GetWeekDay () |
proto external int | GetWeekDayForDate (int year, int month, int day) |
proto external float | GetTimeZoneOffset () |
proto external void | SetTimeZoneOffset (float utcTimeZone) |
proto external float | GetDSTOffset () |
proto external bool | SetDSTOffset (float dstOffsetHours) |
proto external bool | IsDSTEnabled () |
proto external bool | SetDSTEnabled (bool enabled) |
proto bool | GetSunriseHour (out float hour24) |
proto bool | GetSunsetHour (out float hour24) |
proto bool | GetSunriseHourForDate (int year, int month, int day, float latitude, float longitude, float timezone, float dstOffset, out float hour24) |
proto bool | GetSunsetHourForDate (int year, int month, int day, float latitude, float longitude, float timezone, float dstOffset, out float hour24) |
proto external bool | TryGetCompleteLocalWeather (LocalWeatherSituation lws, float swayFrequency, vector location) |
proto external bool | SetDayDuration (float realtimeSeconds) |
proto external float | GetDayDuration () |
proto external bool | SetIsDayAutoAdvanced (bool autoAdvanced) |
proto external bool | GetIsDayAutoAdvanced () |
proto external bool | SetCurrentLongitude (float longitude) |
proto external float | GetCurrentLongitude () |
proto external bool | SetCurrentLatitude (float latitude) |
proto external float | GetCurrentLatitude () |
proto external bool | SetHoursMinutesSeconds (int hours, int minutes, int seconds, bool immediateChange=false) |
proto void | GetDate (out int year, out int month, out int day) |
proto void | GetHoursMinutesSeconds (out int hours, out int minutes, out int seconds) |
proto external void | GetWeatherStatesList (out notnull array< ref WeatherState > outStates) |
proto ref WeatherStateTransitionManager | GetTransitionManager () |
proto external bool | SetWindSpeedOverride (bool doOverride, float windSpeed=0) |
proto external float | GetWindSpeed () |
proto external bool | SetWindDirectionOverride (bool doOverride, float windDirection=0) |
proto external float | GetWindDirection () |
proto external bool | IsWindSpeedOverridden () |
proto external bool | IsWindDirectionOverridden () |
proto external bool | SetRainIntensityOverride (bool doOverride, float rainIntensity=0) |
proto external float | GetRainIntensity () |
proto external bool | IsRainIntensityOverridden () |
proto external bool | SetCurrentWetness (float wetness) |
proto external float | GetCurrentWetness () |
proto external bool | SetCurrentWaterAccumulation (float waterAccumulationCracks, float waterAccumulationPuddles) |
proto external float | GetCurrentWaterAccumulationCracks () |
proto external float | GetCurrentWaterAccumulationPuddles () |
proto external void | AddLightning (WeatherLightning lightning) |
proto external void AddLightning | ( | WeatherLightning | lightning | ) |
Checks if date is valid (checks for leap years and correct day of the month)
year | Year |
month | Month (in 1-12 range) |
day | Day (in 1-31 range) |
proto external float GetCurrentLatitude | ( | ) |
Returns current latitude.
proto external float GetCurrentLongitude | ( | ) |
Returns current longitude.
proto void GetCurrentSunMoonDirAndPhase | ( | out vector | outSunDir, |
out vector | outMoonDir, | ||
out float | outMoonPhase01 | ||
) |
Retrieve current sun direction, moon direction and moon phase.
outSunDir | Current sun direction |
outMoonDir | Current moon direction |
outMoonPhase01 | Moon phase (0 = new moon, 1 = full moon) |
proto external float GetCurrentWaterAccumulationCracks | ( | ) |
proto external float GetCurrentWaterAccumulationPuddles | ( | ) |
BaseTimeAndWeatherManagerEntityClass BaseWeatherManagerEntityClass GetCurrentWeatherState | ( | ) |
Manager entity responsible for managing in-game time and weather, providing the script and gamecode with usable in-game API.
proto external float GetCurrentWetness | ( | ) |
Retrieves the current date (year/month/day).
proto external int GetDay | ( | ) |
Returns current in-game day of the month (Range 1-31)
proto external float GetDayDuration | ( | ) |
Retrieves in-game day duration as realtime seconds.
proto external float GetDSTOffset | ( | ) |
Gets DST offset (in hours)
proto external float GetEngineTime | ( | ) |
Retrieves the current engine time (synchronized between clients), this value is not affected by time multiplier nor automatic time advancement attributes.
Retrieves the current time of the day.
proto external bool GetIsDayAutoAdvanced | ( | ) |
Retrieves whether automatic time advancement is enabled or not.
proto external int GetMonth | ( | ) |
Returns current in-game month of the year (Range 1-12)
proto external float GetMoonPhase | ( | float | timeOfTheDay24 | ) |
Gets moon phase for supplied time of the day.
proto float GetMoonPhaseForDate | ( | int | year, |
int | month, | ||
int | day, | ||
float | timeOfTheDay24, | ||
float | timezone, | ||
float | dstOffset | ||
) |
Gets moon phase for supplied date, geo location is not needed but timezone yes in order to calculate UTC correctly.
year | Year. |
month | Month in range <1, 12> |
day | Day in range <1, 31> |
timeOfTheDay24 | Time of the day in 24 hour floating point format. |
timezone | TimeZone Offset in hours ranging <-12, +14> |
dstOffset | DST (daylight savings time) offset, must be 0.0 or positive value. |
proto external float GetRainIntensity | ( | ) |
proto bool GetSunriseHour | ( | out float | hour24 | ) |
Gets sunrise hour in 24 hour format e.g. 12.50 is 12:30 A.M
proto bool GetSunriseHourForDate | ( | int | year, |
int | month, | ||
int | day, | ||
float | latitude, | ||
float | longitude, | ||
float | timezone, | ||
float | dstOffset, | ||
out float | hour24 | ||
) |
Gets sunrise hour in 24 hour format e.g. 12.50 is 12:30 A.M. For specific date, geolocation, timezone and DST.
year | Year. |
month | Month in range <1, 12> |
day | Day in range <1, 31> |
latitude | Latitude in range <-90, 90> where +90 equals north pole, 0 equator and -90.0 south pole |
longitude | Longitude in range <-180.0, 180.0> where 0 equals (almost) greenwich meridian. |
timezone | TimeZone Offset in hours ranging <-12, +14> |
dstOffset | DST (daylight savings time) offset, must be 0.0 or positive value. |
proto bool GetSunsetHour | ( | out float | hour24 | ) |
Gets sunset hour in 24 hour format e.g. 12.50 is 12:30 A.M
proto bool GetSunsetHourForDate | ( | int | year, |
int | month, | ||
int | day, | ||
float | latitude, | ||
float | longitude, | ||
float | timezone, | ||
float | dstOffset, | ||
out float | hour24 | ||
) |
Gets sunset hour in 24 hour format e.g. 12.50 is 12:30 A.M for specific date.
proto external float GetTimeOfTheDay | ( | ) |
Retrieves the current time of the day.
proto external float GetTimeZoneOffset | ( | ) |
Returns time zone offset (in hours)
proto ref WeatherStateTransitionManager GetTransitionManager | ( | ) |
Get weather state transition manager
proto external void GetWeatherStatesList | ( | out notnull array< ref WeatherState > | outStates | ) |
Gets all Weather States.
proto external int GetWeekDay | ( | ) |
Returns current in-game week day in range [0-6], starts at Monday=0.
Returns week day in range [0-6], starts at Monday=0, for the supplied date.
year | Year. |
month | Month in range <1, 12> |
day | Day in range <1, 31> |
proto external float GetWindDirection | ( | ) |
Retrieves in-game wind direction angle in degrees.
proto external float GetWindSpeed | ( | ) |
Retrieves in-game wind speed in meters per second.
proto external int GetYear | ( | ) |
Returns current in-game year
proto external bool IsDayHour | ( | float | hour24 | ) |
proto external bool IsDSTEnabled | ( | ) |
Retrieves whether DST (daylight savings time) is enabled.
proto external bool IsNightHour | ( | float | hour24 | ) |
proto external bool IsRainIntensityOverridden | ( | ) |
proto external bool IsWindDirectionOverridden | ( | ) |
proto external bool IsWindSpeedOverridden | ( | ) |
proto external bool SetCurrentLatitude | ( | float | latitude | ) |
Sets latitude as <-90, +90>. Can only be set by the authority (server, singleplayer...)
proto external bool SetCurrentLongitude | ( | float | longitude | ) |
Sets longitude as <-180, +180>. Can only be set by the authority (server, singleplayer...)
proto external bool SetCurrentWaterAccumulation | ( | float | waterAccumulationCracks, |
float | waterAccumulationPuddles | ||
) |
proto external bool SetCurrentWetness | ( | float | wetness | ) |
Sets the current in-game date (year/month/day). Only issuable by the authority. Automatically broadcast to all clients. You may check date validity prior to this call with CheckValidDate method.
year | Year |
month | Month (in 1-12 range) |
day | Day (in 1-31 range) |
immediateChange | Whether change should be applied immediately, forcing recomputation. This should be true only in case of editor and similar items. |
proto external bool SetDayDuration | ( | float | realtimeSeconds | ) |
Sets in-game day duration as realtime seconds. Only issuable by the authority. Automatically broadcast to all clients.
realtimeSeconds | Seconds in real time one ingame day will take. |
proto external bool SetDSTEnabled | ( | bool | enabled | ) |
Sets whether DST (daylight savings time) is enabled or disabled.
proto external bool SetDSTOffset | ( | float | dstOffsetHours | ) |
Sets DST Offset (in hours). Can only be set by authority.
proto external bool SetHoursMinutesSeconds | ( | int | hours, |
int | minutes, | ||
int | seconds, | ||
bool | immediateChange = false |
||
) |
Sets the current time of the day. Only issuable by the authority. Automatically broadcast to all clients.
hours | Hours <0,24> |
minutes | Minutes <0,60> |
seconds | Seconds <0,60> |
immediateChange | Whether change should be applied immediately, forcing recomputation. This should be true only in case of editor and similar items. |
proto external bool SetIsDayAutoAdvanced | ( | bool | autoAdvanced | ) |
Enables or disabled automatic daytime advancement. Only issuable by the authority. Automatically broadcast to all clients.
autoAdvanced | True to enable, false to disable. |
proto external bool SetRainIntensityOverride | ( | bool | doOverride, |
float | rainIntensity = 0 |
||
) |
Sets current rain intensity override (in range <0.0, 1.0>) Can only be set by the authority (server, singleplayer...)
proto void SetTimeEvent | ( | string | time, |
Managed | inst, | ||
func | callback, | ||
bool | delayed = true , |
||
bool | singleUse = false |
||
) |
proto external bool SetTimeOfTheDay | ( | float | hours24, |
bool | immediateChange = false |
||
) |
Sets the current time of the day. Only issuable by the authority. Automatically broadcast to all clients.
hours | Time fraction in hours <0.0, 24.0> |
immediateChange | Whether change should be applied immediately, forcing recomputation. This should be true only in case of editor and similar items. |
proto external void SetTimeZoneOffset | ( | float | utcTimeZone | ) |
Sets time zone offset (in hours) in range <-12.0, +14.0>
proto external bool SetWindDirectionOverride | ( | bool | doOverride, |
float | windDirection = 0 |
||
) |
Sets in-game wind direction angle in degrees. Only issuable by the authority. Automatically broadcast to all clients.
windDirection | Wind direction angle in degrees <0, 360.0> |
proto external bool SetWindSpeedOverride | ( | bool | doOverride, |
float | windSpeed = 0 |
||
) |
Sets in-game wind speed in meters per second. Only issuable by the authority. Automatically broadcast to all clients.
windSpeed | Wind speed in m/s. |
proto external bool TryGetCompleteLocalWeather | ( | LocalWeatherSituation | lws, |
float | swayFrequency, | ||
vector | location | ||
) |
Returns all information about current weather - rain, fog, overcast, wind. If swayFrequency and location are set, sway is calculated as well (works as with trees and grass). Mind that wetness and water accumulation effects are WIP and they will not be set yet. You can use ref LocalWeatherSituation weatherSituation = new LocalWeatherSituation(); to create the object and pass it as an argument.
proto external void UpdateWeather | ( | float | timeSlice | ) |