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

◆ LoadEntries() [2/2]

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

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

216 {
217 int index = 0;
218 ServerBrowserEntry entry;
220
221 if ( !m_Menu || m_Menu.GetServersLoadingTab() != m_TabType )
222 {
223 return;
224 }
225
226 // only load servers if they correspond to current page
227 if (cur_page_index != m_CurrentPageNum)
228 {
229 return;
230 }
231
232 if ( m_PagesCount && page_entries )
233 {
234 foreach ( GetServersResultRow result : page_entries )
235 {
236 if ( PassFilter( result ) )
237 {
238 string ipPort = result.GetIpPort();
239 bool isFavorited = m_Menu.IsFavorited(ipPort);
240
241 entry = GetServerEntryByIndex( index );
242 entry.SetIsOnline(true);
243 entry.FillInfo( result );
244 entry.SetFavorite(isFavorited);
245 entry.UpdateEntry();
246
247 if (isFavorited && m_OnlineFavServers.Find(ipPort) == -1)
248 {
249 m_OnlineFavServers.Insert(ipPort);
250 }
251
252 m_EntryWidgets.Insert(ipPort, entry);
253 m_EntriesSorted[m_SortType].Insert( result );
254
255 index++;
256 }
257
258 if ( !m_Menu || m_Menu.GetServersLoadingTab() != m_TabType )
259 {
260 return;
261 }
262 }
263 }
264
265 LoadExtraEntries(index);
266 m_ServerList.Update();
267 }
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:284
override bool PassFilter(GetServersResultRow result)
Определения ServerBrowserTabConsolePages.c:269

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