Merge pull request #125 from speedis/master

Added servers stats SetAchievement
This commit is contained in:
Garry Newman 2018-02-20 10:57:49 +00:00 committed by GitHub
commit 72ef9015b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -112,8 +112,18 @@ public float GetFloat( ulong steamid, string name, float defaultValue = 0 )
return data;
}
/// <summary>
/// Unlocks the specified achievement for the specified user. Must have called Refresh on a steamid first.
/// Remember to use Commit after use.
/// </summary>
public bool SetAchievement( ulong steamid, string name )
{
return server.native.gameServerStats.SetUserAchievement( steamid, name );
}
/// <summary>
/// Resets the unlock status of an achievement for the specified user. Must have called Refresh on a steamid first.
/// Remember to use Commit after use.
/// </summary>
public bool ClearAchievement( ulong steamid, string name )
{