Rise
The Vieneo Province
Loading...
Searching...
No Matches
isteamuserstats.h
Go to the documentation of this file.
1//====== Copyright � 1996-2009, Valve Corporation, All rights reserved. =======
2//
3// Purpose: interface to stats, achievements, and leaderboards
4//
5//=============================================================================
6
7#ifndef ISTEAMUSERSTATS_H
8#define ISTEAMUSERSTATS_H
9#ifdef _WIN32
10#pragma once
11#endif
12
13#include "steam_api_common.h"
14#include "isteamremotestorage.h"
15
16// size limit on stat or achievement name (UTF-8 encoded)
17enum { k_cchStatNameMax = 128 };
18
19// maximum number of bytes for a leaderboard name (UTF-8 encoded)
21
22// maximum number of details int32's storable for a single leaderboard entry
24
25// handle to a single leaderboard
27
28// handle to a set of downloaded entries in a leaderboard
30
31// type of data request, when downloading leaderboard entries
39
40// the sort order of a leaderboard
42{
44 k_ELeaderboardSortMethodAscending = 1, // top-score is lowest number
45 k_ELeaderboardSortMethodDescending = 2, // top-score is highest number
46};
47
48// the display type (used by the Steam Community web site) for a leaderboard
50{
52 k_ELeaderboardDisplayTypeNumeric = 1, // simple numerical score
53 k_ELeaderboardDisplayTypeTimeSeconds = 2, // the score represents a time, in seconds
54 k_ELeaderboardDisplayTypeTimeMilliSeconds = 3, // the score represents a time, in milliseconds
55};
56
58{
60 k_ELeaderboardUploadScoreMethodKeepBest = 1, // Leaderboard will keep user's best score
61 k_ELeaderboardUploadScoreMethodForceUpdate = 2, // Leaderboard will always replace score with specified
62};
63
64// a single entry in a leaderboard, as returned by GetDownloadedLeaderboardEntry()
65#if defined( VALVE_CALLBACK_PACK_SMALL )
66#pragma pack( push, 4 )
67#elif defined( VALVE_CALLBACK_PACK_LARGE )
68#pragma pack( push, 8 )
69#else
70#error steam_api_common.h should define VALVE_CALLBACK_PACK_xxx
71#endif
72
74{
75 CSteamID m_steamIDUser; // user with the entry - use SteamFriends()->GetFriendPersonaName() & SteamFriends()->GetFriendAvatar() to get more info
76 int32 m_nGlobalRank; // [1..N], where N is the number of users with an entry in the leaderboard
77 int32 m_nScore; // score as set in the leaderboard
78 int32 m_cDetails; // number of int32 details available for this entry
79 UGCHandle_t m_hUGC; // handle for UGC attached to the entry
80};
81
82#pragma pack( pop )
83
84
85//-----------------------------------------------------------------------------
86// Purpose: Functions for accessing stats, achievements, and leaderboard information
87//-----------------------------------------------------------------------------
89{
90public:
91
92 // Note: this call is no longer required as it is managed by the Steam client
93 // The game stats and achievements will be synchronized with Steam before
94 // the game process begins.
95 // virtual bool RequestCurrentStats() = 0;
96
97 // Data accessors
98 STEAM_FLAT_NAME( GetStatInt32 )
99 virtual bool GetStat( const char *pchName, int32 *pData ) = 0;
100
101 STEAM_FLAT_NAME( GetStatFloat )
102 virtual bool GetStat( const char *pchName, float *pData ) = 0;
103
104 // Set / update data
105 STEAM_FLAT_NAME( SetStatInt32 )
106 virtual bool SetStat( const char *pchName, int32 nData ) = 0;
107
108 STEAM_FLAT_NAME( SetStatFloat )
109 virtual bool SetStat( const char *pchName, float fData ) = 0;
110
111 virtual bool UpdateAvgRateStat( const char *pchName, float flCountThisSession, double dSessionLength ) = 0;
112
113 // Achievement flag accessors
114 virtual bool GetAchievement( const char *pchName, bool *pbAchieved ) = 0;
115 virtual bool SetAchievement( const char *pchName ) = 0;
116 virtual bool ClearAchievement( const char *pchName ) = 0;
117
118 // Get the achievement status, and the time it was unlocked if unlocked.
119 // If the return value is true, but the unlock time is zero, that means it was unlocked before Steam
120 // began tracking achievement unlock times (December 2009). Time is seconds since January 1, 1970.
121 virtual bool GetAchievementAndUnlockTime( const char *pchName, bool *pbAchieved, uint32 *punUnlockTime ) = 0;
122
123 // Store the current data on the server, will get a callback when set
124 // And one callback for every new achievement
125 //
126 // If the callback has a result of k_EResultInvalidParam, one or more stats
127 // uploaded has been rejected, either because they broke constraints
128 // or were out of date. In this case the server sends back updated values.
129 // The stats should be re-iterated to keep in sync.
130 virtual bool StoreStats() = 0;
131
132 // Achievement / GroupAchievement metadata
133
134 // Gets the icon of the achievement, which is a handle to be used in ISteamUtils::GetImageRGBA(), or 0 if none set.
135 // A return value of 0 may indicate we are still fetching data, and you can wait for the UserAchievementIconFetched_t callback
136 // which will notify you when the bits are ready. If the callback still returns zero, then there is no image set for the
137 // specified achievement.
138 virtual int GetAchievementIcon( const char *pchName ) = 0;
139
140 // Get general attributes for an achievement. Accepts the following keys:
141 // - "name" and "desc" for retrieving the localized achievement name and description (returned in UTF8)
142 // - "hidden" for retrieving if an achievement is hidden (returns "0" when not hidden, "1" when hidden)
143 virtual const char *GetAchievementDisplayAttribute( const char *pchName, const char *pchKey ) = 0;
144
145 // Achievement progress - triggers an AchievementProgress callback, that is all.
146 // Calling this w/ N out of N progress will NOT set the achievement, the game must still do that.
147 virtual bool IndicateAchievementProgress( const char *pchName, uint32 nCurProgress, uint32 nMaxProgress ) = 0;
148
149 // Used for iterating achievements. In general games should not need these functions because they should have a
150 // list of existing achievements compiled into them
152 // Get achievement name iAchievement in [0,GetNumAchievements)
153 virtual const char *GetAchievementName( uint32 iAchievement ) = 0;
154
155 // Friends stats & achievements
156
157 // downloads stats for the user
158 // returns a UserStatsReceived_t received when completed
159 // if the other user has no stats, UserStatsReceived_t.m_eResult will be set to k_EResultFail
160 // these stats won't be auto-updated; you'll need to call RequestUserStats() again to refresh any data
162 virtual SteamAPICall_t RequestUserStats( CSteamID steamIDUser ) = 0;
163
164 // requests stat information for a user, usable after a successful call to RequestUserStats()
165 STEAM_FLAT_NAME( GetUserStatInt32 )
166 virtual bool GetUserStat( CSteamID steamIDUser, const char *pchName, int32 *pData ) = 0;
167
168 STEAM_FLAT_NAME( GetUserStatFloat )
169 virtual bool GetUserStat( CSteamID steamIDUser, const char *pchName, float *pData ) = 0;
170
171 virtual bool GetUserAchievement( CSteamID steamIDUser, const char *pchName, bool *pbAchieved ) = 0;
172 // See notes for GetAchievementAndUnlockTime above
173 virtual bool GetUserAchievementAndUnlockTime( CSteamID steamIDUser, const char *pchName, bool *pbAchieved, uint32 *punUnlockTime ) = 0;
174
175 // Reset stats
176 virtual bool ResetAllStats( bool bAchievementsToo ) = 0;
177
178 // Leaderboard functions
179
180 // asks the Steam back-end for a leaderboard by name, and will create it if it's not yet
181 // This call is asynchronous, with the result returned in LeaderboardFindResult_t
183 virtual SteamAPICall_t FindOrCreateLeaderboard( const char *pchLeaderboardName, ELeaderboardSortMethod eLeaderboardSortMethod, ELeaderboardDisplayType eLeaderboardDisplayType ) = 0;
184
185 // as above, but won't create the leaderboard if it's not found
186 // This call is asynchronous, with the result returned in LeaderboardFindResult_t
188 virtual SteamAPICall_t FindLeaderboard( const char *pchLeaderboardName ) = 0;
189
190 // returns the name of a leaderboard
191 virtual const char *GetLeaderboardName( SteamLeaderboard_t hSteamLeaderboard ) = 0;
192
193 // returns the total number of entries in a leaderboard, as of the last request
194 virtual int GetLeaderboardEntryCount( SteamLeaderboard_t hSteamLeaderboard ) = 0;
195
196 // returns the sort method of the leaderboard
198
199 // returns the display type of the leaderboard
201
202 // Asks the Steam back-end for a set of rows in the leaderboard.
203 // This call is asynchronous, with the result returned in LeaderboardScoresDownloaded_t
204 // LeaderboardScoresDownloaded_t will contain a handle to pull the results from GetDownloadedLeaderboardEntries() (below)
205 // You can ask for more entries than exist, and it will return as many as do exist.
206 // k_ELeaderboardDataRequestGlobal requests rows in the leaderboard from the full table, with nRangeStart & nRangeEnd in the range [1, TotalEntries]
207 // k_ELeaderboardDataRequestGlobalAroundUser requests rows around the current user, nRangeStart being negate
208 // e.g. DownloadLeaderboardEntries( hLeaderboard, k_ELeaderboardDataRequestGlobalAroundUser, -3, 3 ) will return 7 rows, 3 before the user, 3 after
209 // k_ELeaderboardDataRequestFriends requests all the rows for friends of the current user
211 virtual SteamAPICall_t DownloadLeaderboardEntries( SteamLeaderboard_t hSteamLeaderboard, ELeaderboardDataRequest eLeaderboardDataRequest, int nRangeStart, int nRangeEnd ) = 0;
212 // as above, but downloads leaderboard entries for an arbitrary set of users - ELeaderboardDataRequest is k_ELeaderboardDataRequestUsers
213 // if a user doesn't have a leaderboard entry, they won't be included in the result
214 // a max of 100 users can be downloaded at a time, with only one outstanding call at a time
217 STEAM_ARRAY_COUNT_D(cUsers, Array of users to retrieve) CSteamID *prgUsers, int cUsers ) = 0;
218
219 // Returns data about a single leaderboard entry
220 // use a for loop from 0 to LeaderboardScoresDownloaded_t::m_cEntryCount to get all the downloaded entries
221 // e.g.
222 // void OnLeaderboardScoresDownloaded( LeaderboardScoresDownloaded_t *pLeaderboardScoresDownloaded )
223 // {
224 // for ( int index = 0; index < pLeaderboardScoresDownloaded->m_cEntryCount; index++ )
225 // {
226 // LeaderboardEntry_t leaderboardEntry;
227 // int32 details[3]; // we know this is how many we've stored previously
228 // GetDownloadedLeaderboardEntry( pLeaderboardScoresDownloaded->m_hSteamLeaderboardEntries, index, &leaderboardEntry, details, 3 );
229 // assert( leaderboardEntry.m_cDetails == 3 );
230 // ...
231 // }
232 // once you've accessed all the entries, the data will be free'd, and the SteamLeaderboardEntries_t handle will become invalid
233 virtual bool GetDownloadedLeaderboardEntry( SteamLeaderboardEntries_t hSteamLeaderboardEntries, int index, LeaderboardEntry_t *pLeaderboardEntry, int32 *pDetails, int cDetailsMax ) = 0;
234
235 // Uploads a user score to the Steam back-end.
236 // This call is asynchronous, with the result returned in LeaderboardScoreUploaded_t
237 // Details are extra game-defined information regarding how the user got that score
238 // pScoreDetails points to an array of int32's, cScoreDetailsCount is the number of int32's in the list
240 virtual SteamAPICall_t UploadLeaderboardScore( SteamLeaderboard_t hSteamLeaderboard, ELeaderboardUploadScoreMethod eLeaderboardUploadScoreMethod, int32 nScore, const int32 *pScoreDetails, int cScoreDetailsCount ) = 0;
241
242 // Attaches a piece of user generated content the user's entry on a leaderboard.
243 // hContent is a handle to a piece of user generated content that was shared using ISteamUserRemoteStorage::FileShare().
244 // This call is asynchronous, with the result returned in LeaderboardUGCSet_t.
247
248 // Retrieves the number of players currently playing your game (online + offline)
249 // This call is asynchronous, with the result returned in NumberOfCurrentPlayers_t
252
253 // Requests that Steam fetch data on the percentage of players who have received each achievement
254 // for the game globally.
255 // This call is asynchronous, with the result returned in GlobalAchievementPercentagesReady_t.
258
259 // Get the info on the most achieved achievement for the game, returns an iterator index you can use to fetch
260 // the next most achieved afterwards. Will return -1 if there is no data on achievement
261 // percentages (ie, you haven't called RequestGlobalAchievementPercentages and waited on the callback).
262 virtual int GetMostAchievedAchievementInfo( char *pchName, uint32 unNameBufLen, float *pflPercent, bool *pbAchieved ) = 0;
263
264 // Get the info on the next most achieved achievement for the game. Call this after GetMostAchievedAchievementInfo or another
265 // GetNextMostAchievedAchievementInfo call passing the iterator from the previous call. Returns -1 after the last
266 // achievement has been iterated.
267 virtual int GetNextMostAchievedAchievementInfo( int iIteratorPrevious, char *pchName, uint32 unNameBufLen, float *pflPercent, bool *pbAchieved ) = 0;
268
269 // Returns the percentage of users who have achieved the specified achievement.
270 virtual bool GetAchievementAchievedPercent( const char *pchName, float *pflPercent ) = 0;
271
272 // Requests global stats data, which is available for stats marked as "aggregated".
273 // This call is asynchronous, with the results returned in GlobalStatsReceived_t.
274 // nHistoryDays specifies how many days of day-by-day history to retrieve in addition
275 // to the overall totals. The limit is 60.
277 virtual SteamAPICall_t RequestGlobalStats( int nHistoryDays ) = 0;
278
279 // Gets the lifetime totals for an aggregated stat
280 STEAM_FLAT_NAME( GetGlobalStatInt64 )
281 virtual bool GetGlobalStat( const char *pchStatName, int64 *pData ) = 0;
282
283 STEAM_FLAT_NAME( GetGlobalStatDouble )
284 virtual bool GetGlobalStat( const char *pchStatName, double *pData ) = 0;
285
286 // Gets history for an aggregated stat. pData will be filled with daily values, starting with today.
287 // So when called, pData[0] will be today, pData[1] will be yesterday, and pData[2] will be two days ago,
288 // etc. cubData is the size in bytes of the pubData buffer. Returns the number of
289 // elements actually set.
290
291 STEAM_FLAT_NAME( GetGlobalStatHistoryInt64 )
292 virtual int32 GetGlobalStatHistory( const char *pchStatName, STEAM_ARRAY_COUNT(cubData) int64 *pData, uint32 cubData ) = 0;
293
294 STEAM_FLAT_NAME( GetGlobalStatHistoryDouble )
295 virtual int32 GetGlobalStatHistory( const char *pchStatName, STEAM_ARRAY_COUNT(cubData) double *pData, uint32 cubData ) = 0;
296
297 // For achievements that have related Progress stats, use this to query what the bounds of that progress are.
298 // You may want this info to selectively call IndicateAchievementProgress when appropriate milestones of progress
299 // have been made, to show a progress notification to the user.
300 STEAM_FLAT_NAME( GetAchievementProgressLimitsInt32 )
301 virtual bool GetAchievementProgressLimits( const char *pchName, int32 *pnMinProgress, int32 *pnMaxProgress ) = 0;
302
303 STEAM_FLAT_NAME( GetAchievementProgressLimitsFloat )
304 virtual bool GetAchievementProgressLimits( const char *pchName, float *pfMinProgress, float *pfMaxProgress ) = 0;
305
306};
307
308#define STEAMUSERSTATS_INTERFACE_VERSION "STEAMUSERSTATS_INTERFACE_VERSION013"
309
310// Global interface accessor
313
314// callbacks
315#if defined( VALVE_CALLBACK_PACK_SMALL )
316#pragma pack( push, 4 )
317#elif defined( VALVE_CALLBACK_PACK_LARGE )
318#pragma pack( push, 8 )
319#else
320#error steam_api_common.h should define VALVE_CALLBACK_PACK_xxx
321#endif
322
323//-----------------------------------------------------------------------------
324// Purpose: called when the latests stats and achievements have been received
325// from the server
326//-----------------------------------------------------------------------------
328{
330 uint64 m_nGameID; // Game these stats are for
331 EResult m_eResult; // Success / error fetching the stats
332 CSteamID m_steamIDUser; // The user for whom the stats are retrieved for
333};
334
335
336//-----------------------------------------------------------------------------
337// Purpose: result of a request to store the user stats for a game
338//-----------------------------------------------------------------------------
340{
342 uint64 m_nGameID; // Game these stats are for
343 EResult m_eResult; // success / error
344};
345
346
347//-----------------------------------------------------------------------------
348// Purpose: result of a request to store the achievements for a game, or an
349// "indicate progress" call. If both m_nCurProgress and m_nMaxProgress
350// are zero, that means the achievement has been fully unlocked.
351//-----------------------------------------------------------------------------
353{
355
356 uint64 m_nGameID; // Game this is for
357 bool m_bGroupAchievement; // unused. if this is a "group" achievement
358 char m_rgchAchievementName[k_cchStatNameMax]; // name of the achievement
359 uint32 m_nCurProgress; // current progress towards the achievement
360 uint32 m_nMaxProgress; // "out of" this many
361};
362
363
364//-----------------------------------------------------------------------------
365// Purpose: call result for finding a leaderboard, returned as a result of FindOrCreateLeaderboard() or FindLeaderboard()
366// use CCallResult<> to map this async result to a member function
367//-----------------------------------------------------------------------------
369{
371 SteamLeaderboard_t m_hSteamLeaderboard; // handle to the leaderboard serarched for, 0 if no leaderboard found
372 uint8 m_bLeaderboardFound; // 0 if no leaderboard found
373};
374
375
376//-----------------------------------------------------------------------------
377// Purpose: call result indicating scores for a leaderboard have been downloaded and are ready to be retrieved, returned as a result of DownloadLeaderboardEntries()
378// use CCallResult<> to map this async result to a member function
379//-----------------------------------------------------------------------------
381{
384 SteamLeaderboardEntries_t m_hSteamLeaderboardEntries; // the handle to pass into GetDownloadedLeaderboardEntries()
385 int m_cEntryCount; // the number of entries downloaded
386};
387
388
389//-----------------------------------------------------------------------------
390// Purpose: call result indicating scores has been uploaded, returned as a result of UploadLeaderboardScore()
391// use CCallResult<> to map this async result to a member function
392//-----------------------------------------------------------------------------
394{
396 uint8 m_bSuccess; // 1 if the call was successful
397 SteamLeaderboard_t m_hSteamLeaderboard; // the leaderboard handle that was
398 int32 m_nScore; // the score that was attempted to set
399 uint8 m_bScoreChanged; // true if the score in the leaderboard change, false if the existing score was better
400 int m_nGlobalRankNew; // the new global rank of the user in this leaderboard
401 int m_nGlobalRankPrevious; // the previous global rank of the user in this leaderboard; 0 if the user had no existing entry in the leaderboard
402};
403
405{
407 uint8 m_bSuccess; // 1 if the call was successful
408 int32 m_cPlayers; // Number of players currently playing
409};
410
411
412
413//-----------------------------------------------------------------------------
414// Purpose: Callback indicating that a user's stats have been unloaded.
415// Call RequestUserStats again to access stats for this user
416//-----------------------------------------------------------------------------
418{
420 CSteamID m_steamIDUser; // User whose stats have been unloaded
421};
422
423
424
425//-----------------------------------------------------------------------------
426// Purpose: Callback indicating that an achievement icon has been fetched
427//-----------------------------------------------------------------------------
429{
431
432 CGameID m_nGameID; // Game this is for
433 char m_rgchAchievementName[k_cchStatNameMax]; // name of the achievement
434 bool m_bAchieved; // Is the icon for the achieved or not achieved version?
435 int m_nIconHandle; // Handle to the image, which can be used in SteamUtils()->GetImageRGBA(), 0 means no image is set for the achievement
436};
437
438
439//-----------------------------------------------------------------------------
440// Purpose: Callback indicating that global achievement percentages are fetched
441//-----------------------------------------------------------------------------
443{
445
446 uint64 m_nGameID; // Game this is for
447 EResult m_eResult; // Result of the operation
448};
449
450
451//-----------------------------------------------------------------------------
452// Purpose: call result indicating UGC has been uploaded, returned as a result of SetLeaderboardUGC()
453//-----------------------------------------------------------------------------
455{
457 EResult m_eResult; // The result of the operation
458 SteamLeaderboard_t m_hSteamLeaderboard; // the leaderboard handle that was
459};
460
461
462//-----------------------------------------------------------------------------
463// Purpose: callback indicating global stats have been received.
464// Returned as a result of RequestGlobalStats()
465//-----------------------------------------------------------------------------
467{
469 uint64 m_nGameID; // Game global stats were requested for
470 EResult m_eResult; // The result of the request
471};
472
473#pragma pack( pop )
474
475
476#endif // ISTEAMUSER_H
virtual bool GetGlobalStat(const char *pchStatName, int64 *pData)=0
virtual SteamAPICall_t GetNumberOfCurrentPlayers()=0
virtual SteamAPICall_t UploadLeaderboardScore(SteamLeaderboard_t hSteamLeaderboard, ELeaderboardUploadScoreMethod eLeaderboardUploadScoreMethod, int32 nScore, const int32 *pScoreDetails, int cScoreDetailsCount)=0
virtual bool GetAchievementProgressLimits(const char *pchName, int32 *pnMinProgress, int32 *pnMaxProgress)=0
virtual bool ResetAllStats(bool bAchievementsToo)=0
virtual ELeaderboardSortMethod GetLeaderboardSortMethod(SteamLeaderboard_t hSteamLeaderboard)=0
virtual bool GetAchievementAndUnlockTime(const char *pchName, bool *pbAchieved, uint32 *punUnlockTime)=0
virtual bool GetUserAchievement(CSteamID steamIDUser, const char *pchName, bool *pbAchieved)=0
virtual bool SetStat(const char *pchName, int32 nData)=0
virtual SteamAPICall_t RequestGlobalStats(int nHistoryDays)=0
virtual int32 GetGlobalStatHistory(const char *pchStatName, STEAM_ARRAY_COUNT(cubData) int64 *pData, uint32 cubData)=0
virtual int GetLeaderboardEntryCount(SteamLeaderboard_t hSteamLeaderboard)=0
virtual SteamAPICall_t FindOrCreateLeaderboard(const char *pchLeaderboardName, ELeaderboardSortMethod eLeaderboardSortMethod, ELeaderboardDisplayType eLeaderboardDisplayType)=0
virtual bool GetUserStat(CSteamID steamIDUser, const char *pchName, int32 *pData)=0
virtual uint32 GetNumAchievements()=0
virtual bool GetStat(const char *pchName, int32 *pData)=0
virtual bool UpdateAvgRateStat(const char *pchName, float flCountThisSession, double dSessionLength)=0
virtual bool GetUserAchievementAndUnlockTime(CSteamID steamIDUser, const char *pchName, bool *pbAchieved, uint32 *punUnlockTime)=0
virtual const char * GetLeaderboardName(SteamLeaderboard_t hSteamLeaderboard)=0
virtual ELeaderboardDisplayType GetLeaderboardDisplayType(SteamLeaderboard_t hSteamLeaderboard)=0
virtual SteamAPICall_t RequestGlobalAchievementPercentages()=0
virtual const char * GetAchievementDisplayAttribute(const char *pchName, const char *pchKey)=0
virtual const char * GetAchievementName(uint32 iAchievement)=0
virtual SteamAPICall_t RequestUserStats(CSteamID steamIDUser)=0
virtual bool GetAchievementAchievedPercent(const char *pchName, float *pflPercent)=0
virtual SteamAPICall_t AttachLeaderboardUGC(SteamLeaderboard_t hSteamLeaderboard, UGCHandle_t hUGC)=0
virtual SteamAPICall_t DownloadLeaderboardEntries(SteamLeaderboard_t hSteamLeaderboard, ELeaderboardDataRequest eLeaderboardDataRequest, int nRangeStart, int nRangeEnd)=0
virtual int GetAchievementIcon(const char *pchName)=0
virtual bool GetDownloadedLeaderboardEntry(SteamLeaderboardEntries_t hSteamLeaderboardEntries, int index, LeaderboardEntry_t *pLeaderboardEntry, int32 *pDetails, int cDetailsMax)=0
virtual int GetMostAchievedAchievementInfo(char *pchName, uint32 unNameBufLen, float *pflPercent, bool *pbAchieved)=0
virtual SteamAPICall_t FindLeaderboard(const char *pchLeaderboardName)=0
virtual int GetNextMostAchievedAchievementInfo(int iIteratorPrevious, char *pchName, uint32 unNameBufLen, float *pflPercent, bool *pbAchieved)=0
virtual bool SetAchievement(const char *pchName)=0
virtual bool ClearAchievement(const char *pchName)=0
virtual bool GetAchievement(const char *pchName, bool *pbAchieved)=0
virtual bool IndicateAchievementProgress(const char *pchName, uint32 nCurProgress, uint32 nMaxProgress)=0
virtual bool StoreStats()=0
virtual SteamAPICall_t DownloadLeaderboardEntriesForUsers(SteamLeaderboard_t hSteamLeaderboard, STEAM_ARRAY_COUNT_D(cUsers, Array of users to retrieve) CSteamID *prgUsers, int cUsers)=0
uint64 UGCHandle_t
#define STEAMUSERSTATS_INTERFACE_VERSION
@ k_cLeaderboardDetailsMax
ELeaderboardUploadScoreMethod
@ k_ELeaderboardUploadScoreMethodKeepBest
@ k_ELeaderboardUploadScoreMethodNone
@ k_ELeaderboardUploadScoreMethodForceUpdate
ELeaderboardDisplayType
@ k_ELeaderboardDisplayTypeTimeMilliSeconds
@ k_ELeaderboardDisplayTypeNumeric
@ k_ELeaderboardDisplayTypeTimeSeconds
@ k_ELeaderboardDisplayTypeNone
ELeaderboardSortMethod
@ k_ELeaderboardSortMethodDescending
@ k_ELeaderboardSortMethodNone
@ k_ELeaderboardSortMethodAscending
@ k_cchStatNameMax
uint64 SteamLeaderboard_t
ELeaderboardDataRequest
@ k_ELeaderboardDataRequestUsers
@ k_ELeaderboardDataRequestGlobal
@ k_ELeaderboardDataRequestGlobalAroundUser
@ k_ELeaderboardDataRequestFriends
ISteamUserStats * SteamUserStats()
@ k_cchLeaderboardNameMax
uint64 SteamLeaderboardEntries_t
const char *typedef uint32(S_CALLTYPE *SteamAPI_CheckCallbackRegistered_t)(int iCallbackNum)
#define STEAM_DEFINE_USER_INTERFACE_ACCESSOR(type, name, version)
#define STEAM_ARRAY_COUNT(COUNTER)
#define STEAM_FLAT_NAME(NAME)
#define STEAM_CALL_RESULT(RESULT_TYPE)
#define STEAM_ARRAY_COUNT_D(COUNTER, DESC)
@ k_iSteamUserStatsCallbacks
unsigned long long uint64
Definition steamtypes.h:60
int int32
Definition steamtypes.h:57
uint64 SteamAPICall_t
Definition steamtypes.h:93
unsigned char uint8
Definition steamtypes.h:11
long long int64
Definition steamtypes.h:59
CSteamID m_steamIDUser
int32 m_nScore
UGCHandle_t m_hUGC
int32 m_cDetails
int32 m_nGlobalRank
SteamLeaderboard_t m_hSteamLeaderboard
SteamLeaderboard_t m_hSteamLeaderboard
SteamLeaderboard_t m_hSteamLeaderboard
SteamLeaderboardEntries_t m_hSteamLeaderboardEntries
SteamLeaderboard_t m_hSteamLeaderboard
char m_rgchAchievementName[k_cchStatNameMax]
char m_rgchAchievementName[k_cchStatNameMax]