5 protected ref array<ref SCR_BaseGameOverScreenInfo> m_aGameOverScreens;
7 protected ref map<EGameOverTypes, SCR_BaseGameOverScreenInfo> m_mGameOverScreensMap =
new map<EGameOverTypes, SCR_BaseGameOverScreenInfo>;
18 if (!m_mGameOverScreensMap.Find(infoId, gameOverScreenInfo))
30 int GetGameOverInfoArray(notnull out array <SCR_BaseGameOverScreenInfo> gameOverScreens)
33 gameOverScreens.Insert(screen);
35 return gameOverScreens.Count();
47 m_mGameOverScreensMap.Find(infoId, info);
56 int count = m_aGameOverScreens.Count();
58 for(
int i = 0; i <count; i++)
60 id = m_aGameOverScreens[i].GetInfoId();
65 Print(
string.Format(
"'GameEndState.conf' contains a state with an UNKNOWN state id at index '%1'", i.ToString()), LogLevel.ERROR);
69 else if (m_mGameOverScreensMap.Contains(
id))
71 Print(
string.Format(
"'GameEndState.conf' contains duplicate end state id: '%1' at index '%2'",
id, i.ToString()), LogLevel.ERROR);
75 m_mGameOverScreensMap.Insert(
id, m_aGameOverScreens[i]);