Added Stat.Add

This commit is contained in:
Garry Newman 2019-05-08 12:38:09 +01:00
parent f8798f2f4e
commit 49bb3644bd

View File

@ -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();