14 string qrCodeImageUrl;
68 static void AddMapInfo(
string mapName,
string mapDisplayName)
78 string internalMapName;
88 return internalMapName;
94 string displayMapName;
95 string internalMapName = mapName;
96 internalMapName.ToLower();
100 if (mn == internalMapName)
102 displayMapName = mdp;
107 if (displayMapName ==
"")
109 displayMapName = mapName;
110 string fc = displayMapName[0];
119 displayMapName[0] = fc;
123 return displayMapName;
138 case "chernarusplus":
155 if (!s_ServerBrowserHelperFunctions)
158 return s_ServerBrowserHelperFunctions;
162class GetServerModListResult
174 string m_Description;
179 string m_MapNameToRun;
187 int m_CurrentNumberPlayers;
188 int m_PlayersInQueue;
189 string m_GameVersion;
190 bool m_IsPasswordProtected;
193 bool m_MouseAndKeyboardEnabled;
194 bool m_WhitelistEnabled;
204 string m_CharactersAlive;
206 string m_SteamFriends;
211 int m_Disable3rdPerson;
213 float m_EnvironmentTimeMul;
214 float m_EnvironmentNightTimeMul;
215 bool m_AllowedFilePatching;
217 int m_SteamQueryPort;
223#ifdef PLATFORM_WINDOWS
226 return GetIP() +
":" + m_HostPort;
232#ifdef PLATFORM_WINDOWS
235 m_Id.Split(
":", parts);
259 if (m_MapNameToRun !=
"")
277 return m_CurrentNumberPlayers;
289 return m_PlayersInQueue;
303 string val1 = this.GetValueStr(sortType);
304 string val2 = other.GetValueStr(sortType);
316 int comparisonResult = other.GetValueInt(sortType) - this.GetValueInt(sortType);
317 if (comparisonResult == 0)
322 comparisonResult = this.CompareTo(other,
ESortType.QUEUE);
326 return comparisonResult;
342 string m_GameVersion;
346 bool m_UseGameVersion;
349 void SetOfficial(
bool Official )
351 m_Official = Official;
352 m_UseOfficial =
true;
355 void SetGameVersion(
string GameVersion )
357 m_GameVersion = GameVersion;
358 m_UseGameVersion =
true;
361 void SetRegionId(
int RegionId )
363 m_RegionId = RegionId;
364 m_UseRegionId =
true;
390 string m_GameVersion;
393 string m_MapNameToRun;
397 bool m_IsPasswordProtected;
404 string m_FavoriteServers;
405 bool m_MouseAndKeyboardEnabled;
406 bool m_WhitelistEnabled;
413 bool m_UseGameVersion;
416 bool m_UseMapNameToRun;
418 bool m_UseMinPlayers;
419 bool m_UseMaxPlayers;
420 bool m_UseIsPasswordProtected;
423 bool m_UseFreeSlotsMin;
424 bool m_UseFreeSlotsMax;
428 bool m_UseMouseAndKeyboardEnabled;
429 bool m_UseWhitelistEnabled;
432 void SetAntiCheatFilter(
bool anti_cheat )
434 m_AntiCheat = anti_cheat;
435 m_UseAntiCheat =
true;
438 void SetNameFilter(
string name )
444 void SetGameTypeFilter(
string game_type )
446 m_GameType = game_type;
447 m_UseGameType =
true;
450 void SetModeIdFilter(
int mode_id )
456 void SetGameVersionFilter(
string game_version )
458 m_GameVersion = game_version;
459 m_UseGameVersion =
true;
462 void SetOfficialFilter(
bool official )
464 m_Official = official;
465 m_UseOfficial =
true;
468 void SetJoinableFilter(
bool joinable )
470 m_Joinable = joinable;
471 m_UseJoinable =
true;
474 void SetMapNameToRun(
string mapNameToRun )
476 m_MapNameToRun = mapNameToRun;
477 m_UseMapNameToRun =
true;
480 void SetIsModdedFilter(
bool is_modded )
482 m_IsModded = is_modded;
483 m_UseIsModded =
true;
486 void SetMinPlayersFilter(
int min_players )
488 m_MinPlayers = min_players;
489 m_UseMinPlayers =
true;
492 void SetMaxPlayersFilter(
int max_players )
494 m_MaxPlayers = max_players;
495 m_UseMaxPlayers =
true;
498 void SetIsPasswordProtectedFilter(
bool password_protected )
500 m_IsPasswordProtected = password_protected;
501 m_UseIsPasswordProtected =
true;
504 void SetRegionIdFilter(
int region )
507 m_UseRegionId =
true;
510 void SetPriorityFilter(
int priority )
512 m_Priority = priority;
513 m_UsePriority =
true;
516 void SetFreeSlotsMin(
int freeSlotsMin )
518 m_FreeSlotsMin = freeSlotsMin;
519 m_UseFreeSlotsMin =
true;
522 void SetFreeSlotsMax(
int freeSlotsMax )
524 m_FreeSlotsMax = freeSlotsMax;
525 m_UseFreeSlotsMax =
true;
528 void SetHostIp(
string hostIp )
534 void SetHostPort(
int hostPort )
536 m_HostPort = hostPort;
537 m_UseHostPort =
true;
540 void SetMouseAndKeyboardEnabled(
bool enabledMouseAndKeyboard)
542 m_MouseAndKeyboardEnabled = enabledMouseAndKeyboard;
543 m_UseMouseAndKeyboardEnabled =
true;
546 void SetFavorited(
bool show )
553 void SetFriendsPlaying(
bool show )
559 void SetPreviouslyPlayed(
bool show )
565 void SetProperVersionMatch(
bool show )
571 void SetFullServer(
bool show )
577 void SetThirdPerson(
bool show )
583 void SetPublic(
bool show )
589 void SetAcceleratedTime(
bool show )
595 void SetAllowedFilePatching(
bool show )
606 void SetPingFilter(
int pingMaxValue )
608 m_SortBy +=
"M" + pingMaxValue +
";";
611 void SetBattleyeProtection(
bool show)
617 void SetPassworded(
bool show)
623 void AddShow(
bool show )
631 void AddFavourite(
string ip,
int port)
633 m_FavoriteServers += ip +
";" + port +
";";
636 void SetWhitelistEnabled(
bool whitelistEnabled)
638 m_WhitelistEnabled = whitelistEnabled;
639 m_UseWhitelistEnabled =
true;
642 AddShow(whitelistEnabled);
645 void SetIsDLC(
bool isDLC)
676 proto native
void AddServerFavorite(
string ipAddress,
int port,
int steamQueryPort);
677 proto native
void RemoveServerFavorite(
string ipAddress,
int port,
int steamQueryPort);
678 proto native
void GetFavoriteServers(
TStringArray favServers);
689 proto native
EBiosError GetServerModList(
string serverId);
713 void OnServerModList(GetServerModListResult result_list,
EBiosError error)
EBiosError
Possible Error codes for bios API. This is the list of errors that can be returned from bios API....
class ServerBrowserHelperFunctions m_Id
array< ref GetServersResultRow > GetServersResultRowArray
Param4< string, string, int, int > CachedServerInfo
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
GetServersResult the output structure of the GetServers operation.
GetServersResultRow the output structure of the GetServers operation that represents one game server.
static void OnLoadServersAsync(GetServersResult result_list, EBiosError error, string response)
static void OnGetServerModList(GetServerModListResult result_list, EBiosError error)
static void OnAutoConnectToEmptyServer(GetFirstServerWithEmptySlotResult result_list, EBiosError error)
static void AddMapInfo(string mapName, string mapDisplayName)
static string GetServerMapImagePath(string mapName)
static const string SAKHAL_MAP_IMAGE
static ref map< string, string > INTERNAL_MAP_NAMES
static ServerBrowserHelperFunctions GetInstance()
static const string LIVONIA_MAP_IMAGE
static string GetMapDisplayName(string mapName)
static const string LOWERCASE_ALPHABET
static const string CHERNARUS_MAP_IMAGE
static string GetInternalMapName(string mapName)
void ServerBrowserHelperFunctions()
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
array< string > TStringArray