Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_DaytimeCondition.c
Go to the documentation of this file.
3 {
4  [Attribute(defvalue: SCR_Enum.GetDefault(SCR_ComparerOperator.GREATER_THAN_OR_EQUAL), UIWidgets.ComboBox, "Cond operator", "", ParamEnumArray.FromEnum(SCR_ComparerOperator) )]
5  private SCR_ComparerOperator m_eOperator;
6 
7  [Attribute(defvalue: SCR_Enum.GetDefault(EDayTimeEnums.DAYTIME_DUSK), uiwidget: UIWidgets.ComboBox, enums: ParamEnumArray.FromEnum(EDayTimeEnums))]
8  EDayTimeEnums m_TimeOfDay;
9 
10  //------------------------------------------------------------------------------------------------
13  override bool IsAvailable(SCR_AvailableActionsConditionData data)
14  {
15  if (!data)
16  return false;
17 
18  ChimeraWorld world = GetGame().GetWorld();
19  TimeAndWeatherManagerEntity timeManager = world.GetTimeAndWeatherManager();
20  if (!timeManager)
21  return false;
22 
23  SCR_UIInfo uiInfo;
24  EDayTimeEnums currentTimeOfDay = timeManager.GetCurrentDayTimeUIInfoAndPhase(uiInfo);
25 
26  bool result = SCR_Comparer<int>.Compare(m_eOperator, (int)currentTimeOfDay, (int)m_TimeOfDay);
27  return GetReturnResult(result);
28  }
29 };
ChimeraWorld
Definition: ChimeraWorld.c:12
SCR_Enum
Definition: SCR_Enum.c:1
SCR_AvailableActionsConditionData
Definition: SCR_AvailableActionsConditionData.c:5
GetGame
ArmaReforgerScripted GetGame()
Definition: game.c:1424
SCR_AvailableActionCondition
A single available action condition representation.
Definition: SCR_AvailableActionsCondition.c:3
SCR_ComparerOperator
SCR_ComparerOperator
Definition: SCR_Comparer.c:2
Attribute
typedef Attribute
Post-process effect of scripted camera.
SCR_UIInfo
Definition: SCR_UIInfo.c:7
data
Get all prefabs that have the spawner data
Definition: SCR_EntityCatalogManagerComponent.c:305
SCR_DaytimeCondition
Definition: SCR_DaytimeCondition.c:2
BaseContainerProps
SCR_AIGoalReaction_Follow BaseContainerProps
Handles insects that are supposed to be spawned around selected prefabs defined in prefab names array...
Definition: SCR_AIGoalReaction.c:468