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

◆ LoadEntries() [2/2]

void ServerBrowserTab::LoadEntries ( int cur_page_index,
GetServersResultRowArray page_entries )
inlineprotected

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

224 {
225 int index = 0;
226 ServerBrowserEntry entry;
228
229 if ( !m_Menu || m_Menu.GetServersLoadingTab() != m_TabType )
230 {
231 return;
232 }
233
234 // only load servers if they correspond to current page
235 if (cur_page_index != m_CurrentPageNum)
236 {
237 return;
238 }
239
240 if ( m_PagesCount && page_entries )
241 {
242 foreach ( GetServersResultRow result : page_entries )
243 {
244 if ( PassFilter( result ) )
245 {
246 string ipPort = result.GetIpPort();
247 bool isFavorited = m_Menu.IsFavorited(ipPort);
248
249 entry = GetServerEntryByIndex( index );
250 entry.SetIsOnline(true);
251 entry.FillInfo( result );
252 entry.SetFavorite(isFavorited);
253 entry.UpdateEntry();
254
255 if (isFavorited && m_OnlineFavServers.Find(ipPort) == -1)
256 {
257 m_OnlineFavServers.Insert(ipPort);
258 }
259
260 m_EntryWidgets.Insert(ipPort, entry);
261 m_EntriesSorted[m_SortType].Insert( result );
262
263 index++;
264 }
265
266 if ( !m_Menu || m_Menu.GetServersLoadingTab() != m_TabType )
267 {
268 return;
269 }
270 }
271 }
272
273 LoadExtraEntries(index);
274 m_ServerList.Update();
275 }
void LoadExtraEntries(int index)
ref map< ESortType, ref array< ref GetServersResultRow > > m_EntriesSorted
Определения ServerBrowserTab.c:75
TabType m_TabType
Определения ServerBrowserTab.c:40
ref map< string, ref ServerBrowserEntry > m_EntryWidgets
Определения ServerBrowserTab.c:32
int m_TotalLoadedServers
Определения ServerBrowserTab.c:49
ServerBrowserMenuNew m_Menu
Определения ServerBrowserTab.c:37
ESortType m_SortType
Определения ServerBrowserTab.c:41
SpacerBaseWidget m_ServerList
Определения ServerBrowserTab.c:28
int m_CurrentPageNum
Определения ServerBrowserTab.c:53
ref set< string > m_OnlineFavServers
Определения ServerBrowserTab.c:77
ServerBrowserEntry GetServerEntryByIndex(int index)
Определения ServerBrowserTabConsolePages.c:292
override bool PassFilter(GetServersResultRow result)
Определения ServerBrowserTabConsolePages.c:277

Перекрестные ссылки GetServerEntryByIndex(), ServerBrowserTabConsolePages::LoadExtraEntries(), m_CurrentPageNum, m_EntriesSorted, m_EntryWidgets, m_Menu, m_OnlineFavServers, m_PagesCount, m_ServerList, m_SortType, m_TabType, m_TotalLoadedServers, m_TotalServersCount и ServerBrowserTabConsolePages::PassFilter().