gpg:: ScoreSummary
#include <score_summary.h>
점수 정보 요약에 액세스할 수 있는 단일 데이터 구조입니다.
요약
생성자 및 소멸자 |
|
---|---|
ScoreSummary()
|
|
ScoreSummary(std::shared_ptr< const ScoreSummaryImpl > impl)
|
|
ScoreSummary(const ScoreSummary & copy_from)
기존
ScoreSummary 의 사본을 생성합니다. |
|
ScoreSummary(ScoreSummary && move_from)
기존
ScoreSummary 를 이동합니다. |
|
~ScoreSummary()
|
공개 함수 |
|
---|---|
ApproximateNumberOfScores() const
|
uint64_t
점수 페이지의 대략적인 점수 수를 반환합니다.
|
Collection() const
|
리더보드가 속한 컬렉션을 반환합니다.
|
CurrentPlayerScore() const
|
const Score &
현재 로그인한 플레이어의 점수를 반환합니다.
|
LeaderboardId() const
|
const std::string &
Google Play 개발자 콘솔이 미리 생성한 고유한 문자열을 반환합니다.
|
TimeSpan() const
|
리더보드 기간을 반환합니다.
|
Valid() const
|
bool
이
ScoreSummary 에 데이터가 채워져 있으면 true를 반환합니다. |
operator=(const ScoreSummary & copy_from)
|
다른 항목에서 복사하여 이
ScoreSummary 를 할당합니다. |
operator=(ScoreSummary && move_from)
|
다른 항목을 이동하여 이
ScoreSummary 를 할당합니다. |
공개 함수
ApproximateNumberOfScores
uint64_t ApproximateNumberOfScores() const
점수 페이지의 대략적인 점수 수를 반환합니다.
요청된 점수가 없으면 오류를 반환하고 (max_results = 0) 점수가 과도한 경우 숫자를 25로 고정합니다.
LeaderboardId
const std::string & LeaderboardId() const
Google Play 개발자 콘솔이 미리 생성한 고유한 문자열을 반환합니다.
게임 클라이언트의 리더보드를 참조하는 데 사용합니다. Leaderboard::Valid()에서 true를 반환할 때만 호출할 수 있습니다.
ScoreSummary
ScoreSummary()
ScoreSummary
ScoreSummary( std::shared_ptr< const ScoreSummaryImpl > impl )
shared_ptr
에서 ScoreSummaryImpl
로 ScoreSummary
를 구성합니다.
API에서 내부적으로 사용하기 위한 용도입니다.
유효
bool Valid() const
이 ScoreSummary
에 데이터가 채워져 있으면 true를 반환합니다.
ScoreSummary
객체 (LeaderboardId
, TimeSpan
등)의 getter 함수를 사용하려면 true를 반환해야 합니다.
operator=
ScoreSummary & operator=( const ScoreSummary & copy_from )
다른 항목에서 복사하여 이 ScoreSummary
를 할당합니다.
~스코어요약
~ScoreSummary()