Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_TutorialCourse.c
Go to the documentation of this file.
2class SCR_TutorialCourse : Managed
3{
4 [Attribute(category: "Flow")]
5 private ref array<ref SCR_TutorialStageInfo> m_aTutorialStageInfos;
6
7 [Attribute(category: "Flow")]
8 private ref array<ref SCR_TutorialStageInfo> m_aNonLinearStages;
9
10 [Attribute(defvalue: "0", uiwidget: UIWidgets.ComboBox, enums: ParamEnumArray.FromEnum(SCR_ETutorialCourses), category: "Flow")]
12
13 [Attribute(defvalue: "0", uiwidget: UIWidgets.Flags, enums: ParamEnumArray.FromEnum(SCR_ETutorialCourses), category: "Flow")]
15
16 [Attribute(uiwidget: UIWidgets.ResourceNamePicker, "Config with voice over data for tutorial stages and subtitles.", "conf", category: "Flow")]
18
19 [Attribute(defvalue: "1", category: "Task")]
20 protected bool m_bCreateTask;
21
22 [Attribute(category: "Task")]
23 protected string m_sTaskTitle;
24
25 [Attribute(category: "Task")]
26 protected string m_sTaskDescription;
27
28 [Attribute(category: "Task")]
29 protected string m_sTaskIcon;
30
31 [Attribute(category: "Logic")]
33
34 [Attribute(category: "Area restriction")]
36
37 [Attribute(defvalue: "-1", category: "Area restriction")]
38 protected float m_fWarningDistance;
39
40 [Attribute(defvalue: "-1", category: "Area restriction")]
41 protected float m_fCourseBreakDistance;
42
43 [Attribute(category: "Fast Travel")]
44 protected string m_sFastTravelPosition;
45
46 [Attribute(category: "Entities")]
47 private ref array<ref SCR_TutorialCoursePrefabInfo> m_aCourseEntities;
48
51
52 //------------------------------------------------------------------------------------------------
60
61 //------------------------------------------------------------------------------------------------
69
70 //------------------------------------------------------------------------------------------------
75
76 //------------------------------------------------------------------------------------------------
78 {
80 }
81
82 //------------------------------------------------------------------------------------------------
84 {
85 return m_fWarningDistance;
86 }
87
88 //------------------------------------------------------------------------------------------------
90 {
91 return m_bCreateTask;
92 }
93
94 //------------------------------------------------------------------------------------------------
96 {
98 return null;
99
100 return GetGame().GetWorld().FindEntityByName(m_sFastTravelPosition);
101 }
102
103 //------------------------------------------------------------------------------------------------
105 int GetPrefabs(out notnull array<SCR_TutorialCoursePrefabInfo> outArray)
106 {
107 foreach(SCR_TutorialCoursePrefabInfo ent : m_aCourseEntities)
108 {
109 outArray.Insert(ent);
110 }
111
112 return outArray.Count();
113 }
114
115 //------------------------------------------------------------------------------------------------
120
121 //------------------------------------------------------------------------------------------------
123 {
124 if (!m_aTutorialStageInfos)
125 return 0;
126
127 return m_aTutorialStageInfos.Count();
128 }
129
130 //------------------------------------------------------------------------------------------------
132 {
133 return m_sTaskDescription;
134 }
135
136 //------------------------------------------------------------------------------------------------
138 {
139 return m_sTaskTitle;
140 }
141
142 //------------------------------------------------------------------------------------------------
143 string GetTaskIcon()
144 {
145 return m_sTaskIcon;
146 }
147
148 //------------------------------------------------------------------------------------------------
150 {
151 foreach (SCR_TutorialStageInfo stage : m_aTutorialStageInfos)
152 {
153 if (stage.GetStageName() == stageName)
154 return stage;
155 }
156
157 foreach (SCR_TutorialStageInfo stage : m_aNonLinearStages)
158 {
159 if (stage.GetStageName() == stageName)
160 return stage;
161 }
162
163 return null;
164 }
165
166 //------------------------------------------------------------------------------------------------
171
172 //------------------------------------------------------------------------------------------------
173 void OnStart()
174 {
175 if (m_CourseLogic)
176 m_CourseLogic.OnCourseStart();
177
180 }
181
182 //------------------------------------------------------------------------------------------------
183 void OnFinish()
184 {
185 if (m_CourseLogic)
186 m_CourseLogic.OnCourseEnd();
187
190 }
191
192 //------------------------------------------------------------------------------------------------
194 {
195 if (!m_aTutorialStageInfos || !m_aTutorialStageInfos.IsIndexValid(index))
196 return null;
197
198 return m_aTutorialStageInfos[index];
199 }
200
201 //------------------------------------------------------------------------------------------------
207
208 //------------------------------------------------------------------------------------------------
210 void GetStages(out notnull array<ref SCR_TutorialStageInfo> TutorialArlandStages)
211 {
212 foreach(SCR_TutorialStageInfo stage : m_aTutorialStageInfos)
213 {
214 TutorialArlandStages.Insert(stage);
215 }
216 //TutorialArlandStages = m_aTutorialStageInfos;
217 }
218
219 //------------------------------------------------------------------------------------------------
225}
ArmaReforgerScripted GetGame()
Definition game.c:1398
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
SCR_DestructionSynchronizationComponentClass ScriptComponentClass int index
SCR_ETutorialCourses
ScriptInvokerBase< ScriptInvokerIntMethod > ScriptInvokerInt
proto external BaseWorld GetWorld()
Attribute for setting any flags enum property as custom title.
Definition Attributes.c:418
static bool IsEmptyOrWhiteSpace(string input)
void GetStages(out notnull array< ref SCR_TutorialStageInfo > TutorialArlandStages)
ref ScriptInvokerInt s_OnCourseFinished
SCR_ETutorialCourses GetCourseType()
SCR_TutorialStageInfo GetStageByName(string stageName)
SCR_TutorialStageInfo GetStage(int index)
ref ScriptInvokerInt s_OnCourseStarted
SCR_ETutorialCourses m_eCourseType
ResourceName GetVoiceOverDataConfig()
int GetPrefabs(out notnull array< SCR_TutorialCoursePrefabInfo > outArray)
SCR_ETutorialCourses m_eRequiredCourses
SCR_BaseTutorialCourseLogic GetCourseLogic()
ref SCR_BaseTutorialCourseLogic m_CourseLogic
string GetCourseAreaCenterEntityName()
SCR_ETutorialCourses GetRequiredCourses()
ResourceName m_sVoiceOverDataConfig
ScriptInvokerInt GetOnCourseStarted()
ScriptInvokerInt GetOnCourseFinished()
SCR_FieldOfViewSettings Attribute