GameSocket.cs 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564
  1. /*-----------------------------------------------
  2. *本文件由代码生成器自动生成,
  3. *千万不要修改本文件的任何代码,
  4. *修改的的任何代码都会被覆盖掉!
  5. --------------------------------------------------*/
  6. using System.IO;
  7. using System;
  8. using System.Collections.Generic;
  9. using System.Linq;
  10. using System.Text;
  11. using Pomelo.DotNetClient;
  12. using pomelo.area;
  13. using pomelo.connector;
  14. using pomelo.openArtifact;
  15. using pomelo.pet;
  16. using pomelo.zhanyao;
  17. namespace Pomelo.DotNetClient
  18. {
  19. public class GameSocket : PomeloClient
  20. {
  21. private BagHandler _bagHandler;
  22. private BattleHandler _battleHandler;
  23. private DailyActivityHandler _dailyActivityHandler;
  24. private EquipHandler _equipHandler;
  25. private GuildMagicMatrixHandler _guildMagicMatrixHandler;
  26. private ItemHandler _itemHandler;
  27. private MessageHandler _messageHandler;
  28. private NpcHandler _npcHandler;
  29. private PetNewHandler _petNewHandler;
  30. private PickLotusAreaHandler _pickLotusAreaHandler;
  31. private PlayerHandler _playerHandler;
  32. private PlayerHandlerExt _playerHandlerExt;
  33. private PrepaidHandler _prepaidHandler;
  34. private ResourceHandler _resourceHandler;
  35. private SkillHandler _skillHandler;
  36. private SkillKeysHandler _skillKeysHandler;
  37. private SkillStrongHandler _skillStrongHandler;
  38. private TaskHandler _taskHandler;
  39. private TeamHandler _teamHandler;
  40. private EntryHandler _entryHandler;
  41. private RoleHandler _roleHandler;
  42. private OpenArtifactHandler _openArtifactHandler;
  43. private PetHandler _petHandler;
  44. private ZhanYaoHandler _zhanYaoHandler;
  45. public BagHandler bagHandler
  46. {
  47. get { return _bagHandler;}
  48. set { _bagHandler = value; }
  49. }
  50. public BattleHandler battleHandler
  51. {
  52. get { return _battleHandler;}
  53. set { _battleHandler = value; }
  54. }
  55. public DailyActivityHandler dailyActivityHandler
  56. {
  57. get { return _dailyActivityHandler;}
  58. set { _dailyActivityHandler = value; }
  59. }
  60. public EquipHandler equipHandler
  61. {
  62. get { return _equipHandler;}
  63. set { _equipHandler = value; }
  64. }
  65. public GuildMagicMatrixHandler guildMagicMatrixHandler
  66. {
  67. get { return _guildMagicMatrixHandler;}
  68. set { _guildMagicMatrixHandler = value; }
  69. }
  70. public ItemHandler itemHandler
  71. {
  72. get { return _itemHandler;}
  73. set { _itemHandler = value; }
  74. }
  75. public MessageHandler messageHandler
  76. {
  77. get { return _messageHandler;}
  78. set { _messageHandler = value; }
  79. }
  80. public NpcHandler npcHandler
  81. {
  82. get { return _npcHandler;}
  83. set { _npcHandler = value; }
  84. }
  85. public PetNewHandler petNewHandler
  86. {
  87. get { return _petNewHandler;}
  88. set { _petNewHandler = value; }
  89. }
  90. public PickLotusAreaHandler pickLotusAreaHandler
  91. {
  92. get { return _pickLotusAreaHandler;}
  93. set { _pickLotusAreaHandler = value; }
  94. }
  95. public PlayerHandler playerHandler
  96. {
  97. get { return _playerHandler;}
  98. set { _playerHandler = value; }
  99. }
  100. public PlayerHandlerExt playerHandlerExt
  101. {
  102. get { return _playerHandlerExt;}
  103. set { _playerHandlerExt = value; }
  104. }
  105. public PrepaidHandler prepaidHandler
  106. {
  107. get { return _prepaidHandler;}
  108. set { _prepaidHandler = value; }
  109. }
  110. public ResourceHandler resourceHandler
  111. {
  112. get { return _resourceHandler;}
  113. set { _resourceHandler = value; }
  114. }
  115. public SkillHandler skillHandler
  116. {
  117. get { return _skillHandler;}
  118. set { _skillHandler = value; }
  119. }
  120. public SkillKeysHandler skillKeysHandler
  121. {
  122. get { return _skillKeysHandler;}
  123. set { _skillKeysHandler = value; }
  124. }
  125. public SkillStrongHandler skillStrongHandler
  126. {
  127. get { return _skillStrongHandler;}
  128. set { _skillStrongHandler = value; }
  129. }
  130. public TaskHandler taskHandler
  131. {
  132. get { return _taskHandler;}
  133. set { _taskHandler = value; }
  134. }
  135. public TeamHandler teamHandler
  136. {
  137. get { return _teamHandler;}
  138. set { _teamHandler = value; }
  139. }
  140. public EntryHandler entryHandler
  141. {
  142. get { return _entryHandler;}
  143. set { _entryHandler = value; }
  144. }
  145. public RoleHandler roleHandler
  146. {
  147. get { return _roleHandler;}
  148. set { _roleHandler = value; }
  149. }
  150. public OpenArtifactHandler openArtifactHandler
  151. {
  152. get { return _openArtifactHandler;}
  153. set { _openArtifactHandler = value; }
  154. }
  155. public PetHandler petHandler
  156. {
  157. get { return _petHandler;}
  158. set { _petHandler = value; }
  159. }
  160. public ZhanYaoHandler zhanYaoHandler
  161. {
  162. get { return _zhanYaoHandler;}
  163. set { _zhanYaoHandler = value; }
  164. }
  165. public GameSocket(ISerializer serializer) : base(serializer)
  166. {
  167. _bagHandler = new BagHandler(this);
  168. _battleHandler = new BattleHandler(this);
  169. _dailyActivityHandler = new DailyActivityHandler(this);
  170. _equipHandler = new EquipHandler(this);
  171. _guildMagicMatrixHandler = new GuildMagicMatrixHandler(this);
  172. _itemHandler = new ItemHandler(this);
  173. _messageHandler = new MessageHandler(this);
  174. _npcHandler = new NpcHandler(this);
  175. _petNewHandler = new PetNewHandler(this);
  176. _pickLotusAreaHandler = new PickLotusAreaHandler(this);
  177. _playerHandler = new PlayerHandler(this);
  178. _playerHandlerExt = new PlayerHandlerExt(this);
  179. _prepaidHandler = new PrepaidHandler(this);
  180. _resourceHandler = new ResourceHandler(this);
  181. _skillHandler = new SkillHandler(this);
  182. _skillKeysHandler = new SkillKeysHandler(this);
  183. _skillStrongHandler = new SkillStrongHandler(this);
  184. _taskHandler = new TaskHandler(this);
  185. _teamHandler = new TeamHandler(this);
  186. _entryHandler = new EntryHandler(this);
  187. _roleHandler = new RoleHandler(this);
  188. _openArtifactHandler = new OpenArtifactHandler(this);
  189. _petHandler = new PetHandler(this);
  190. _zhanYaoHandler = new ZhanYaoHandler(this);
  191. }
  192. public void onBagItemUpdatePush(Action<BagItemUpdatePush> cb)
  193. {
  194. _bagHandler.onBagItemUpdatePush(cb);
  195. }
  196. public void onBagNewItemPush(Action<BagNewItemPush> cb)
  197. {
  198. _bagHandler.onBagNewItemPush(cb);
  199. }
  200. public void onBagNewEquipPush(Action<BagNewEquipPush> cb)
  201. {
  202. _bagHandler.onBagNewEquipPush(cb);
  203. }
  204. public void onBagGridFullPush(Action<BagGridFullPush> cb)
  205. {
  206. _bagHandler.onBagGridFullPush(cb);
  207. }
  208. public void onBagGridNumPush(Action<BagGridNumPush> cb)
  209. {
  210. _bagHandler.onBagGridNumPush(cb);
  211. }
  212. public void onBagNewItemFromResFubenPush(Action<BagNewItemFromResFubenPush> cb)
  213. {
  214. _bagHandler.onBagNewItemFromResFubenPush(cb);
  215. }
  216. public void onThrowPointItemListPush(Action<ThrowPointItemListPush> cb)
  217. {
  218. _battleHandler.onThrowPointItemListPush(cb);
  219. }
  220. public void onThrowPointResultPush(Action<ThrowPointResultPush> cb)
  221. {
  222. _battleHandler.onThrowPointResultPush(cb);
  223. }
  224. public void onBiddingInfoPush(Action<BiddingInfoPush> cb)
  225. {
  226. _battleHandler.onBiddingInfoPush(cb);
  227. }
  228. public void onFightLevelResultPush(Action<FightLevelResultPush> cb)
  229. {
  230. _battleHandler.onFightLevelResultPush(cb);
  231. }
  232. public void onItemDropPush(Action<ItemDropPush> cb)
  233. {
  234. _battleHandler.onItemDropPush(cb);
  235. }
  236. public void onSceneNamePush(Action<SceneNamePush> cb)
  237. {
  238. _battleHandler.onSceneNamePush(cb);
  239. }
  240. public void onResourceDungeonResultPush(Action<ResourceDungeonResultPush> cb)
  241. {
  242. _battleHandler.onResourceDungeonResultPush(cb);
  243. }
  244. public void onDailyActivityScheduleShowPush(Action<DailyActivityScheduleShowPush> cb)
  245. {
  246. _dailyActivityHandler.onDailyActivityScheduleShowPush(cb);
  247. }
  248. public void onEquipmentSimplePush(Action<EquipmentSimplePush> cb)
  249. {
  250. _equipHandler.onEquipmentSimplePush(cb);
  251. }
  252. public void onEquipInheritPush(Action<EquipInheritPush> cb)
  253. {
  254. _equipHandler.onEquipInheritPush(cb);
  255. }
  256. public void onEquipStrengthPosPush(Action<StrengthPosPush> cb)
  257. {
  258. _equipHandler.onEquipStrengthPosPush(cb);
  259. }
  260. public void onMagicMatrixActionPush(Action<OnMagicMatrixActionPush> cb)
  261. {
  262. _guildMagicMatrixHandler.onMagicMatrixActionPush(cb);
  263. }
  264. public void onFishItemPush(Action<FishItemPush> cb)
  265. {
  266. _itemHandler.onFishItemPush(cb);
  267. }
  268. public void onCountItemChangePush(Action<CountItemChangePush> cb)
  269. {
  270. _itemHandler.onCountItemChangePush(cb);
  271. }
  272. public void onItemDetailPush(Action<ItemDetailPush> cb)
  273. {
  274. _itemHandler.onItemDetailPush(cb);
  275. }
  276. public void onRewardItemPush(Action<RewardItemPush> cb)
  277. {
  278. _itemHandler.onRewardItemPush(cb);
  279. }
  280. public void onMessageAddPush(Action<OnMessageAddPush> cb)
  281. {
  282. _messageHandler.onMessageAddPush(cb);
  283. }
  284. public void onNewPetDetailPush(Action<OnNewPetDetailPush> cb)
  285. {
  286. _petNewHandler.onNewPetDetailPush(cb);
  287. }
  288. public void onPetExpUpdatePush(Action<PetExpUpdatePush> cb)
  289. {
  290. _petNewHandler.onPetExpUpdatePush(cb);
  291. }
  292. public void onPetInfoUpdatePush(Action<PetInfoUpdatePush> cb)
  293. {
  294. _petNewHandler.onPetInfoUpdatePush(cb);
  295. }
  296. public void onCaiLianEndPush(Action<CaiLianEndPush> cb)
  297. {
  298. _pickLotusAreaHandler.onCaiLianEndPush(cb);
  299. }
  300. public void onKillbossInfoPush(Action<KillbossInfoPush> cb)
  301. {
  302. _pickLotusAreaHandler.onKillbossInfoPush(cb);
  303. }
  304. public void onClientConfigPush(Action<ClientConfigPush> cb)
  305. {
  306. _playerHandler.onClientConfigPush(cb);
  307. }
  308. public void onBattleEventPush(Action<BattleEventPush> cb)
  309. {
  310. _playerHandler.onBattleEventPush(cb);
  311. }
  312. public void onBattleClearPush(Action<BattleClearPush> cb)
  313. {
  314. _playerHandler.onBattleClearPush(cb);
  315. }
  316. public void onSuperScriptPush(Action<SuperScriptPush> cb)
  317. {
  318. _playerHandler.onSuperScriptPush(cb);
  319. }
  320. public void onChangeAreaPush(Action<ChangeAreaPush> cb)
  321. {
  322. _playerHandler.onChangeAreaPush(cb);
  323. }
  324. public void onPlayerDynamicPush(Action<PlayerDynamicPush> cb)
  325. {
  326. _playerHandler.onPlayerDynamicPush(cb);
  327. }
  328. public void onPlayerRelivePush(Action<PlayerRelivePush> cb)
  329. {
  330. _playerHandler.onPlayerRelivePush(cb);
  331. }
  332. public void onPlayerSaverRebirthPush(Action<PlayerSaverRebirthPush> cb)
  333. {
  334. _playerHandler.onPlayerSaverRebirthPush(cb);
  335. }
  336. public void onSimulateDropPush(Action<SimulateDataPush> cb)
  337. {
  338. _playerHandler.onSimulateDropPush(cb);
  339. }
  340. public void onKickPlayerPush(Action<KickPlayerPush> cb)
  341. {
  342. _playerHandler.onKickPlayerPush(cb);
  343. }
  344. public void onSuitPropertyUpPush(Action<SuitPropertyUpPush> cb)
  345. {
  346. _playerHandler.onSuitPropertyUpPush(cb);
  347. }
  348. public void onCommonPropertyPush(Action<CommonPropertyPush> cb)
  349. {
  350. _playerHandler.onCommonPropertyPush(cb);
  351. }
  352. public void onBuffPropertyPush(Action<BuffPropertyPush> cb)
  353. {
  354. _playerHandler.onBuffPropertyPush(cb);
  355. }
  356. public void onPlayerBattleAttributePush(Action<PlayerBattleAttributePush> cb)
  357. {
  358. _playerHandler.onPlayerBattleAttributePush(cb);
  359. }
  360. public void onPayGiftStatePush(Action<PayGiftStatePush> cb)
  361. {
  362. _playerHandler.onPayGiftStatePush(cb);
  363. }
  364. public void onPlayerNoticeMsgPush(Action<PlayerNoticeMsgPush> cb)
  365. {
  366. _playerHandler.onPlayerNoticeMsgPush(cb);
  367. }
  368. public void onPlayerSameMapTransPush(Action<PlayerSameMapTransPush> cb)
  369. {
  370. _playerHandler.onPlayerSameMapTransPush(cb);
  371. }
  372. public void onRefrushNewDayPush(Action<RefrushNewDayPush> cb)
  373. {
  374. _playerHandlerExt.onRefrushNewDayPush(cb);
  375. }
  376. public void onPaySuccessPush(Action<PaySuccessPush> cb)
  377. {
  378. _prepaidHandler.onPaySuccessPush(cb);
  379. }
  380. public void onSkillUpdatePush(Action<SkillUpdatePush> cb)
  381. {
  382. _skillHandler.onSkillUpdatePush(cb);
  383. }
  384. public void onSkillKeyUpdatePush(Action<SkillKeyUpdatePush> cb)
  385. {
  386. _skillKeysHandler.onSkillKeyUpdatePush(cb);
  387. }
  388. public void onTaskUpdatePush(Action<TaskUpdatePush> cb)
  389. {
  390. _taskHandler.onTaskUpdatePush(cb);
  391. }
  392. public void onTaskAutoPush(Action<TaskAutoPush> cb)
  393. {
  394. _taskHandler.onTaskAutoPush(cb);
  395. }
  396. public void onTreasureScenePointPush(Action<TreasureScenePointPush> cb)
  397. {
  398. _taskHandler.onTreasureScenePointPush(cb);
  399. }
  400. public void onLoopResultPush(Action<LoopResultPush> cb)
  401. {
  402. _taskHandler.onLoopResultPush(cb);
  403. }
  404. public void onGuideTaskPush(Action<GuideTaskPush> cb)
  405. {
  406. _taskHandler.onGuideTaskPush(cb);
  407. }
  408. public void onSummonTeamPush(Action<OnSummonTeamPush> cb)
  409. {
  410. _teamHandler.onSummonTeamPush(cb);
  411. }
  412. public void onTeamUpdatePush(Action<OnTeamUpdatePush> cb)
  413. {
  414. _teamHandler.onTeamUpdatePush(cb);
  415. }
  416. public void onTeamMemberUpdatePush(Action<OnTeamMemberUpdatePush> cb)
  417. {
  418. _teamHandler.onTeamMemberUpdatePush(cb);
  419. }
  420. public void onTeamTargetPush(Action<OnTeamTargetPush> cb)
  421. {
  422. _teamHandler.onTeamTargetPush(cb);
  423. }
  424. public void onAcrossTeamInfoPush(Action<OnAcrossTeamInfoPush> cb)
  425. {
  426. _teamHandler.onAcrossTeamInfoPush(cb);
  427. }
  428. public void onTeamMumberHurtPush(Action<OnTeamMumberHurtPush> cb)
  429. {
  430. _teamHandler.onTeamMumberHurtPush(cb);
  431. }
  432. public void onAppliedPlayersPush(Action<OnAppliedPlayersPush> cb)
  433. {
  434. _teamHandler.onAppliedPlayersPush(cb);
  435. }
  436. public void onLoginQueuePush(Action<LoginQueuePush> cb)
  437. {
  438. _entryHandler.onLoginQueuePush(cb);
  439. }
  440. public void onHudBuffListPush(Action<HUDBuffListPush> cb)
  441. {
  442. _entryHandler.onHudBuffListPush(cb);
  443. }
  444. public void onIsOpenArtifactPush(Action<IsOpenArtifactPush> cb)
  445. {
  446. _openArtifactHandler.onIsOpenArtifactPush(cb);
  447. }
  448. public void onAddPetPush(Action<AddPetPush> cb)
  449. {
  450. _petHandler.onAddPetPush(cb);
  451. }
  452. public void onUpdatePetPush(Action<UpdatePetPush> cb)
  453. {
  454. _petHandler.onUpdatePetPush(cb);
  455. }
  456. public void onDeletePetPush(Action<DeletePetPush> cb)
  457. {
  458. _petHandler.onDeletePetPush(cb);
  459. }
  460. public void onPlayerYaoQiSharePush(Action<PlayerYaoQiSharePush> cb)
  461. {
  462. _zhanYaoHandler.onPlayerYaoQiSharePush(cb);
  463. }
  464. }
  465. }