12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- var async = require('asyncawait/async');
- var await = require('asyncawait/await');
- var ZhanYaoHandler = function(socket){
- this.socket = socket;
- }
- ZhanYaoHandler.prototype.getZhanYaoMainDataRequest = async(function(){
- return await(this.socket.requestAsync('zhanyao.zhanYaoHandler.getZhanYaoMainDataRequest',{}));
- });
- ZhanYaoHandler.prototype.upgradeYaoQiLevelRequest = async(function(){
- return await(this.socket.requestAsync('zhanyao.zhanYaoHandler.upgradeYaoQiLevelRequest',{}));
- });
- ZhanYaoHandler.prototype.getTodayZhanYaoAwardRequest = async(function(c2s_awardId){
- return await(this.socket.requestAsync('zhanyao.zhanYaoHandler.getTodayZhanYaoAwardRequest',{c2s_awardId:c2s_awardId}));
- });
- ZhanYaoHandler.prototype.getPlayerShareYaoQiRequest = async(function(c2s_areaId,c2s_itemShareId){
- return await(this.socket.requestAsync('zhanyao.zhanYaoHandler.getPlayerShareYaoQiRequest',{c2s_areaId:c2s_areaId,c2s_itemShareId:c2s_itemShareId}));
- });
- ZhanYaoHandler.prototype.zhanyaoLotteryRequest = async(function(){
- return await(this.socket.requestAsync('zhanyao.zhanYaoHandler.zhanyaoLotteryRequest',{}));
- });
- ZhanYaoHandler.prototype.receiveZhanyaoRewardBoxRequest = async(function(){
- return await(this.socket.requestAsync('zhanyao.zhanYaoHandler.receiveZhanyaoRewardBoxRequest',{}));
- });
- ZhanYaoHandler.prototype.searchDemonRequest = async(function(){
- return await(this.socket.requestAsync('zhanyao.zhanYaoHandler.searchDemonRequest',{}));
- });
- ZhanYaoHandler.prototype.upgradeGourdRequest = async(function(opType){
- return await(this.socket.requestAsync('zhanyao.zhanYaoHandler.upgradeGourdRequest',{opType:opType}));
- });
- ZhanYaoHandler.prototype.clearSearchDemonFlagRequest = async(function(){
- return await(this.socket.requestAsync('zhanyao.zhanYaoHandler.clearSearchDemonFlagRequest',{}));
- });
- ZhanYaoHandler.prototype.soulLampRequest = async(function(){
- return await(this.socket.requestAsync('zhanyao.zhanYaoHandler.soulLampRequest',{}));
- });
- ZhanYaoHandler.prototype.getStoryAwardRequest = async(function(memoriesId){
- return await(this.socket.requestAsync('zhanyao.zhanYaoHandler.getStoryAwardRequest',{memoriesId:memoriesId}));
- });
- ZhanYaoHandler.prototype.mosaicSoulBallRequest = async(function(skillId,pos){
- return await(this.socket.requestAsync('zhanyao.zhanYaoHandler.mosaicSoulBallRequest',{skillId:skillId,pos:pos}));
- });
- ZhanYaoHandler.prototype.switchSkillRequest = async(function(){
- return await(this.socket.requestAsync('zhanyao.zhanYaoHandler.switchSkillRequest',{}));
- });
- ZhanYaoHandler.prototype.upgradeYaojueSkillRequest = async(function(){
- return await(this.socket.requestAsync('zhanyao.zhanYaoHandler.upgradeYaojueSkillRequest',{}));
- });
- ZhanYaoHandler.prototype.alchemyRequest = async(function(destId,chooseItem){
- return await(this.socket.requestAsync('zhanyao.zhanYaoHandler.alchemyRequest',{destId:destId,chooseItem:chooseItem}));
- });
- ZhanYaoHandler.prototype.receiveAlchemyItemRequest = async(function(index){
- return await(this.socket.requestAsync('zhanyao.zhanYaoHandler.receiveAlchemyItemRequest',{index:index}));
- });
- ZhanYaoHandler.prototype.removeSoulBallRequest = async(function(skillId,pos){
- return await(this.socket.requestAsync('zhanyao.zhanYaoHandler.removeSoulBallRequest',{skillId:skillId,pos:pos}));
- });
- ZhanYaoHandler.prototype.onPlayerYaoQiSharePush = function(cb){
- this.socket.on('zhanyao.zhanYaoPush.playerYaoQiSharePush',cb);
- }
- module.exports = ZhanYaoHandler;
|