修改表
修改排行榜表。
调用信息
public void TableEdit (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 = "TABLE_CODE";
tableManage.recordType = PlayNANOO.LeaderBoard.v20240301.RecordType.HIGHSCORE;
tableManage.recordSortType = PlayNANOO.LeaderBoard.v20240301.SortType.ASC;
tableManage.recordPriority = false;
plugin.LeaderboardManagerV20240301.TableEdit(tableManage, (status, errorCode, jsonString, values) => {
if (status.Equals(Configure.PN_API_STATE_SUCCESS))
{
Debug.Log("Success");
}
else
{
Debug.Log("Fail");
}
});
}
}
TableManage 详细信息
| 数据键 | 说明 | 类型 |
|---|---|---|
| uid | 表识别 ID | string |
| recordType | 排行榜记录方式 | TableCreate.recordType |
| recordSortType | 排行榜排序方式 | TableCreate.recordSortType |
| recordPriority | 排行榜记录优先级设置 | boolean |
通信结果
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
{
"Status": "success"
}
通信结果详细信息
| 数据键 | 说明 | 类型 |
|---|---|---|
| Status | 处理结果 | string |