guildBossHandler.js 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*-----------------------------------------------
  2. *本文件由代码生成器自动生成,
  3. *千万不要修改本文件的任何代码,
  4. *修改的的任何代码都会被覆盖掉!
  5. --------------------------------------------------*/
  6. var async = require('asyncawait/async');
  7. var await = require('asyncawait/await');
  8. var GuildBossHandler = function(socket){
  9. this.socket = socket;
  10. }
  11. GuildBossHandler.prototype.enterGuildBossAreaRequest = async(function(){
  12. return await(this.socket.requestAsync('area.guildBossHandler.enterGuildBossAreaRequest',{}));
  13. });
  14. GuildBossHandler.prototype.getGuildBossInfoRequest = async(function(){
  15. return await(this.socket.requestAsync('area.guildBossHandler.getGuildBossInfoRequest',{}));
  16. });
  17. GuildBossHandler.prototype.guildBossInspireRequest = async(function(c2s_index){
  18. return await(this.socket.requestAsync('area.guildBossHandler.guildBossInspireRequest',{c2s_index:c2s_index}));
  19. });
  20. GuildBossHandler.prototype.onOnHurtRankChangePush = function(cb){
  21. this.socket.on('area.guildBossPush.onHurtRankChangePush',cb);
  22. }
  23. GuildBossHandler.prototype.onOnInspireChangePush = function(cb){
  24. this.socket.on('area.guildBossPush.onInspireChangePush',cb);
  25. }
  26. GuildBossHandler.prototype.onOnQuitGuildBossPush = function(cb){
  27. this.socket.on('area.guildBossPush.onQuitGuildBossPush',cb);
  28. }
  29. GuildBossHandler.prototype.onOnEndGuildBossPush = function(cb){
  30. this.socket.on('area.guildBossPush.onEndGuildBossPush',cb);
  31. }
  32. module.exports = GuildBossHandler;