Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_ScenarioFrameworkResourceComponentActionBase.c
Go to the documentation of this file.
3{
4 [Attribute(desc: "If set to true, when this action gets activated, it will break the breakpoint in the Script Editor in CanActivate method from which you can step out to the OnActivate method and debug this specific action. This can be also set during runtime via Debug Menu > ScenarioFramework > Action Inspector")]
5 bool m_bDebug;
6
7 protected SCR_ResourceComponent m_ResourceComponent;
9
10 //------------------------------------------------------------------------------------------------
11 void Init(SCR_ResourceComponent resourceComp, EResourceType resourceType)
12 {
13 if (m_bDebug)
14 Print("[SCR_ScenarioFrameworkResourceComponentActionBase.Init] debug line (" + __FILE__ + " L" + __LINE__ + ")", LogLevel.WARNING);
15
16 m_ResourceComponent = resourceComp;
17 m_eResourceType = resourceType;
18
19 OnActivate();
20 }
21
22 //------------------------------------------------------------------------------------------------
24 {
25 if (m_bDebug)
26 Print("[SCR_ScenarioFrameworkResourceComponentActionBase.OnActivate] debug line (" + __FILE__ + " L" + __LINE__ + ")", LogLevel.WARNING);
27 }
28
29 //------------------------------------------------------------------------------------------------
31 array<ref SCR_ScenarioFrameworkActionBase> GetSubActions();
32
33 //------------------------------------------------------------------------------------------------
35 {
36 SCR_ScenarioFrameworkParam<IEntity> entityWrapper = SCR_ScenarioFrameworkParam<IEntity>.Cast(getter.Get());
37 if (!entityWrapper)
38 {
39 Print(string.Format("ScenarioFramework Action: Issue with Getter detected for Action %1.", this), LogLevel.ERROR);
40
41 return null;
42 }
43
44 return entityWrapper.GetValue();
45 }
46}
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
array< ref SCR_ScenarioFrameworkActionBase > GetSubActions()
void Init(SCR_ResourceComponent resourceComp, EResourceType resourceType)
proto void Print(void var, LogLevel level=LogLevel.NORMAL)
Prints content of variable to console/log.
LogLevel
Enum with severity of the logging message.
Definition LogLevel.c:14
SCR_FieldOfViewSettings Attribute