Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_TimeAndWeatherHandlerComponent.c File Reference

Go to the source code of this file.

Data Structures

class  SCR_TimeAndWeatherHandlerComponentClass
 

Functions

SCR_TimeAndWeatherHandlerComponentClass SCR_BaseGameModeComponentClass Attribute ("8", UIWidgets.Slider, "Starting time of day (hours)", "0 23 1")] protected int m_iStartingHours
 
void SetupDaytimeAndWeather (int hours, int minutes, int seconds=0, string loadedWeatherState="", bool loadDone=false)
 
protected void HandleDaytimeAcceleration (bool setup=false)
 
override void OnWorldPostProcess (World world)
 
override void OnPostInit (IEntity owner)
 Called on PostInit when all components are added. More...
 

Variables

protected int m_iStartingMinutes
 
protected bool m_bRandomStartingDaytime
 
protected float m_fDayTimeAcceleration
 
protected float m_fNightTimeAcceleration
 
protected bool m_bRandomStartingWeather
 
protected bool m_bRandomWeatherChanges
 
protected bool m_bAllowHeaderSettings
 
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
 
protected bool m_bDaytimeAcceleration = true
 
protected bool m_bSavedSettingApplied = false
 

Function Documentation

◆ Attribute()

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

◆ HandleDaytimeAcceleration()

protected void HandleDaytimeAcceleration ( bool  setup = false)

Definition at line 137 of file SCR_TimeAndWeatherHandlerComponent.c.

◆ OnWorldPostProcess()

override void OnWorldPostProcess ( World  world)

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

Parameters
[in]worldLoaded world

Definition at line 166 of file SCR_TimeAndWeatherHandlerComponent.c.

◆ SetupDaytimeAndWeather()

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

Definition at line 54 of file SCR_TimeAndWeatherHandlerComponent.c.

Variable Documentation

◆ DAY_DURATION

const int DAY_DURATION = 24 * 60 * 60

Definition at line 34 of file SCR_TimeAndWeatherHandlerComponent.c.

◆ DAYTIME_CHECK_PERIOD

const int DAYTIME_CHECK_PERIOD = 60000

Definition at line 31 of file SCR_TimeAndWeatherHandlerComponent.c.

◆ DEFAULT_DAYTIME_END

const float DEFAULT_DAYTIME_END = 19.0

Definition at line 33 of file SCR_TimeAndWeatherHandlerComponent.c.

◆ DEFAULT_DAYTIME_START

const float DEFAULT_DAYTIME_START = 5.0

Definition at line 32 of file SCR_TimeAndWeatherHandlerComponent.c.

◆ m_bAllowHeaderSettings

protected bool m_bAllowHeaderSettings

Definition at line 29 of file SCR_TimeAndWeatherHandlerComponent.c.

◆ m_bDaytimeAcceleration

protected bool m_bDaytimeAcceleration = true

Definition at line 36 of file SCR_TimeAndWeatherHandlerComponent.c.

◆ m_bRandomStartingDaytime

protected bool m_bRandomStartingDaytime

Definition at line 14 of file SCR_TimeAndWeatherHandlerComponent.c.

◆ m_bRandomStartingWeather

protected bool m_bRandomStartingWeather

Definition at line 23 of file SCR_TimeAndWeatherHandlerComponent.c.

◆ m_bRandomWeatherChanges

protected bool m_bRandomWeatherChanges

Definition at line 26 of file SCR_TimeAndWeatherHandlerComponent.c.

◆ m_bSavedSettingApplied

protected bool m_bSavedSettingApplied = false

Definition at line 37 of file SCR_TimeAndWeatherHandlerComponent.c.

◆ m_fDayTimeAcceleration

protected float m_fDayTimeAcceleration

Definition at line 17 of file SCR_TimeAndWeatherHandlerComponent.c.

◆ m_fNightTimeAcceleration

protected float m_fNightTimeAcceleration

Definition at line 20 of file SCR_TimeAndWeatherHandlerComponent.c.

◆ m_iStartingMinutes

protected int m_iStartingMinutes

Definition at line 11 of file SCR_TimeAndWeatherHandlerComponent.c.