/*----------------------------------------------- *本文件由代码生成器自动生成, *千万不要修改本文件的任何代码, *修改的的任何代码都会被覆盖掉! --------------------------------------------------*/ var async = require('asyncawait/async'); var await = require('asyncawait/await'); var AbyssDungeonHandler = function(socket){ this.socket = socket; } AbyssDungeonHandler.prototype.abyssDungeonInfoRequest = async(function(){ return await(this.socket.requestAsync('area.abyssDungeonHandler.abyssDungeonInfoRequest',{})); }); AbyssDungeonHandler.prototype.abyssDungeonDiscardRequest = async(function(index){ return await(this.socket.requestAsync('area.abyssDungeonHandler.abyssDungeonDiscardRequest',{index:index})); }); AbyssDungeonHandler.prototype.abyssDungeonMatchLessStartRequest = async(function(){ return await(this.socket.requestAsync('area.abyssDungeonHandler.abyssDungeonMatchLessStartRequest',{})); }); AbyssDungeonHandler.prototype.onAbyssDungeonBossDeadPush = function(cb){ this.socket.on('area.abyssDungeonPush.abyssDungeonBossDeadPush',cb); } AbyssDungeonHandler.prototype.onAbyssDungeonEnterPush = function(cb){ this.socket.on('area.abyssDungeonPush.abyssDungeonEnterPush',cb); } AbyssDungeonHandler.prototype.onAbyssDungeonSkillChangePush = function(cb){ this.socket.on('area.abyssDungeonPush.abyssDungeonSkillChangePush',cb); } AbyssDungeonHandler.prototype.onAbyssDungeonMatchlessPush = function(cb){ this.socket.on('area.abyssDungeonPush.abyssDungeonMatchlessPush',cb); } module.exports = AbyssDungeonHandler;