Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_GameOverScreenConfig.c
Go to the documentation of this file.
1 [BaseContainerProps(configRoot: true)]
3 {
4  [Attribute()]
5  protected ref array<ref SCR_BaseGameOverScreenInfo> m_aGameOverScreens;
6 
7  protected ref map<EGameOverTypes, SCR_BaseGameOverScreenInfo> m_mGameOverScreensMap = new map<EGameOverTypes, SCR_BaseGameOverScreenInfo>;
8 
9 
16  bool GetGameOverScreenInfo(EGameOverTypes infoId, out SCR_BaseGameOverScreenInfo gameOverScreenInfo)
17  {
18  if (!m_mGameOverScreensMap.Find(infoId, gameOverScreenInfo))
19  return false;
20  else
21  return true;
22  }
23 
24 
30  int GetGameOverInfoArray(notnull out array <SCR_BaseGameOverScreenInfo> gameOverScreens)
31  {
32  foreach (SCR_BaseGameOverScreenInfo screen: m_aGameOverScreens)
33  gameOverScreens.Insert(screen);
34 
35  return gameOverScreens.Count();
36  }
37 
43  SCR_BaseGameOverScreenInfo GetGameOverInfo(EGameOverTypes infoId)
44  {
45  SCR_BaseGameOverScreenInfo info = null;
46 
47  m_mGameOverScreensMap.Find(infoId, info);
48 
49  return info;
50  }
51 
52  //Init
53  protected void SCR_GameOverScreenConfig()
54  {
55  EGameOverTypes id;
56  int count = m_aGameOverScreens.Count();
57 
58  for(int i = 0; i <count; i++)
59  {
60  id = m_aGameOverScreens[i].GetInfoId();
61 
62  //If empty
63  if (id == EGameOverTypes.UNKNOWN)
64  {
65  Print(string.Format("'GameEndState.conf' contains a state with an UNKNOWN state id at index '%1'", i.ToString()), LogLevel.ERROR);
66  continue;
67  }
68  //If duplicate
69  else if (m_mGameOverScreensMap.Contains(id))
70  {
71  Print(string.Format("'GameEndState.conf' contains duplicate end state id: '%1' at index '%2'", id, i.ToString()), LogLevel.ERROR);
72  continue;
73  }
74 
75  m_mGameOverScreensMap.Insert(id, m_aGameOverScreens[i]);
76 
77  }
78  }
79 };
SCR_BaseGameOverScreenInfo
Definition: SCR_BaseGameOverScreenInfo.c:2
EGameOverTypes
EGameOverTypes
Definition: EGameOverTypes.c:1
Attribute
typedef Attribute
Post-process effect of scripted camera.
SCR_GameOverScreenConfig
Definition: SCR_GameOverScreenConfig.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