본문으로 건너뛰기

테이블 생성

리더보드 테이블을 생성 합니다.

호출 정보

public void TableCreate (TableManage tableManage, PlayNANOODelegate callback) {}

호출 상세 정보

파라미터설명타입
tableManage테이블 설정 정보MultiSaveParam
callback통신 결과PlayNANOODelegate

소스 코드

using PlayNANOO;

public class PlayNANOOExample : MonoBehaviour
{
Plugin plugin;

void Awake()
{
plugin = Plugin.GetInstance();

PlayNANOO.LeaderBoard.v20240301.TableManage tableManage = new PlayNANOO.LeaderBoard.v20240301.TableManage();
tableManage.uid = "ID";
tableManage.name = "ROTATION";
tableManage.rotation = PlayNANOO.LeaderBoard.v20240301.Rotaion.ROTATION;
tableManage.recordType = PlayNANOO.LeaderBoard.v20240301.RecordType.HIGHSCORE;
tableManage.recordSortType = PlayNANOO.LeaderBoard.v20240301.SortType.DESC;
tableManage.recordPriority = false;
tableManage.rotationDetail = new PlayNANOO.LeaderBoard.v20240301.TableManageRotationDetail();
tableManage.rotationDetail.period = 10;
tableManage.rotationDetail.timeOffset = 32400;
tableManage.rotationDetail.date = "2024-03-01";
tableManage.rotationDetail.time = "15:00";

plugin.LeaderboardManagerV20240301.TableCreate(tableManage, (status, errorCode, jsonString, values) => {
if (status.Equals(Configure.PN_API_STATE_SUCCESS))
{
Debug.Log("Success");
Debug.Log(values["TableId"]);
}
else
{
Debug.Log("Fail");
}
});
}
}

TableManage 상세 정보

데이터키설명타입
uid테이블 식별 아이디 (미입력 시 랜덤 생성)string
name테이블 이름string
ratation리더보드 갱신 주기TableCreate.rotation
recordType리더보드 기록 방식TableCreate.recordType
recordSortType리더보드 정렬 방식TableCreate.recordSortType
recordPriority리더보드 기록 우선 순위 설정boolean
rotationDetail.period리더보드 갱신 주기integer
rotationDetail.timeOffset리더보드 시간 TimeOffset (UTC 기준으로 시간차이 입력)integer
rotationDetail.date리더보드 시작 일자 (UTC 시간으로 입력)string
rotationDetail.time리더보드 시작 시간 (UTC 시간으로 입력)string
정보

rotationDetail 정보는 리더보드 갱신 주기로 설정된 경우에만 입력하세요.

통신 결과

HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
{
"TableId": "string"
}

통신 결과 상세 정보

데이터키설명타입
TableId테이블 코드string