mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2025-01-14 15:48:06 +03:00
Added Stat.Add
This commit is contained in:
parent
f8798f2f4e
commit
49bb3644bd
@ -123,6 +123,18 @@ namespace Steamworks.Data
|
||||
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…
x
Reference in New Issue
Block a user