five2FiveHandler.js 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. /*-----------------------------------------------
  2. *本文件由代码生成器自动生成,
  3. *千万不要修改本文件的任何代码,
  4. *修改的的任何代码都会被覆盖掉!
  5. --------------------------------------------------*/
  6. var async = require('asyncawait/async');
  7. var await = require('asyncawait/await');
  8. var Five2FiveHandler = function(socket){
  9. this.socket = socket;
  10. }
  11. Five2FiveHandler.prototype.five2FiveRequest = async(function(){
  12. return await(this.socket.requestAsync('five2five.five2FiveHandler.five2FiveRequest',{}));
  13. });
  14. Five2FiveHandler.prototype.five2FiveLookBtlReportRequest = async(function(){
  15. return await(this.socket.requestAsync('five2five.five2FiveHandler.five2FiveLookBtlReportRequest',{}));
  16. });
  17. Five2FiveHandler.prototype.five2FiveMatchRequest = async(function(matchOrReMatch){
  18. return await(this.socket.requestAsync('five2five.five2FiveHandler.five2FiveMatchRequest',{matchOrReMatch:matchOrReMatch}));
  19. });
  20. Five2FiveHandler.prototype.five2FiveRefuseMatchRequest = async(function(){
  21. return await(this.socket.requestAsync('five2five.five2FiveHandler.five2FiveRefuseMatchRequest',{}));
  22. });
  23. Five2FiveHandler.prototype.five2FiveAgreeMatchRequest = async(function(){
  24. return await(this.socket.requestAsync('five2five.five2FiveHandler.five2FiveAgreeMatchRequest',{}));
  25. });
  26. Five2FiveHandler.prototype.five2FiveCancelMatchRequest = async(function(){
  27. return await(this.socket.requestAsync('five2five.five2FiveHandler.five2FiveCancelMatchRequest',{}));
  28. });
  29. Five2FiveHandler.prototype.five2FiveReadyRequest = async(function(tempTeamId){
  30. return await(this.socket.requestAsync('five2five.five2FiveHandler.five2FiveReadyRequest',{tempTeamId:tempTeamId}));
  31. });
  32. Five2FiveHandler.prototype.five2FiveLeaveAreaRequest = async(function(){
  33. return await(this.socket.requestAsync('five2five.five2FiveHandler.five2FiveLeaveAreaRequest',{}));
  34. });
  35. Five2FiveHandler.prototype.five2FiveReciveRewardRequest = async(function(){
  36. return await(this.socket.requestAsync('five2five.five2FiveHandler.five2FiveReciveRewardRequest',{}));
  37. });
  38. Five2FiveHandler.prototype.five2FiveLookMatchResultRequest = async(function(instanceId){
  39. return await(this.socket.requestAsync('five2five.five2FiveHandler.five2FiveLookMatchResultRequest',{instanceId:instanceId}));
  40. });
  41. Five2FiveHandler.prototype.five2FiveShardMatchResultRequest = async(function(instanceId){
  42. return await(this.socket.requestAsync('five2five.five2FiveHandler.five2FiveShardMatchResultRequest',{instanceId:instanceId}));
  43. });
  44. Five2FiveHandler.prototype.onFive2FiveApplyMatchPush = function(cb){
  45. this.socket.on('five2five.five2FivePush.five2FiveApplyMatchPush',cb);
  46. }
  47. Five2FiveHandler.prototype.onFive2FiveMatchMemberInfoPush = function(cb){
  48. this.socket.on('five2five.five2FivePush.five2FiveMatchMemberInfoPush',cb);
  49. }
  50. Five2FiveHandler.prototype.onFive2FiveMemberChoicePush = function(cb){
  51. this.socket.on('five2five.five2FivePush.five2FiveMemberChoicePush',cb);
  52. }
  53. Five2FiveHandler.prototype.onFive2FiveOnGameEndPush = function(cb){
  54. this.socket.on('five2five.five2FivePush.five2FiveOnGameEndPush',cb);
  55. }
  56. Five2FiveHandler.prototype.onFive2FiveOnNewRewardPush = function(cb){
  57. this.socket.on('five2five.five2FivePush.five2FiveOnNewRewardPush',cb);
  58. }
  59. Five2FiveHandler.prototype.onFive2FiveOnNoRewardPush = function(cb){
  60. this.socket.on('five2five.five2FivePush.five2FiveOnNoRewardPush',cb);
  61. }
  62. Five2FiveHandler.prototype.onFive2FiveMatchFailedPush = function(cb){
  63. this.socket.on('five2five.five2FivePush.five2FiveMatchFailedPush',cb);
  64. }
  65. Five2FiveHandler.prototype.onFive2FiveLeaderCancelMatchPush = function(cb){
  66. this.socket.on('five2five.five2FivePush.five2FiveLeaderCancelMatchPush',cb);
  67. }
  68. Five2FiveHandler.prototype.onFive2FiveTeamChangePush = function(cb){
  69. this.socket.on('five2five.five2FivePush.five2FiveTeamChangePush',cb);
  70. }
  71. Five2FiveHandler.prototype.onFive2FiveMatchPoolChangePush = function(cb){
  72. this.socket.on('five2five.five2FivePush.five2FiveMatchPoolChangePush',cb);
  73. }
  74. Five2FiveHandler.prototype.onFive2FiveApplyMatchResultPush = function(cb){
  75. this.socket.on('five2five.five2FivePush.five2FiveApplyMatchResultPush',cb);
  76. }
  77. module.exports = Five2FiveHandler;