Added server

This commit is contained in:
Garry Newman 2016-07-20 10:05:33 +01:00
parent a9d6ea6cef
commit c0df4af9da
3 changed files with 4 additions and 3 deletions

View File

@ -161,11 +161,11 @@ private void OnServer( gameserveritem_t info )
{ {
if ( info.m_bHadSuccessfulResponse ) if ( info.m_bHadSuccessfulResponse )
{ {
Responded.Add( Server.FromSteam( client, info ) ); Responded.Add( Server.FromSteam( info ) );
} }
else else
{ {
Unresponsive.Add( Server.FromSteam( client, info ) ); Unresponsive.Add( Server.FromSteam( info ) );
} }
} }

View File

@ -127,6 +127,7 @@
<Compile Include="Client\Stats.cs" /> <Compile Include="Client\Stats.cs" />
<Compile Include="Client\Voice.cs" /> <Compile Include="Client\Voice.cs" />
<Compile Include="Properties\AssemblyInfo.cs" /> <Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Server.cs" />
<Compile Include="steam_api_interop.cs" /> <Compile Include="steam_api_interop.cs" />
</ItemGroup> </ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />

View File

@ -9,7 +9,7 @@ namespace Facepunch.Steamworks
{ {
public partial class ServerList public partial class ServerList
{ {
public class Server public struct Server
{ {
public string Name { get; set; } public string Name { get; set; }
public int Ping { get; set; } public int Ping { get; set; }