mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2024-12-28 15:45:29 +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 );
|
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 )
|
public bool UpdateAverageRate( float count, float sessionlength )
|
||||||
{
|
{
|
||||||
LocalUserOnly();
|
LocalUserOnly();
|
||||||
|
Loading…
Reference in New Issue
Block a user