followerHandler.js 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. /*-----------------------------------------------
  2. *本文件由代码生成器自动生成,
  3. *千万不要修改本文件的任何代码,
  4. *修改的的任何代码都会被覆盖掉!
  5. --------------------------------------------------*/
  6. var async = require('asyncawait/async');
  7. var await = require('asyncawait/await');
  8. var FollowerHandler = function(socket){
  9. this.socket = socket;
  10. }
  11. FollowerHandler.prototype.getFollowerInfoRequest = async(function(){
  12. return await(this.socket.requestAsync('follower.followerHandler.getFollowerInfoRequest',{}));
  13. });
  14. FollowerHandler.prototype.getBattleArrayRequest = async(function(){
  15. return await(this.socket.requestAsync('follower.followerHandler.getBattleArrayRequest',{}));
  16. });
  17. FollowerHandler.prototype.optionFollowerRequest = async(function(optionType,id,itemCode,itemCount,removeIds,followerName,followerSkin,arrayId,followerSkillId){
  18. return await(this.socket.requestAsync('follower.followerHandler.optionFollowerRequest',{optionType:optionType,id:id,itemCode:itemCode,itemCount:itemCount,removeIds:removeIds,followerName:followerName,followerSkin:followerSkin,arrayId:arrayId,followerSkillId:followerSkillId}));
  19. });
  20. FollowerHandler.prototype.optionBattleArrayPointRequest = async(function(optionType,pos,id){
  21. return await(this.socket.requestAsync('follower.followerHandler.optionBattleArrayPointRequest',{optionType:optionType,pos:pos,id:id}));
  22. });
  23. FollowerHandler.prototype.getGourdInfoRequest = async(function(){
  24. return await(this.socket.requestAsync('follower.followerHandler.getGourdInfoRequest',{}));
  25. });
  26. FollowerHandler.prototype.wateringRequest = async(function(wateringType){
  27. return await(this.socket.requestAsync('follower.followerHandler.wateringRequest',{wateringType:wateringType}));
  28. });
  29. FollowerHandler.prototype.pikupGourdRequest = async(function(pos){
  30. return await(this.socket.requestAsync('follower.followerHandler.pikupGourdRequest',{pos:pos}));
  31. });
  32. FollowerHandler.prototype.sexualRequest = async(function(){
  33. return await(this.socket.requestAsync('follower.followerHandler.sexualRequest',{}));
  34. });
  35. FollowerHandler.prototype.buyFollowerGridRequest = async(function(){
  36. return await(this.socket.requestAsync('follower.followerHandler.buyFollowerGridRequest',{}));
  37. });
  38. FollowerHandler.prototype.sexualConfirmApplyRequest = async(function(isAgree){
  39. return await(this.socket.requestAsync('follower.followerHandler.sexualConfirmApplyRequest',{isAgree:isAgree}));
  40. });
  41. FollowerHandler.prototype.receiveSexualFollowerRequest = async(function(){
  42. return await(this.socket.requestAsync('follower.followerHandler.receiveSexualFollowerRequest',{}));
  43. });
  44. FollowerHandler.prototype.onUpdateBattleArrayPush = function(cb){
  45. this.socket.on('follower.followerPush.updateBattleArrayPush',cb);
  46. }
  47. FollowerHandler.prototype.onConfirmPush = function(cb){
  48. this.socket.on('follower.followerPush.confirmPush',cb);
  49. }
  50. FollowerHandler.prototype.onDeletFollowerPush = function(cb){
  51. this.socket.on('follower.followerPush.deletFollowerPush',cb);
  52. }
  53. FollowerHandler.prototype.onAddFollowerPush = function(cb){
  54. this.socket.on('follower.followerPush.addFollowerPush',cb);
  55. }
  56. FollowerHandler.prototype.onChoosePush = function(cb){
  57. this.socket.on('follower.followerPush.choosePush',cb);
  58. }
  59. module.exports = FollowerHandler;