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

◆ LoadEntries() [2/2]

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

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

282 {
283 int index = 0;
284 ServerBrowserEntry entry;
286
287 if ( !m_Menu || m_Menu.GetServersLoadingTab() != m_TabType )
288 {
289 return;
290 }
291
292 // only load servers if they correspond to current page
293 if (cur_page_index != m_CurrentPageNum)
294 {
295 return;
296 }
297
298 if ( m_PagesCount && page_entries )
299 {
300 foreach ( GetServersResultRow result : page_entries )
301 {
302 if ( PassFilter( result ) )
303 {
304 string ipPort = result.GetIpPort();
305 bool isFavorited = m_Menu.IsFavorited(ipPort);
306
307 entry = GetServerEntryByIndex( index );
308 entry.SetIsOnline(true);
309 entry.FillInfo( result );
310 entry.SetFavorite(isFavorited);
311 entry.UpdateEntry();
312
313 if (isFavorited && m_OnlineFavServers.Find(ipPort) == -1)
314 {
315 m_OnlineFavServers.Insert(ipPort);
316 }
317
318 m_EntryWidgets.Insert(ipPort, entry);
319 m_EntriesSorted[m_SortType].Insert( result );
320
321 index++;
322 }
323
324 if ( !m_Menu || m_Menu.GetServersLoadingTab() != m_TabType )
325 {
326 return;
327 }
328 }
329 }
330
331 LoadExtraEntries(index);
332 m_ServerList.Update();
333 }
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:350
override bool PassFilter(GetServersResultRow result)
Определения ServerBrowserTabConsolePages.c:335

Перекрестные ссылки 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().