abyssDungeonHandler.js 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*-----------------------------------------------
  2. *本文件由代码生成器自动生成,
  3. *千万不要修改本文件的任何代码,
  4. *修改的的任何代码都会被覆盖掉!
  5. --------------------------------------------------*/
  6. var async = require('asyncawait/async');
  7. var await = require('asyncawait/await');
  8. var AbyssDungeonHandler = function(socket){
  9. this.socket = socket;
  10. }
  11. AbyssDungeonHandler.prototype.abyssDungeonInfoRequest = async(function(){
  12. return await(this.socket.requestAsync('area.abyssDungeonHandler.abyssDungeonInfoRequest',{}));
  13. });
  14. AbyssDungeonHandler.prototype.abyssDungeonDiscardRequest = async(function(index){
  15. return await(this.socket.requestAsync('area.abyssDungeonHandler.abyssDungeonDiscardRequest',{index:index}));
  16. });
  17. AbyssDungeonHandler.prototype.abyssDungeonMatchLessStartRequest = async(function(){
  18. return await(this.socket.requestAsync('area.abyssDungeonHandler.abyssDungeonMatchLessStartRequest',{}));
  19. });
  20. AbyssDungeonHandler.prototype.onAbyssDungeonBossDeadPush = function(cb){
  21. this.socket.on('area.abyssDungeonPush.abyssDungeonBossDeadPush',cb);
  22. }
  23. AbyssDungeonHandler.prototype.onAbyssDungeonEnterPush = function(cb){
  24. this.socket.on('area.abyssDungeonPush.abyssDungeonEnterPush',cb);
  25. }
  26. AbyssDungeonHandler.prototype.onAbyssDungeonSkillChangePush = function(cb){
  27. this.socket.on('area.abyssDungeonPush.abyssDungeonSkillChangePush',cb);
  28. }
  29. AbyssDungeonHandler.prototype.onAbyssDungeonMatchlessPush = function(cb){
  30. this.socket.on('area.abyssDungeonPush.abyssDungeonMatchlessPush',cb);
  31. }
  32. module.exports = AbyssDungeonHandler;