Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_TimeAndWeatherHandlerComponent.c File Reference

Go to the source code of this file.

Classes

class  SCR_TimeAndWeatherHandlerComponentClass

Functions

SCR_TimeAndWeatherHandlerComponentClass SCR_BaseGameModeComponentClass Attribute ("8", UIWidgets.Slider, "Starting time of day (hours)", "0 23 1", category:"Time")] protected int m_iStartingHours
void SetupWind (float windSpeed, float windDirection)
void SetupFog (float fogAmount, float fogHeightDensity)
void SetupDate (int day, int month, int year)
void SetupDaytimeAndWeather (int hours, int minutes, int seconds=0, string loadedWeatherState="", bool loadDone=false)
void HandleDaytimeAcceleration (bool setup=false)
override void OnWorldPostProcess (World world)
override void OnPostInit (IEntity owner)
 Editable Mine.

Variables

int m_iStartingMinutes
bool m_bRandomStartingDaytime
bool m_bRandomStartingDaytimeRange
int m_iRangeHoursStart
int m_iRangeMinutesStart
int m_iRangeHoursEnd
int m_iRangeMinutesEnd
float m_fDayTimeAcceleration
float m_fNightTimeAcceleration
bool m_bRandomStartingWeather
bool m_bUsePredefineStartingTimeAndWeather
ref array< ref SCR_TimeAndWeatherStatem_aStartingWeatherAndTime
bool m_bRandomWeatherChanges
bool m_bAllowHeaderSettings
bool m_bWindOverride
float m_fWindSpeed
float m_fWindDirection
bool m_bFogOverride
float m_fFogAmount
float m_fFogHeightDensity
bool m_bDateOverride
int m_iDay
int m_iMonth
int m_iYear
const int DAYTIME_CHECK_PERIOD = 60000
const float DEFAULT_DAYTIME_START = 5.0
const float DEFAULT_DAYTIME_END = 19.0
const int DAY_DURATION = 24 * 60 * 60
bool m_bDaytimeAcceleration = true
bool m_bSavedSettingApplied = false

Function Documentation

◆ Attribute()

SCR_TimeAndWeatherHandlerComponentClass SCR_BaseGameModeComponentClass Attribute ( "8" ,
UIWidgets. Slider,
"Starting time of day (hours)" ,
"0 23 1" ,
category:"Time"  )

◆ HandleDaytimeAcceleration()

void HandleDaytimeAcceleration ( bool setup = false)
protected

Definition at line 258 of file SCR_TimeAndWeatherHandlerComponent.c.

◆ OnWorldPostProcess()

override void OnWorldPostProcess ( World world)
protected

Called once loading of all entities of the world have been finished (still within the loading)

Parameters
[in]worldLoaded world

Definition at line 287 of file SCR_TimeAndWeatherHandlerComponent.c.

◆ SetupDate()

void SetupDate ( int day,
int month,
int year )
protected

Definition at line 130 of file SCR_TimeAndWeatherHandlerComponent.c.

◆ SetupDaytimeAndWeather()

void SetupDaytimeAndWeather ( int hours,
int minutes,
int seconds = 0,
string loadedWeatherState = "",
bool loadDone = false )
protected
Parameters
[in]hours
[in]minutes
[in]seconds
[in]loadedWeatherState
[in]loadDone

Definition at line 150 of file SCR_TimeAndWeatherHandlerComponent.c.

◆ SetupFog()

void SetupFog ( float fogAmount,
float fogHeightDensity )
protected

Definition at line 115 of file SCR_TimeAndWeatherHandlerComponent.c.

◆ SetupWind()

void SetupWind ( float windSpeed,
float windDirection )
protected

Definition at line 100 of file SCR_TimeAndWeatherHandlerComponent.c.

Variable Documentation

◆ DAY_DURATION

const int DAY_DURATION = 24 * 60 * 60
protected

Definition at line 85 of file SCR_TimeAndWeatherHandlerComponent.c.

◆ DAYTIME_CHECK_PERIOD

const int DAYTIME_CHECK_PERIOD = 60000
protected

Definition at line 82 of file SCR_TimeAndWeatherHandlerComponent.c.

◆ DEFAULT_DAYTIME_END

const float DEFAULT_DAYTIME_END = 19.0
protected

Definition at line 84 of file SCR_TimeAndWeatherHandlerComponent.c.

◆ DEFAULT_DAYTIME_START

const float DEFAULT_DAYTIME_START = 5.0
protected

Definition at line 83 of file SCR_TimeAndWeatherHandlerComponent.c.

◆ m_aStartingWeatherAndTime

ref array<ref SCR_TimeAndWeatherState> m_aStartingWeatherAndTime
protected

Definition at line 44 of file SCR_TimeAndWeatherHandlerComponent.c.

◆ m_bAllowHeaderSettings

bool m_bAllowHeaderSettings
protected

Definition at line 50 of file SCR_TimeAndWeatherHandlerComponent.c.

◆ m_bDateOverride

bool m_bDateOverride
protected

Definition at line 71 of file SCR_TimeAndWeatherHandlerComponent.c.

◆ m_bDaytimeAcceleration

bool m_bDaytimeAcceleration = true
protected

Definition at line 87 of file SCR_TimeAndWeatherHandlerComponent.c.

◆ m_bFogOverride

bool m_bFogOverride
protected

Definition at line 62 of file SCR_TimeAndWeatherHandlerComponent.c.

◆ m_bRandomStartingDaytime

bool m_bRandomStartingDaytime
protected

Definition at line 14 of file SCR_TimeAndWeatherHandlerComponent.c.

◆ m_bRandomStartingDaytimeRange

bool m_bRandomStartingDaytimeRange
protected

Definition at line 17 of file SCR_TimeAndWeatherHandlerComponent.c.

◆ m_bRandomStartingWeather

bool m_bRandomStartingWeather
protected

Definition at line 38 of file SCR_TimeAndWeatherHandlerComponent.c.

◆ m_bRandomWeatherChanges

bool m_bRandomWeatherChanges
protected

Definition at line 47 of file SCR_TimeAndWeatherHandlerComponent.c.

◆ m_bSavedSettingApplied

bool m_bSavedSettingApplied = false
protected

Definition at line 88 of file SCR_TimeAndWeatherHandlerComponent.c.

◆ m_bUsePredefineStartingTimeAndWeather

bool m_bUsePredefineStartingTimeAndWeather
protected

Definition at line 41 of file SCR_TimeAndWeatherHandlerComponent.c.

◆ m_bWindOverride

bool m_bWindOverride
protected

Definition at line 53 of file SCR_TimeAndWeatherHandlerComponent.c.

◆ m_fDayTimeAcceleration

float m_fDayTimeAcceleration
protected

Definition at line 32 of file SCR_TimeAndWeatherHandlerComponent.c.

◆ m_fFogAmount

float m_fFogAmount
protected

Definition at line 65 of file SCR_TimeAndWeatherHandlerComponent.c.

◆ m_fFogHeightDensity

float m_fFogHeightDensity
protected

Definition at line 68 of file SCR_TimeAndWeatherHandlerComponent.c.

◆ m_fNightTimeAcceleration

float m_fNightTimeAcceleration
protected

Definition at line 35 of file SCR_TimeAndWeatherHandlerComponent.c.

◆ m_fWindDirection

float m_fWindDirection
protected

Definition at line 59 of file SCR_TimeAndWeatherHandlerComponent.c.

◆ m_fWindSpeed

float m_fWindSpeed
protected

Definition at line 56 of file SCR_TimeAndWeatherHandlerComponent.c.

◆ m_iDay

int m_iDay
protected

Definition at line 74 of file SCR_TimeAndWeatherHandlerComponent.c.

◆ m_iMonth

int m_iMonth
protected

Definition at line 77 of file SCR_TimeAndWeatherHandlerComponent.c.

◆ m_iRangeHoursEnd

int m_iRangeHoursEnd
protected

Definition at line 26 of file SCR_TimeAndWeatherHandlerComponent.c.

◆ m_iRangeHoursStart

int m_iRangeHoursStart
protected

Definition at line 20 of file SCR_TimeAndWeatherHandlerComponent.c.

◆ m_iRangeMinutesEnd

int m_iRangeMinutesEnd
protected

Definition at line 29 of file SCR_TimeAndWeatherHandlerComponent.c.

◆ m_iRangeMinutesStart

int m_iRangeMinutesStart
protected

Definition at line 23 of file SCR_TimeAndWeatherHandlerComponent.c.

◆ m_iStartingMinutes

int m_iStartingMinutes
protected

Definition at line 11 of file SCR_TimeAndWeatherHandlerComponent.c.

◆ m_iYear

int m_iYear
protected

Definition at line 80 of file SCR_TimeAndWeatherHandlerComponent.c.