4 [
Attribute(
desc:
"When a spawn point is disabled the system will go over each disable reason in order and will return the first valid disable reason")]
5 protected ref array<ref SCR_BaseSpawnPointRequestResultInfo> m_aSpawnPointRequestResultInfos;
8 protected ref SCR_SortedArray<SCR_BaseSpawnPointRequestResultInfo> m_aSortedSpawnPointRequestResultInfos =
new SCR_SortedArray<SCR_BaseSpawnPointRequestResultInfo>();
17 int count = m_aSpawnPointRequestResultInfos.Count();
22 for (
int i = count - 1; i >= 0; i--)
24 foundRequestResult = m_aSpawnPointRequestResultInfos[i];
26 if (!foundRequestResult || !foundRequestResult.m_bEnabled)
28 m_aSpawnPointRequestResultInfos.RemoveOrdered(i);
32 if (!foundRequestResult.GetUIInfo())
34 m_aSpawnPointRequestResultInfos.RemoveOrdered(i);
35 Print(
"'SCR_SpawnPointDisabledReasonConfig' init, entry: '" + i +
"' has no UIInfo assigned and thus is removed.", LogLevel.ERROR);
39 m_aSortedSpawnPointRequestResultInfos.Insert(foundRequestResult.m_iOrder, foundRequestResult);
52 int count = m_aSortedSpawnPointRequestResultInfos.Count();
53 for(
int i = 0; i < count; ++i)
56 if (!requestResultInfo || !requestResultInfo.IsValidRequestResultInfo(requestComponent, response,
data))
60 return requestResultInfo;