GameSocket.js 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339
  1. /*-----------------------------------------------
  2. *本文件由代码生成器自动生成,
  3. *千万不要修改本文件的任何代码,
  4. *修改的的任何代码都会被覆盖掉!
  5. --------------------------------------------------*/
  6. var util = require('util');
  7. var Socket = require('Xmds-csharp').Socket;
  8. var BagHandler = require('./bagHandler');
  9. var BattleHandler = require('./battleHandler');
  10. var DailyActivityHandler = require('./dailyActivityHandler');
  11. var EquipHandler = require('./equipHandler');
  12. var GuildMagicMatrixHandler = require('./guildMagicMatrixHandler');
  13. var ItemHandler = require('./itemHandler');
  14. var MessageHandler = require('./messageHandler');
  15. var NpcHandler = require('./npcHandler');
  16. var PetNewHandler = require('./petNewHandler');
  17. var PickLotusAreaHandler = require('./pickLotusAreaHandler');
  18. var PlayerHandler = require('./playerHandler');
  19. var PlayerHandlerExt = require('./playerHandlerExt');
  20. var PrepaidHandler = require('./prepaidHandler');
  21. var ResourceHandler = require('./resourceHandler');
  22. var SkillHandler = require('./skillHandler');
  23. var SkillKeysHandler = require('./skillKeysHandler');
  24. var SkillStrongHandler = require('./skillStrongHandler');
  25. var TaskHandler = require('./taskHandler');
  26. var TeamHandler = require('./teamHandler');
  27. var EntryHandler = require('./entryHandler');
  28. var RoleHandler = require('./roleHandler');
  29. var OpenArtifactHandler = require('./openArtifactHandler');
  30. var PetHandler = require('./petHandler');
  31. var ZhanYaoHandler = require('./zhanYaoHandler');
  32. var GameSocket = function(protoPath){
  33. Socket.call(this,protoPath);
  34. this.bagHandler = new BagHandler(this);
  35. this.battleHandler = new BattleHandler(this);
  36. this.dailyActivityHandler = new DailyActivityHandler(this);
  37. this.equipHandler = new EquipHandler(this);
  38. this.guildMagicMatrixHandler = new GuildMagicMatrixHandler(this);
  39. this.itemHandler = new ItemHandler(this);
  40. this.messageHandler = new MessageHandler(this);
  41. this.npcHandler = new NpcHandler(this);
  42. this.petNewHandler = new PetNewHandler(this);
  43. this.pickLotusAreaHandler = new PickLotusAreaHandler(this);
  44. this.playerHandler = new PlayerHandler(this);
  45. this.playerHandlerExt = new PlayerHandlerExt(this);
  46. this.prepaidHandler = new PrepaidHandler(this);
  47. this.resourceHandler = new ResourceHandler(this);
  48. this.skillHandler = new SkillHandler(this);
  49. this.skillKeysHandler = new SkillKeysHandler(this);
  50. this.skillStrongHandler = new SkillStrongHandler(this);
  51. this.taskHandler = new TaskHandler(this);
  52. this.teamHandler = new TeamHandler(this);
  53. this.entryHandler = new EntryHandler(this);
  54. this.roleHandler = new RoleHandler(this);
  55. this.openArtifactHandler = new OpenArtifactHandler(this);
  56. this.petHandler = new PetHandler(this);
  57. this.zhanYaoHandler = new ZhanYaoHandler(this);
  58. }
  59. util.inherits(GameSocket, Socket);
  60. GameSocket.prototype.onBagItemUpdatePush = function(cb){
  61. this.on('area.bagPush.bagItemUpdatePush',cb);
  62. }
  63. GameSocket.prototype.onBagNewItemPush = function(cb){
  64. this.on('area.bagPush.bagNewItemPush',cb);
  65. }
  66. GameSocket.prototype.onBagNewEquipPush = function(cb){
  67. this.on('area.bagPush.bagNewEquipPush',cb);
  68. }
  69. GameSocket.prototype.onBagGridFullPush = function(cb){
  70. this.on('area.bagPush.bagGridFullPush',cb);
  71. }
  72. GameSocket.prototype.onBagGridNumPush = function(cb){
  73. this.on('area.bagPush.bagGridNumPush',cb);
  74. }
  75. GameSocket.prototype.onBagNewItemFromResFubenPush = function(cb){
  76. this.on('area.bagPush.bagNewItemFromResFubenPush',cb);
  77. }
  78. GameSocket.prototype.onThrowPointItemListPush = function(cb){
  79. this.on('area.battlePush.throwPointItemListPush',cb);
  80. }
  81. GameSocket.prototype.onThrowPointResultPush = function(cb){
  82. this.on('area.battlePush.throwPointResultPush',cb);
  83. }
  84. GameSocket.prototype.onBiddingInfoPush = function(cb){
  85. this.on('area.battlePush.biddingInfoPush',cb);
  86. }
  87. GameSocket.prototype.onFightLevelResultPush = function(cb){
  88. this.on('area.battlePush.fightLevelResultPush',cb);
  89. }
  90. GameSocket.prototype.onItemDropPush = function(cb){
  91. this.on('area.battlePush.itemDropPush',cb);
  92. }
  93. GameSocket.prototype.onSceneNamePush = function(cb){
  94. this.on('area.battlePush.sceneNamePush',cb);
  95. }
  96. GameSocket.prototype.onResourceDungeonResultPush = function(cb){
  97. this.on('area.battlePush.resourceDungeonResultPush',cb);
  98. }
  99. GameSocket.prototype.onDailyActivityScheduleShowPush = function(cb){
  100. this.on('area.dailyActivityPush.dailyActivityScheduleShowPush',cb);
  101. }
  102. GameSocket.prototype.onEquipmentSimplePush = function(cb){
  103. this.on('area.equipPush.equipmentSimplePush',cb);
  104. }
  105. GameSocket.prototype.onEquipInheritPush = function(cb){
  106. this.on('area.equipPush.equipInheritPush',cb);
  107. }
  108. GameSocket.prototype.onEquipStrengthPosPush = function(cb){
  109. this.on('area.equipPush.equipStrengthPosPush',cb);
  110. }
  111. GameSocket.prototype.onOnMagicMatrixActionPush = function(cb){
  112. this.on('area.guildMagicMatrixPush.onMagicMatrixActionPush',cb);
  113. }
  114. GameSocket.prototype.onFishItemPush = function(cb){
  115. this.on('area.itemPush.fishItemPush',cb);
  116. }
  117. GameSocket.prototype.onCountItemChangePush = function(cb){
  118. this.on('area.itemPush.countItemChangePush',cb);
  119. }
  120. GameSocket.prototype.onItemDetailPush = function(cb){
  121. this.on('area.itemPush.itemDetailPush',cb);
  122. }
  123. GameSocket.prototype.onRewardItemPush = function(cb){
  124. this.on('area.itemPush.rewardItemPush',cb);
  125. }
  126. GameSocket.prototype.onOnMessageAddPush = function(cb){
  127. this.on('area.messagePush.onMessageAddPush',cb);
  128. }
  129. GameSocket.prototype.onOnNewPetDetailPush = function(cb){
  130. this.on('area.petNewPush.onNewPetDetailPush',cb);
  131. }
  132. GameSocket.prototype.onPetExpUpdatePush = function(cb){
  133. this.on('area.petNewPush.petExpUpdatePush',cb);
  134. }
  135. GameSocket.prototype.onPetInfoUpdatePush = function(cb){
  136. this.on('area.petNewPush.petInfoUpdatePush',cb);
  137. }
  138. GameSocket.prototype.onCaiLianEndPush = function(cb){
  139. this.on('area.pickLotusAreaPush.caiLianEndPush',cb);
  140. }
  141. GameSocket.prototype.onKillbossInfoPush = function(cb){
  142. this.on('area.pickLotusAreaPush.killbossInfoPush',cb);
  143. }
  144. GameSocket.prototype.onClientConfigPush = function(cb){
  145. this.on('area.playerPush.clientConfigPush',cb);
  146. }
  147. GameSocket.prototype.onBattleEventPush = function(cb){
  148. this.on('area.playerPush.battleEventPush',cb);
  149. }
  150. GameSocket.prototype.onBattleClearPush = function(cb){
  151. this.on('area.playerPush.battleClearPush',cb);
  152. }
  153. GameSocket.prototype.onOnSuperScriptPush = function(cb){
  154. this.on('area.playerPush.onSuperScriptPush',cb);
  155. }
  156. GameSocket.prototype.onChangeAreaPush = function(cb){
  157. this.on('area.playerPush.changeAreaPush',cb);
  158. }
  159. GameSocket.prototype.onPlayerDynamicPush = function(cb){
  160. this.on('area.playerPush.playerDynamicPush',cb);
  161. }
  162. GameSocket.prototype.onPlayerRelivePush = function(cb){
  163. this.on('area.playerPush.playerRelivePush',cb);
  164. }
  165. GameSocket.prototype.onPlayerSaverRebirthPush = function(cb){
  166. this.on('area.playerPush.playerSaverRebirthPush',cb);
  167. }
  168. GameSocket.prototype.onSimulateDropPush = function(cb){
  169. this.on('area.playerPush.simulateDropPush',cb);
  170. }
  171. GameSocket.prototype.onKickPlayerPush = function(cb){
  172. this.on('area.playerPush.kickPlayerPush',cb);
  173. }
  174. GameSocket.prototype.onSuitPropertyUpPush = function(cb){
  175. this.on('area.playerPush.suitPropertyUpPush',cb);
  176. }
  177. GameSocket.prototype.onCommonPropertyPush = function(cb){
  178. this.on('area.playerPush.commonPropertyPush',cb);
  179. }
  180. GameSocket.prototype.onBuffPropertyPush = function(cb){
  181. this.on('area.playerPush.buffPropertyPush',cb);
  182. }
  183. GameSocket.prototype.onPlayerBattleAttributePush = function(cb){
  184. this.on('area.playerPush.playerBattleAttributePush',cb);
  185. }
  186. GameSocket.prototype.onPayGiftStatePush = function(cb){
  187. this.on('area.playerPush.payGiftStatePush',cb);
  188. }
  189. GameSocket.prototype.onPlayerNoticeMsgPush = function(cb){
  190. this.on('area.playerPush.playerNoticeMsgPush',cb);
  191. }
  192. GameSocket.prototype.onPlayerSameMapTransPush = function(cb){
  193. this.on('area.playerPush.playerSameMapTransPush',cb);
  194. }
  195. GameSocket.prototype.onRefrushNewDayPush = function(cb){
  196. this.on('area.playerPushExt.refrushNewDayPush',cb);
  197. }
  198. GameSocket.prototype.onPaySuccessPush = function(cb){
  199. this.on('area.prepaidHandler.paySuccessPush',cb);
  200. }
  201. GameSocket.prototype.onSkillUpdatePush = function(cb){
  202. this.on('area.skillPush.skillUpdatePush',cb);
  203. }
  204. GameSocket.prototype.onSkillKeyUpdatePush = function(cb){
  205. this.on('area.skillKeysPush.skillKeyUpdatePush',cb);
  206. }
  207. GameSocket.prototype.onTaskUpdatePush = function(cb){
  208. this.on('area.taskPush.taskUpdatePush',cb);
  209. }
  210. GameSocket.prototype.onTaskAutoPush = function(cb){
  211. this.on('area.taskPush.taskAutoPush',cb);
  212. }
  213. GameSocket.prototype.onTreasureScenePointPush = function(cb){
  214. this.on('area.taskPush.treasureScenePointPush',cb);
  215. }
  216. GameSocket.prototype.onLoopResultPush = function(cb){
  217. this.on('area.taskPush.loopResultPush',cb);
  218. }
  219. GameSocket.prototype.onGuideTaskPush = function(cb){
  220. this.on('area.taskPush.guideTaskPush',cb);
  221. }
  222. GameSocket.prototype.onOnSummonTeamPush = function(cb){
  223. this.on('area.teamPush.onSummonTeamPush',cb);
  224. }
  225. GameSocket.prototype.onOnTeamUpdatePush = function(cb){
  226. this.on('area.teamPush.onTeamUpdatePush',cb);
  227. }
  228. GameSocket.prototype.onOnTeamMemberUpdatePush = function(cb){
  229. this.on('area.teamPush.onTeamMemberUpdatePush',cb);
  230. }
  231. GameSocket.prototype.onOnTeamTargetPush = function(cb){
  232. this.on('area.teamPush.onTeamTargetPush',cb);
  233. }
  234. GameSocket.prototype.onOnAcrossTeamInfoPush = function(cb){
  235. this.on('area.teamPush.onAcrossTeamInfoPush',cb);
  236. }
  237. GameSocket.prototype.onOnTeamMumberHurtPush = function(cb){
  238. this.on('area.teamPush.onTeamMumberHurtPush',cb);
  239. }
  240. GameSocket.prototype.onOnAppliedPlayersPush = function(cb){
  241. this.on('area.teamPush.onAppliedPlayersPush',cb);
  242. }
  243. GameSocket.prototype.onLoginQueuePush = function(cb){
  244. this.on('connector.entryPush.loginQueuePush',cb);
  245. }
  246. GameSocket.prototype.onHudBuffListPush = function(cb){
  247. this.on('connector.entryPush.hudBuffListPush',cb);
  248. }
  249. GameSocket.prototype.onIsOpenArtifactPush = function(cb){
  250. this.on('openArtifact.openArtifactPush.isOpenArtifactPush',cb);
  251. }
  252. GameSocket.prototype.onAddPetPush = function(cb){
  253. this.on('pet.petPush.addPetPush',cb);
  254. }
  255. GameSocket.prototype.onUpdatePetPush = function(cb){
  256. this.on('pet.petPush.updatePetPush',cb);
  257. }
  258. GameSocket.prototype.onDeletePetPush = function(cb){
  259. this.on('pet.petPush.deletePetPush',cb);
  260. }
  261. GameSocket.prototype.onPlayerYaoQiSharePush = function(cb){
  262. this.on('zhanyao.zhanYaoPush.playerYaoQiSharePush',cb);
  263. }
  264. module.exports = GameSocket;