DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ GetMatchingSurfacePos()

vector SpookyEventBase::GetMatchingSurfacePos ( TStringArray surfaces,
TStringVectorMap gatheredSurfaces )
inlineprotected

См. определение в файле SpookyAreaMisc.c строка 104

105 {
106 for (int i = 0; i < gatheredSurfaces.Count(); i++)
107 {
108 string currSurface = gatheredSurfaces.GetKey(i);
109 foreach (string s:surfaces)
110 {
111 if (currSurface.Contains(s))
112 return gatheredSurfaces.Get(currSurface);
113 }
114 }
115
116 return vector.Zero;
117 }
bool Contains(string sample)
Returns true if sample is substring of string.
Определения EnString.c:286

Перекрестные ссылки string::Contains() и vector::Zero.

Используется в CanPerform().