From c0df4af9daa5e123bd4f85742e488e77cd034a32 Mon Sep 17 00:00:00 2001 From: Garry Newman Date: Wed, 20 Jul 2016 10:05:33 +0100 Subject: [PATCH] Added server --- Facepunch.Steamworks/Client.ServerList.Request.cs | 4 ++-- Facepunch.Steamworks/Facepunch.Steamworks.csproj | 1 + Facepunch.Steamworks/Server.cs | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Facepunch.Steamworks/Client.ServerList.Request.cs b/Facepunch.Steamworks/Client.ServerList.Request.cs index 47b6952..ebc5b6d 100644 --- a/Facepunch.Steamworks/Client.ServerList.Request.cs +++ b/Facepunch.Steamworks/Client.ServerList.Request.cs @@ -161,11 +161,11 @@ namespace Facepunch.Steamworks { if ( info.m_bHadSuccessfulResponse ) { - Responded.Add( Server.FromSteam( client, info ) ); + Responded.Add( Server.FromSteam( info ) ); } else { - Unresponsive.Add( Server.FromSteam( client, info ) ); + Unresponsive.Add( Server.FromSteam( info ) ); } } diff --git a/Facepunch.Steamworks/Facepunch.Steamworks.csproj b/Facepunch.Steamworks/Facepunch.Steamworks.csproj index 694cba2..f32b152 100644 --- a/Facepunch.Steamworks/Facepunch.Steamworks.csproj +++ b/Facepunch.Steamworks/Facepunch.Steamworks.csproj @@ -127,6 +127,7 @@ + diff --git a/Facepunch.Steamworks/Server.cs b/Facepunch.Steamworks/Server.cs index 4fd4eb6..f13aedd 100644 --- a/Facepunch.Steamworks/Server.cs +++ b/Facepunch.Steamworks/Server.cs @@ -9,7 +9,7 @@ namespace Facepunch.Steamworks { public partial class ServerList { - public class Server + public struct Server { public string Name { get; set; } public int Ping { get; set; }