gpg::ScoreSummary

#include <score_summary.h>

점수 정보 요약에 액세스할 수 있는 단일 데이터 구조입니다.

요약

생성자 및 소멸자

ScoreSummary()
ScoreSummary(std::shared_ptr< const ScoreSummaryImpl > impl)
shared_ptr에서 ScoreSummaryImplScoreSummary를 구성합니다.
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 Developer Console에서 미리 생성한 고유한 문자열을 반환합니다.
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로 고정합니다.

컬렉션

LeaderboardCollection Collection() const 

리더보드가 속한 컬렉션을 반환합니다.

가능한 값은 PUBLIC 및 SOCIAL입니다.

CurrentPlayerScore

const Score & CurrentPlayerScore() const 

현재 로그인한 플레이어의 점수를 반환합니다.

LeaderboardId

const std::string & LeaderboardId() const 

Google Play Developer Console에서 미리 생성한 고유한 문자열을 반환합니다.

게임 클라이언트의 리더보드를 참조하는 데 사용합니다. Leaderboard::Valid()가 true를 반환하는 경우에만 호출할 수 있습니다.

ScoreSummary

 ScoreSummary()

ScoreSummary

 ScoreSummary(
  std::shared_ptr< const ScoreSummaryImpl > impl
)

shared_ptr에서 ScoreSummaryImplScoreSummary를 구성합니다.

API의 내부용으로 사용됩니다.

ScoreSummary

 ScoreSummary(
  const ScoreSummary & copy_from
)

기존 ScoreSummary의 사본을 만듭니다.

ScoreSummary

 ScoreSummary(
  ScoreSummary && move_from
)

기존 ScoreSummary를 이동합니다.

TimeSpan

LeaderboardTimeSpan TimeSpan() const 

리더보드 기간을 반환합니다.

가능한 값은 DAILY, WEEKLY 또는 ALL_TIME입니다.

유효

bool Valid() const 

ScoreSummary가 데이터로 채워지면 true를 반환합니다.

ScoreSummary 객체 (LeaderboardId, TimeSpan 등)의 getter 함수를 사용하려면 true를 반환해야 합니다.

연산자=

ScoreSummary & operator=(
  const ScoreSummary & copy_from
)

다른 이미지에서 복사하여 이 ScoreSummary를 할당합니다.

연산자=

ScoreSummary & operator=(
  ScoreSummary && move_from
)

다른 객체를 이동하여 이 ScoreSummary를 할당합니다.

~ScoreSummary

 ~ScoreSummary()