Added Friend.GetAchievement

This commit is contained in:
Garry Newman 2020-02-24 12:00:42 +00:00
parent 2928939c9f
commit ae900f84bc

View File

@ -227,5 +227,21 @@ namespace Steamworks
return val;
}
/// <summary>
/// Gets a user achievement state. Must call RequestUserStats first.
/// </summary>
/// <param name="statName">The name of the achievement you want to get</param>
/// <param name="defult">Will return this value if not available</param>
/// <returns>The value, or defult if not available</returns>
public bool GetAchievement( string statName, bool defult = false )
{
var val = defult;
if ( !SteamUserStats.Internal.GetUserAchievement( Id, statName, ref val ) )
return defult;
return val;
}
}
}