31 class GetServersResultRow
85 #ifdef PLATFORM_WINDOWS
94 #ifdef PLATFORM_WINDOWS
97 m_Id.Split(
":", parts);
159 string val2 = other.GetValueStr(
ESortType.HOST);
171 int comparisonResult = other.GetValueInt(sortType) - this.
GetValueInt(sortType);
172 if (comparisonResult == 0)
181 return comparisonResult;
197 string m_GameVersion;
201 bool m_UseGameVersion;
204 void SetOfficial(
bool Official )
207 m_UseOfficial =
true;
210 void SetGameVersion(
string GameVersion )
213 m_UseGameVersion =
true;
216 void SetRegionId(
int RegionId )
219 m_UseRegionId =
true;
245 string m_GameVersion;
248 string m_MapNameToRun;
252 bool m_IsPasswordProtected;
259 string m_FavoriteServers;
260 bool m_MouseAndKeyboardEnabled;
261 bool m_WhitelistEnabled;
268 bool m_UseGameVersion;
271 bool m_UseMapNameToRun;
273 bool m_UseMinPlayers;
274 bool m_UseMaxPlayers;
275 bool m_UseIsPasswordProtected;
278 bool m_UseFreeSlotsMin;
279 bool m_UseFreeSlotsMax;
283 bool m_UseMouseAndKeyboardEnabled;
284 bool m_UseWhitelistEnabled;
287 void SetAntiCheatFilter(
bool anti_cheat )
290 m_UseAntiCheat =
true;
293 void SetNameFilter(
string name )
299 void SetGameTypeFilter(
string game_type )
301 m_GameType = game_type;
302 m_UseGameType =
true;
305 void SetModeIdFilter(
int mode_id )
311 void SetGameVersionFilter(
string game_version )
314 m_UseGameVersion =
true;
317 void SetOfficialFilter(
bool official )
320 m_UseOfficial =
true;
323 void SetJoinableFilter(
bool joinable )
325 m_Joinable = joinable;
326 m_UseJoinable =
true;
329 void SetMapNameToRun(
string mapNameToRun )
332 m_UseMapNameToRun =
true;
335 void SetIsModdedFilter(
bool is_modded )
337 m_IsModded = is_modded;
338 m_UseIsModded =
true;
341 void SetMinPlayersFilter(
int min_players )
344 m_UseMinPlayers =
true;
347 void SetMaxPlayersFilter(
int max_players )
350 m_UseMaxPlayers =
true;
353 void SetIsPasswordProtectedFilter(
bool password_protected )
356 m_UseIsPasswordProtected =
true;
359 void SetRegionIdFilter(
int region )
362 m_UseRegionId =
true;
365 void SetPriorityFilter(
int priority )
368 m_UsePriority =
true;
371 void SetFreeSlotsMin(
int freeSlotsMin )
373 m_FreeSlotsMin = freeSlotsMin;
374 m_UseFreeSlotsMin =
true;
377 void SetFreeSlotsMax(
int freeSlotsMax )
379 m_FreeSlotsMax = freeSlotsMax;
380 m_UseFreeSlotsMax =
true;
383 void SetHostIp(
string hostIp )
389 void SetHostPort(
int hostPort )
392 m_UseHostPort =
true;
395 void SetMouseAndKeyboardEnabled(
bool enabledMouseAndKeyboard)
398 m_UseMouseAndKeyboardEnabled =
true;
401 void SetFavorited(
bool show )
408 void SetFriendsPlaying(
bool show )
414 void SetPreviouslyPlayed(
bool show )
420 void SetProperVersionMatch(
bool show )
426 void SetFullServer(
bool show )
432 void SetThirdPerson(
bool show )
438 void SetPublic(
bool show )
444 void SetAcceleratedTime(
bool show )
450 void SetAllowedFilePatching(
bool show )
461 void SetPingFilter(
int pingMaxValue )
463 m_SortBy +=
"M" + pingMaxValue +
";";
466 void SetBattleyeProtection(
bool show)
472 void SetPassworded(
bool show)
478 void AddShow(
bool show )
486 void AddFavourite(
string ip,
int port)
488 m_FavoriteServers += ip +
";" + port +
";";
491 void SetWhitelistEnabled(
bool whitelistEnabled)
494 m_UseWhitelistEnabled =
true;
497 AddShow(whitelistEnabled);
500 void SetIsDLC(
bool isDLC)
531 proto native
void AddServerFavorite(
string ipAddress,
int port,
int steamQueryPort);
532 proto native
void RemoveServerFavorite(
string ipAddress,
int port,
int steamQueryPort);
533 proto native
void GetFavoriteServers(
TStringArray favServers);
544 proto native
EBiosError GetServerModList(
string serverId);
559 OnlineServices.OnLoadServersAsync( result_list, error, response );