tencentcloud-sdk-nodejs
Version:
88 lines (80 loc) • 3.27 kB
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.Client = void 0;
/* eslint-disable @typescript-eslint/no-unused-vars */
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
const abstract_client_1 = require("../../../common/abstract_client");
/**
* mgobe client
* @class
*/
class Client extends abstract_client_1.AbstractClient {
constructor(clientConfig) {
super("mgobe.tencentcloudapi.com", "2020-10-14", clientConfig);
}
/**
* 此接口无法使用,游戏联机对战引擎MGOBE已于6.1正式下架,感谢您的支持
该接口用于查询玩家信息。支持两种用法,当OpenId不传的时候,PlayerId必传,传入PlayerId可以查询当前PlayerId的玩家信息,当OpenId传入的时候,PlayerId可不传,按照OpenId查询玩家信息。
*/
async DescribePlayer(req, cb) {
return this.request("DescribePlayer", req, cb);
}
/**
* 此接口无法使用,游戏联机对战引擎MGOBE已于6.1正式下架,感谢您的支持
修改玩家自定义状态
*/
async ChangeRoomPlayerStatus(req, cb) {
return this.request("ChangeRoomPlayerStatus", req, cb);
}
/**
* 此接口无法使用,游戏联机对战引擎MGOBE已于6.1正式下架,感谢您的支持
修改房间
*/
async ModifyRoom(req, cb) {
return this.request("ModifyRoom", req, cb);
}
/**
* 此接口无法使用,游戏联机对战引擎MGOBE已于6.1正式下架,感谢您的支持
踢出房间玩家
*/
async RemoveRoomPlayer(req, cb) {
return this.request("RemoveRoomPlayer", req, cb);
}
/**
* 此接口无法使用,游戏联机对战引擎MGOBE已于6.1正式下架,感谢您的支持
该接口用于查询房间信息。支持两种用法,当房间Id不传的时候,玩家Id必传,传入玩家Id可以查询当前玩家所在的房间信息,当房间Id传入的时候,玩家Id可不传,按照房间Id查询房间信息。
*/
async DescribeRoom(req, cb) {
return this.request("DescribeRoom", req, cb);
}
/**
* 此接口无法使用,游戏联机对战引擎MGOBE已于6.1正式下架,感谢您的支持
修改房间玩家自定义属性
*/
async ChangeRoomPlayerProfile(req, cb) {
return this.request("ChangeRoomPlayerProfile", req, cb);
}
/**
* 此接口无法使用,游戏联机对战引擎MGOBE已于6.1正式下架,感谢您的支持
通过game_id、room_id解散房间
*/
async DismissRoom(req, cb) {
return this.request("DismissRoom", req, cb);
}
}
exports.Client = Client;
;