Facepunch.Steamworks Wiki

Steamworks.Data.Achievement

Properties

string Description { get; }
float GlobalUnlocked { get; }
Returns the fraction (0-1) of users who have unlocked the specified achievement, or -1 if no data available.
string Identifier { get; }
string Name { get; }
bool State { get; }
True if unlocked
System.DateTime? UnlockTime { get; }
Should hold the unlock time if State is true

Methods

bool Clear()
Reset this achievement to not achieved
Data.Image? GetIcon()
Gets the icon of the achievement. This can return a null image even though the image exists if the image hasn't been downloaded by Steam yet. You can use GetIconAsync if you want to wait for the image to be downloaded.
async Task<Data.Image> GetIconAsync( int timeout = 5000 )
Gets the icon of the achievement, waits for it to load if we have to
bool Trigger( bool apply = True )
Make this achievement earned

Page Links


Special Pages


Wikis

?

Render Time: 30ms

DB GetPage 6
Generate Html 0
SaveChanges (1) 20
Render Body 0
Render Sidebar 1