weekendStarDungeonHandler.js 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*-----------------------------------------------
  2. *本文件由代码生成器自动生成,
  3. *千万不要修改本文件的任何代码,
  4. *修改的的任何代码都会被覆盖掉!
  5. --------------------------------------------------*/
  6. var async = require('asyncawait/async');
  7. var await = require('asyncawait/await');
  8. var WeekendStarDungeonHandler = function(socket){
  9. this.socket = socket;
  10. }
  11. WeekendStarDungeonHandler.prototype.weekendStarDungeonEnterNpcRequest = async(function(){
  12. return await(this.socket.requestAsync('area.weekendStarDungeonHandler.weekendStarDungeonEnterNpcRequest',{}));
  13. });
  14. WeekendStarDungeonHandler.prototype.weekendStarDungeonRecvRequest = async(function(s2c_id){
  15. return await(this.socket.requestAsync('area.weekendStarDungeonHandler.weekendStarDungeonRecvRequest',{s2c_id:s2c_id}));
  16. });
  17. WeekendStarDungeonHandler.prototype.weekendStarDungeonSelectTypeRequest = async(function(){
  18. return await(this.socket.requestAsync('area.weekendStarDungeonHandler.weekendStarDungeonSelectTypeRequest',{}));
  19. });
  20. WeekendStarDungeonHandler.prototype.weekendStarDungeonRecvListRequest = async(function(){
  21. return await(this.socket.requestAsync('area.weekendStarDungeonHandler.weekendStarDungeonRecvListRequest',{}));
  22. });
  23. WeekendStarDungeonHandler.prototype.onOnWeekendStarDungeonEnterNumPush = function(cb){
  24. this.socket.on('area.weekendStarDungeonPush.onWeekendStarDungeonEnterNumPush',cb);
  25. }
  26. WeekendStarDungeonHandler.prototype.onOnWeekendStarDungeonBossOrderPush = function(cb){
  27. this.socket.on('area.weekendStarDungeonPush.onWeekendStarDungeonBossOrderPush',cb);
  28. }
  29. WeekendStarDungeonHandler.prototype.onOnWeekendStarDungeonRankChangePush = function(cb){
  30. this.socket.on('area.weekendStarDungeonPush.onWeekendStarDungeonRankChangePush',cb);
  31. }
  32. module.exports = WeekendStarDungeonHandler;