1 #ifndef VG_STEAM_USER_STATS_H
2 #define VG_STEAM_USER_STATS_H
6 #if defined( VALVE_CALLBACK_PACK_SMALL )
7 #pragma pack( push, 4 )
8 #elif defined( VALVE_CALLBACK_PACK_LARGE )
9 #pragma pack( push, 8 )
12 typedef struct UserStatsReceived_t UserStatsReceived_t
;
13 struct UserStatsReceived_t
15 u64 m_nGameID
; // Game these stats are for
16 EResult m_eResult
; // Success / error fetching the stats
17 CSteamID m_steamIDUser
; // The user for whom the stats are retrieved for
19 enum { k_iUserStatsReceived
= k_iSteamUserStatsCallbacks
+ 1 };
23 typedef void ISteamUserStats
;
24 ISteamUserStats
*SteamAPI_SteamUserStats_v012(void);
25 ISteamUserStats
*SteamAPI_SteamUserStats(void)
27 return SteamAPI_SteamUserStats_v012();
30 int SteamAPI_ISteamUserStats_RequestCurrentStats( ISteamUserStats
* self
);
32 int SteamAPI_ISteamUserStats_GetAchievement( ISteamUserStats
*self
,
36 int SteamAPI_ISteamUserStats_SetAchievement( ISteamUserStats
*self
,
37 const char *pchName
);
39 int SteamAPI_ISteamUserStats_ClearAchievement( ISteamUserStats
*self
,
40 const char *pchName
);
42 int SteamAPI_ISteamUserStats_StoreStats( ISteamUserStats
* self
);
44 #endif /* VG_STEAM_USER_STATS_H */