테이블 생성
리더보드 테이블을 생성 합니다.
호출 정보
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 |