mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2024-12-27 07:05:50 +03:00
Added Stat.Add
This commit is contained in:
parent
f8798f2f4e
commit
49bb3644bd
@ -123,6 +123,18 @@ public bool Set( float val )
|
||||
return SteamUserStats.Internal.SetStat2( Name, val );
|
||||
}
|
||||
|
||||
public bool Add( int val )
|
||||
{
|
||||
LocalUserOnly();
|
||||
return Set( GetInt() + val );
|
||||
}
|
||||
|
||||
public bool Add( float val )
|
||||
{
|
||||
LocalUserOnly();
|
||||
return Set( GetFloat() + val );
|
||||
}
|
||||
|
||||
public bool UpdateAverageRate( float count, float sessionlength )
|
||||
{
|
||||
LocalUserOnly();
|
||||
|
Loading…
Reference in New Issue
Block a user