Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_DaytimeCondition.c
Go to the documentation of this file.
3{
4 [Attribute(defvalue: SCR_ComparerOperator.GREATER_THAN_OR_EQUAL.ToString(), desc: "Condition operator", uiwidget: UIWidgets.ComboBox, enumType: SCR_ComparerOperator)]
5 private SCR_ComparerOperator m_eOperator;
6
7 [Attribute(defvalue: EDayTimeEnums.DAYTIME_DUSK.ToString(), desc: "Time Of Day", uiwidget: UIWidgets.ComboBox, enumType: EDayTimeEnums)]
8 protected EDayTimeEnums m_TimeOfDay;
9
10 //------------------------------------------------------------------------------------------------
14 {
15 ChimeraWorld world = GetGame().GetWorld();
16 TimeAndWeatherManagerEntity timeManager = world.GetTimeAndWeatherManager();
17 if (!timeManager)
18 return false;
19
20 SCR_UIInfo uiInfo;
21 return GetReturnResult(SCR_Comparer<int>.Compare(m_eOperator, timeManager.GetCurrentDayTimeUIInfoAndPhase(uiInfo), m_TimeOfDay));
22 }
23}
ArmaReforgerScripted GetGame()
Definition game.c:1398
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
SCR_ComparerOperator
Definition SCR_Comparer.c:3
Get all prefabs that have the spawner data
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
SCR_VONRadialDisplay Compare
A single available action condition representation.
override bool IsAvailable(notnull SCR_AvailableActionsConditionData data)
EDayTimeEnums GetCurrentDayTimeUIInfoAndPhase(out SCR_UIInfo uiInfo)
SCR_FieldOfViewSettings Attribute