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

Go to the source code of this file.

Classes

class  TimeAndWeatherManagerEntityClass
class  TimeAndWeatherManagerEntity
class  SCR_DayTimeInfoBase
class  SCR_DayTimeInfoAuto
class  SCR_WindDirectionInfo

Typedefs

typedef func SCR_TimeAndWeatherManager_OnWeatherStatePreview
typedef func SCR_TimeAndWeatherManager_OnWindPreview
typedef func SCR_TimeAndWeatherManager_OnDateTimePreview
typedef func ScriptInvokerOnWindOverrideDataChangedMethod
typedef ScriptInvokerBase< ScriptInvokerOnWindOverrideDataChangedMethodScriptInvokerOnWindOverrideDataChanged
typedef func ScriptInvokerOnWeatherChangedMethod
typedef ScriptInvokerBase< ScriptInvokerOnWeatherChangedMethodScriptInvokerOnWeatherChanged

Enumerations

enum  EMoonPhaseEnums { IGNORE , BEFORE_FULL_MOON , AFTER_FULL_MOON }

Functions

TimeAndWeatherManagerEntityClass BaseTimeAndWeatherManagerEntityClass SCR_TimeAndWeatherManager_OnWeatherStatePreview (bool previewEnabled, string weatherState)
void SCR_TimeAndWeatherManager_OnWindPreview (bool previewEnabled, float windSpeed, float windDirectionDegrees)
void SCR_TimeAndWeatherManager_OnDateTimePreview (bool previewEnabled, int year, int month, int day, float timeOfTheDay)
void ScriptInvokerOnWindOverrideDataChangedMethod (notnull TimeAndWeatherManagerEntity manager, bool currentState, float currentSpeed, float currentDirection)
void ScriptInvokerOnWeatherChangedMethod (notnull TimeAndWeatherManagerEntity manager, int currentStateId, int nextStateId, bool transitioning)
void TimeContainer (int hours=0, int minutes=0, int seconds=0)
float ToTimeOfTheDay ()
class SCR_DayTimeInfoBase BaseContainerProps ()
SCR_UIInfo GetDayTimeUIInfo ()
EDayTimeEnums GetDaytimeEnum ()
float GetDayTime ()
void Clear ()
 Clear the data.
float GetDayTime (notnull array< ref SCR_DayTimeInfoBase > daytimeInfo, TimeAndWeatherManagerEntity timeAndWeatherEntity)
void SetDayTime (notnull array< ref SCR_DayTimeInfoBase > daytimeInfo, TimeAndWeatherManagerEntity timeAndWeatherEntity, int year=-1, int month=-1, int day=-1)
class SCR_DayTimeInfoBase SCR_BaseContainerCustomTitleEnum (EDayTimeEnums, "m_dayTimeEnum")
SCR_UIInfo GetUIInfo ()
int GetWindDirectionValue ()
class SCR_WindDirectionInfo SCR_BaseContainerCustomTitleUIInfo ("m_UIInfo")

Variables

TimeAndWeatherManagerEntity m_iHours
 Simple container holding in-game time data in hours, minutes, seconds format.
int m_iMinutes
 In-game seconds <0, 60>.
int m_iSeconds
EDayTimeEnums m_DayTimeEnum
ref SCR_UIInfo m_UIInfo
float m_fTimeOfDay = -1
int m_iWindDirection
enum EMoonPhaseEnums DAYTIME_DAWN
enum EMoonPhaseEnums DAYTIME_MORNING
enum EMoonPhaseEnums DAYTIME_AFTERNOON
enum EMoonPhaseEnums DAYTIME_DUSK
enum EMoonPhaseEnums DAYTIME_EVENING

Typedef Documentation

◆ SCR_TimeAndWeatherManager_OnDateTimePreview

◆ SCR_TimeAndWeatherManager_OnWeatherStatePreview

◆ SCR_TimeAndWeatherManager_OnWindPreview

◆ ScriptInvokerOnWeatherChanged

◆ ScriptInvokerOnWeatherChangedMethod

◆ ScriptInvokerOnWindOverrideDataChanged

◆ ScriptInvokerOnWindOverrideDataChangedMethod

Enumeration Type Documentation

◆ EMoonPhaseEnums

Enumerator
IGNORE 
BEFORE_FULL_MOON 
AFTER_FULL_MOON 

Definition at line 1260 of file TimeAndWeatherManagerEntity.c.

Function Documentation

◆ BaseContainerProps()

class SCR_DayTimeInfoBase BaseContainerProps ( )

◆ GetDayTime() [1/2]

float BaseContainerProps::GetDayTime ( )
protected

Gets time of day in seconds. This is when the time of day starts

Returns
seconds of starting time of time of day

Definition at line 27 of file TimeAndWeatherManagerEntity.c.

◆ GetDayTime() [2/2]

float BaseContainerProps::GetDayTime ( notnull array< ref SCR_DayTimeInfoBase > daytimeInfo,
TimeAndWeatherManagerEntity timeAndWeatherEntity )
protected

Gets time of day in seconds. This is when the time of day starts. Used when init other times of day

Parameters
daytimeInfoarray of other time of days to get info from
Returns
seconds of starting time of time of day

Definition at line 43 of file TimeAndWeatherManagerEntity.c.

◆ GetDaytimeEnum()

EDayTimeEnums BaseContainerProps::GetDaytimeEnum ( )
protected

Gets time of day enum

Returns
time of day enum

Definition at line 19 of file TimeAndWeatherManagerEntity.c.

◆ GetDayTimeUIInfo()

SCR_UIInfo BaseContainerProps::GetDayTimeUIInfo ( )
protected

Gets time of day UI info

Returns
SCR_UIInfo ui info of time of day

Definition at line 11 of file TimeAndWeatherManagerEntity.c.

◆ GetUIInfo()

SCR_UIInfo BaseContainerProps::GetUIInfo ( )
protected
Returns

Definition at line 8 of file TimeAndWeatherManagerEntity.c.

◆ GetWindDirectionValue()

int BaseContainerProps::GetWindDirectionValue ( )
protected
Returns
wind direction in degrees

Definition at line 15 of file TimeAndWeatherManagerEntity.c.

◆ SCR_BaseContainerCustomTitleEnum()

SCR_DayTimeInfoAuto SCR_DayTimeInfoBase SCR_BaseContainerCustomTitleEnum ( EDayTimeEnums ,
"m_dayTimeEnum"  )

Definition at line 1064 of file TimeAndWeatherManagerEntity.c.

◆ SCR_BaseContainerCustomTitleUIInfo()

class SCR_WindDirectionInfo SCR_BaseContainerCustomTitleUIInfo ( "m_UIInfo" )

Before full moon means first quarter and waxing Crescent/Gibbous\ After full moon meaning it is third Quarter and Waning Crescent/Gibbous\ Ignore means full moon or new moon

Returns
Parameters
moonPhaseAmount
beforeOrAfterFullMoon
Returns
true if the moon phase matches, false otherwise

Definition at line 1219 of file TimeAndWeatherManagerEntity.c.

◆ SCR_TimeAndWeatherManager_OnDateTimePreview()

void SCR_TimeAndWeatherManager_OnDateTimePreview ( bool previewEnabled,
int year,
int month,
int day,
float timeOfTheDay )

◆ SCR_TimeAndWeatherManager_OnWeatherStatePreview()

◆ SCR_TimeAndWeatherManager_OnWindPreview()

void SCR_TimeAndWeatherManager_OnWindPreview ( bool previewEnabled,
float windSpeed,
float windDirectionDegrees )

◆ ScriptInvokerOnWeatherChangedMethod()

void ScriptInvokerOnWeatherChangedMethod ( notnull TimeAndWeatherManagerEntity manager,
int currentStateId,
int nextStateId,
bool transitioning )

◆ ScriptInvokerOnWindOverrideDataChangedMethod()

void ScriptInvokerOnWindOverrideDataChangedMethod ( notnull TimeAndWeatherManagerEntity manager,
bool currentState,
float currentSpeed,
float currentDirection )

◆ SetDayTime()

override void SetDayTime ( notnull array< ref SCR_DayTimeInfoBase > daytimeInfo,
TimeAndWeatherManagerEntity timeAndWeatherEntity,
int year = -1,
int month = -1,
int day = -1 )
protected

Sets the starting time of the time of day in seconds

Parameters
daytimeInfoarray of other time of days to get info from
timeAndWeatherEntity
year
month
day

Definition at line 58 of file TimeAndWeatherManagerEntity.c.

◆ TimeContainer()

void TimeContainer ( int hours = 0,
int minutes = 0,
int seconds = 0 )

Creates new time container from provided params. Actual values can be retrieved via TimeAndWeatherManagerEntity.

Parameters
hoursHours <0,24>
minutesMinutes <0,60>
secondsSeconds <0,60>
hours
minutes
seconds

Definition at line 947 of file TimeAndWeatherManagerEntity.c.

◆ ToTimeOfTheDay()

float ToTimeOfTheDay ( )
Returns

Definition at line 991 of file TimeAndWeatherManagerEntity.c.

Variable Documentation

◆ DAYTIME_AFTERNOON

enum EMoonPhaseEnums DAYTIME_AFTERNOON

◆ DAYTIME_DAWN

enum EMoonPhaseEnums DAYTIME_DAWN

◆ DAYTIME_DUSK

enum EMoonPhaseEnums DAYTIME_DUSK

◆ DAYTIME_EVENING

enum EMoonPhaseEnums DAYTIME_EVENING

◆ DAYTIME_MORNING

enum EMoonPhaseEnums DAYTIME_MORNING

◆ m_DayTimeEnum

EDayTimeEnums m_DayTimeEnum
protected

Definition at line 1 of file TimeAndWeatherManagerEntity.c.

◆ m_fTimeOfDay

float m_fTimeOfDay = -1
protected

Definition at line 6 of file TimeAndWeatherManagerEntity.c.

◆ m_iHours

Simple container holding in-game time data in hours, minutes, seconds format.

< In-game hours <0, 24> In-game minutes <0, 60>

◆ m_iMinutes

int m_iMinutes

In-game seconds <0, 60>.

Definition at line 930 of file TimeAndWeatherManagerEntity.c.

◆ m_iSeconds

int m_iSeconds

Definition at line 932 of file TimeAndWeatherManagerEntity.c.

◆ m_iWindDirection

int m_iWindDirection
protected

Definition at line 4 of file TimeAndWeatherManagerEntity.c.

◆ m_UIInfo

ref SCR_UIInfo m_UIInfo
protected

Definition at line 4 of file TimeAndWeatherManagerEntity.c.