mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2024-12-24 13:45:37 +03:00
Added stats
This commit is contained in:
parent
53dfddabf0
commit
c4e4bdb749
33
Facepunch.Steamworks/Client/Stats.cs
Normal file
33
Facepunch.Steamworks/Client/Stats.cs
Normal file
@ -0,0 +1,33 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace Facepunch.Steamworks
|
||||
{
|
||||
public partial class Client : IDisposable
|
||||
{
|
||||
Stats _stats;
|
||||
|
||||
public Stats Stats
|
||||
{
|
||||
get
|
||||
{
|
||||
if ( _stats == null )
|
||||
_stats = new Stats( this );
|
||||
|
||||
return _stats;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public class Stats
|
||||
{
|
||||
internal Client client;
|
||||
|
||||
internal Stats( Client c )
|
||||
{
|
||||
client = c;
|
||||
}
|
||||
}
|
||||
}
|
@ -122,6 +122,7 @@
|
||||
<Compile Include="Client.cs" />
|
||||
<Compile Include="Client\App.cs" />
|
||||
<Compile Include="Client\Inventory.cs" />
|
||||
<Compile Include="Client\Stats.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="steam_api_interop.cs" />
|
||||
</ItemGroup>
|
||||
|
Loading…
Reference in New Issue
Block a user