mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2024-12-25 14:15:47 +03:00
Merge pull request #125 from speedis/master
Added servers stats SetAchievement
This commit is contained in:
commit
72ef9015b3
@ -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 )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user