From 91e9e162f376618d85abbb0e1c94ab7f820440cb Mon Sep 17 00:00:00 2001 From: Garry Newman Date: Thu, 23 May 2019 14:59:42 +0100 Subject: [PATCH] Added SteamMatchmaking.GetFavoriteServers() --- Facepunch.Steamworks/SteamMatchmaking.cs | 23 +++++++++++++++++++++++ Facepunch.Steamworks/Structs/Server.cs | 11 +++++++++++ 2 files changed, 34 insertions(+) diff --git a/Facepunch.Steamworks/SteamMatchmaking.cs b/Facepunch.Steamworks/SteamMatchmaking.cs index 318ff20..794194a 100644 --- a/Facepunch.Steamworks/SteamMatchmaking.cs +++ b/Facepunch.Steamworks/SteamMatchmaking.cs @@ -143,5 +143,28 @@ namespace Steamworks return new Lobby { Id = lobby.Value.SteamIDLobby }; } + /// + /// Get a list of servers that are on your favorites list + /// + public static IEnumerable GetFavoriteServers() + { + var count = Internal.GetFavoriteGameCount(); + + for( int i=0; i /// Add this server to our history list /// If we're already in the history list, weill set the last played time to now