Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_ScenarioSequenceProgress.c
Go to the documentation of this file.
2{
3 [Attribute("0")]
4 int m_iOperationOmega;
5
6 //------------------------------------------------------------------------------------------------
7 static bool IsScenarioLocked(notnull MissionWorkshopItem item)
8 {
9 SCR_MissionHeaderSequence sequenceHeader = SCR_MissionHeaderSequence.Cast(MissionHeader.ReadMissionHeader(item.Id()));
10
11 if (!sequenceHeader)
12 return false;
13
14 BaseContainer progressData = GetGame().GetGameUserSettings().GetModule("SCR_ScenarioSequenceProgress");
15
16 if (!progressData)
17 return false;
18
19 int progress;
20 progressData.Get(sequenceHeader.m_sProgressVariableName, progress);
21
22 return (progress < sequenceHeader.m_iScenarioIndex);
23 }
24
25 //------------------------------------------------------------------------------------------------
26 static bool IsNextScenarioLocked(notnull MissionWorkshopItem item)
27 {
28 SCR_MissionHeaderSequence sequenceHeader = SCR_MissionHeaderSequence.Cast(MissionHeader.ReadMissionHeader(item.Id()));
29
30 if (!sequenceHeader)
31 return false;
32
33 BaseContainer progressData = GetGame().GetGameUserSettings().GetModule("SCR_ScenarioSequenceProgress");
34
35 if (!progressData)
36 return false;
37
38 int progress;
39 progressData.Get(sequenceHeader.m_sProgressVariableName, progress);
40
41 return (progress > sequenceHeader.m_iScenarioIndex);
42 }
43}
ArmaReforgerScripted GetGame()
Definition game.c:1398
By inheriting of this class you define a settings module.
SCR_FieldOfViewSettings Attribute