zhanYaoHandler.js 3.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. /*-----------------------------------------------
  2. *本文件由代码生成器自动生成,
  3. *千万不要修改本文件的任何代码,
  4. *修改的的任何代码都会被覆盖掉!
  5. --------------------------------------------------*/
  6. var async = require('asyncawait/async');
  7. var await = require('asyncawait/await');
  8. var ZhanYaoHandler = function(socket){
  9. this.socket = socket;
  10. }
  11. ZhanYaoHandler.prototype.getZhanYaoMainDataRequest = async(function(){
  12. return await(this.socket.requestAsync('zhanyao.zhanYaoHandler.getZhanYaoMainDataRequest',{}));
  13. });
  14. ZhanYaoHandler.prototype.upgradeYaoQiLevelRequest = async(function(){
  15. return await(this.socket.requestAsync('zhanyao.zhanYaoHandler.upgradeYaoQiLevelRequest',{}));
  16. });
  17. ZhanYaoHandler.prototype.getTodayZhanYaoAwardRequest = async(function(c2s_awardId){
  18. return await(this.socket.requestAsync('zhanyao.zhanYaoHandler.getTodayZhanYaoAwardRequest',{c2s_awardId:c2s_awardId}));
  19. });
  20. ZhanYaoHandler.prototype.getPlayerShareYaoQiRequest = async(function(c2s_areaId,c2s_itemShareId){
  21. return await(this.socket.requestAsync('zhanyao.zhanYaoHandler.getPlayerShareYaoQiRequest',{c2s_areaId:c2s_areaId,c2s_itemShareId:c2s_itemShareId}));
  22. });
  23. ZhanYaoHandler.prototype.zhanyaoLotteryRequest = async(function(){
  24. return await(this.socket.requestAsync('zhanyao.zhanYaoHandler.zhanyaoLotteryRequest',{}));
  25. });
  26. ZhanYaoHandler.prototype.receiveZhanyaoRewardBoxRequest = async(function(){
  27. return await(this.socket.requestAsync('zhanyao.zhanYaoHandler.receiveZhanyaoRewardBoxRequest',{}));
  28. });
  29. ZhanYaoHandler.prototype.searchDemonRequest = async(function(){
  30. return await(this.socket.requestAsync('zhanyao.zhanYaoHandler.searchDemonRequest',{}));
  31. });
  32. ZhanYaoHandler.prototype.upgradeGourdRequest = async(function(opType){
  33. return await(this.socket.requestAsync('zhanyao.zhanYaoHandler.upgradeGourdRequest',{opType:opType}));
  34. });
  35. ZhanYaoHandler.prototype.clearSearchDemonFlagRequest = async(function(){
  36. return await(this.socket.requestAsync('zhanyao.zhanYaoHandler.clearSearchDemonFlagRequest',{}));
  37. });
  38. ZhanYaoHandler.prototype.soulLampRequest = async(function(){
  39. return await(this.socket.requestAsync('zhanyao.zhanYaoHandler.soulLampRequest',{}));
  40. });
  41. ZhanYaoHandler.prototype.getStoryAwardRequest = async(function(memoriesId){
  42. return await(this.socket.requestAsync('zhanyao.zhanYaoHandler.getStoryAwardRequest',{memoriesId:memoriesId}));
  43. });
  44. ZhanYaoHandler.prototype.mosaicSoulBallRequest = async(function(skillId,pos){
  45. return await(this.socket.requestAsync('zhanyao.zhanYaoHandler.mosaicSoulBallRequest',{skillId:skillId,pos:pos}));
  46. });
  47. ZhanYaoHandler.prototype.switchSkillRequest = async(function(){
  48. return await(this.socket.requestAsync('zhanyao.zhanYaoHandler.switchSkillRequest',{}));
  49. });
  50. ZhanYaoHandler.prototype.upgradeYaojueSkillRequest = async(function(){
  51. return await(this.socket.requestAsync('zhanyao.zhanYaoHandler.upgradeYaojueSkillRequest',{}));
  52. });
  53. ZhanYaoHandler.prototype.alchemyRequest = async(function(destId,chooseItem){
  54. return await(this.socket.requestAsync('zhanyao.zhanYaoHandler.alchemyRequest',{destId:destId,chooseItem:chooseItem}));
  55. });
  56. ZhanYaoHandler.prototype.receiveAlchemyItemRequest = async(function(index){
  57. return await(this.socket.requestAsync('zhanyao.zhanYaoHandler.receiveAlchemyItemRequest',{index:index}));
  58. });
  59. ZhanYaoHandler.prototype.removeSoulBallRequest = async(function(skillId,pos){
  60. return await(this.socket.requestAsync('zhanyao.zhanYaoHandler.removeSoulBallRequest',{skillId:skillId,pos:pos}));
  61. });
  62. ZhanYaoHandler.prototype.onPlayerYaoQiSharePush = function(cb){
  63. this.socket.on('zhanyao.zhanYaoPush.playerYaoQiSharePush',cb);
  64. }
  65. module.exports = ZhanYaoHandler;