54 {
56 {
57 return;
58 }
59
60
63
64
65
68 foreach (string ipPort : favIds)
69 {
71 {
72 offlineFavIds.Insert(ipPort);
73 }
74 }
75
76
79 for (int i = startingIndex; i < offlineFavIds.Count(); ++i)
80 {
81 string favServerId = offlineFavIds[i];
82
83
85 {
86 break;
87 }
88
90 {
91 continue;
92 }
93
94 array<string> parts = new array<string>;
95 favServerId.
Split(
":", parts);
96
97
98 if (parts.Count() != 2)
99 {
100 continue;
101 }
102
103 GetServersResultRow offlineRow = new GetServersResultRow();
104 offlineRow.
m_Name = favServerId;
105 offlineRow.
m_Id = favServerId;
110
111 ServerBrowserEntry entry = GetServerEntryByIndex( index );
112 entry.SetIsOnline(false);
113 entry.FillInfo(offlineRow);
114 entry.UpdateEntry();
115
118
119 index++;
120 }
121 }
ref map< ESortType, ref array< ref GetServersResultRow > > m_EntriesSorted
ref map< string, ref ServerBrowserEntry > m_EntryWidgets
ServerBrowserMenuNew m_Menu
ref set< string > m_OnlineFavServers
array< string > TStringArray
void Split(string sample, out array< string > output)
Splits string into array of strings separated by 'sample'.