mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-17 14:07:48 +00:00
1
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
//========= Copyright Valve Corporation, All rights reserved. ============//
|
||||
//
|
||||
// Purpose: API to interact with Steam leaderboards on the GC.
|
||||
//
|
||||
// $NoKeywords: $
|
||||
//=============================================================================
|
||||
|
||||
#ifndef GCLEADERBOARDAPI_H
|
||||
#define GCLEADERBOARDAPI_H
|
||||
|
||||
namespace GCSDK
|
||||
{
|
||||
class CGCBase;
|
||||
|
||||
enum { kInvalidLeaderboardID = 0 };
|
||||
|
||||
/**
|
||||
* Yielding call that attempts to find a leaderboard by name, creating one if necessary.
|
||||
* @param pName
|
||||
* @param eLeaderboardSortMethod
|
||||
* @param eLeaderboardDisplayType
|
||||
* @param bCreateIfNotFound
|
||||
* @return 0 if the leaderboard was not found, > 0 otherwise
|
||||
*/
|
||||
uint32 Leaderboard_YieldingFind( const char *pName, ELeaderboardSortMethod eLeaderboardSortMethod, ELeaderboardDisplayType eLeaderboardDisplayType, bool bCreateIfNotFound );
|
||||
|
||||
/**
|
||||
* Yielding call that attempts to set the score for the steamID in the leaderboard.
|
||||
* @param unLeaderboardID
|
||||
* @param steamID
|
||||
* @param eLeaderboardUploadScoreMethod
|
||||
* @param score
|
||||
* @param pDetails
|
||||
* @param unDetailsLength
|
||||
* @return true if successful, false otherwise.
|
||||
*/
|
||||
bool Leaderboard_YieldingSetScore( uint32 unLeaderboardID, const CSteamID &steamID, ELeaderboardUploadScoreMethod eLeaderboardUploadScoreMethod, int score );
|
||||
}; // namespace GCSDK
|
||||
|
||||
#endif // GCLEADERBOARDAPI_H
|
||||
Reference in New Issue
Block a user