Added servers stats SetAchievement

This commit is contained in:
speedis 2018-02-16 22:50:19 +01:00
parent c4617c5884
commit 24c0edcbcb

View File

@ -112,8 +112,18 @@ public float GetFloat( ulong steamid, string name, float defaultValue = 0 )
return data; 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> /// <summary>
/// Resets the unlock status of an achievement for the specified user. Must have called Refresh on a steamid first. /// 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> /// </summary>
public bool ClearAchievement( ulong steamid, string name ) public bool ClearAchievement( ulong steamid, string name )
{ {