- 뒤끝 SDK 버전 : 5.17.0
- 프로젝트명 : test
안녕하세요.
리더보드 문서 중 실제 SDK에 필드가 없는것 같아 문의 드립니다.
해당 문서에 보면 아래 필드가 있다고 나오지만 실제 데이터에는 존재하지 않습니다.
"initializationTime": "04:00:00 UTC+9:00", // 리더보드 초기화 시간
아래는 호출 코드 입니다.
var leaderboardData = GetPuzzleLeaderboardData();
Debug.Log(leaderboardData.ToString());
public LeaderboardTableItem GetPuzzleLeaderboardData(bool isForce = false)
{
if (GameData.Instance.PuzzleLeaderboardData != null && !isForce)
{
return GameData.Instance.PuzzleLeaderboardData;
}
BackendLeaderboardTableReturnObject bro = Backend.Leaderboard.User.GetLeaderboards();
string targetUuid = GameData.Instance.SettingsChart.StringSettings[SettingsType.PuzzleRankingId];
LeaderboardTableItem result = null;
foreach (LeaderboardTableItem item in bro.GetLeaderboardTableList())
{
string uuid = item.uuid;
if (uuid == targetUuid)
{
result = item;
break;
}
}
GameData.Instance.PuzzleLeaderboardData = result;
return result;
}
아래는 콘솔에 나온 정보 입니다.
rankType: user
date: day
isDivision: False
uuid: - (가림)
order: desc
isReset: False
title: BlockPuzzleRank
table: PersonalInfoTable
column: PuzzleRankingHighScore
rankStartDateAndTime:
rankEndDateAndTime:
rewardPostTitle : ko : 퍼즐 랭킹
rewardPostTitle : en : Puzzle
rewardPostTitle : fallback : en
만약 문서가 잘못된 것이라면 매주 정기적으로 초기화되는 리더보드의 초기화 시간은 코드로 불러올 수 있는 방법이 있는지도 안내주시면 감사하겠습니다.