Handler.lua 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. local BattleLogic = require("battle.BattleLogic")
  2. local BreakThroughTheme = require("battle.BreakThroughTheme")
  3. local BattleGift = require("battle.BattleGift")
  4. function CG_BATTLE_QUERY(human)
  5. --print("[CG_BATTLE_QUERY] 战役主界面查询开始")
  6. BattleLogic.query(human)
  7. --print("[CG_BATTLE_QUERY] 战役主界面查询结束")
  8. end
  9. function CG_BATTLE_HANG_GET(human)
  10. BattleLogic.hangGet(human)
  11. end
  12. function CG_BATTLE_HANG_FULL_TIME_QUERY(human)
  13. BattleLogic.sendHangFullTime(human)
  14. end
  15. function CG_BATTLE_NODE_SET(human, msg)
  16. BattleLogic.nodeSet(human, msg.battleID)
  17. end
  18. function CG_BATTLE_NODE_DETAIL_QUERY(human, msg)
  19. BattleLogic.nodeDetailQuery(human, msg.battleID)
  20. end
  21. function CG_BATTLE_HANG_FIGHT(human,msg)
  22. BattleLogic.hangFightQuery(human, msg.mapID)
  23. end
  24. function CG_BATTLE_MOPUP_QUERY(human)
  25. BattleLogic.mopupQuery(human)
  26. end
  27. function CG_BATTLE_MOPUP_FIGHT(human)
  28. BattleLogic.mopupFight(human)
  29. end
  30. function CG_BATTLE_TONGGUAN_REWARD_GET(human,msg)
  31. BattleLogic.getTongGuanReward(human,msg.index)
  32. end
  33. function CG_BATTLE_SHARK_QUERY(human,msg)
  34. BattleLogic.battleSharkQuery(human,msg.battleID)
  35. end
  36. function CG_BATTLE_WORLD_MAP_ROLELIST_QUERY(human,msg)
  37. BattleLogic.worldMapRoleListQuery(human,msg.worldMapId)
  38. end
  39. function CG_BATTLE_HANG_QUERY(human)
  40. BattleLogic.onHookQuery(human)
  41. end
  42. function CG_BATTLE_NODE_QUERY(human,msg)
  43. BattleLogic.battleNodeQuery(human,msg.mapID)
  44. end
  45. function CG_BATTLE_WORLD_MAP_QUERY(human)
  46. BattleLogic.battleWorldMapQuery(human)
  47. end
  48. function CG_BATTLE_MAP_DROPITEMS_LIST(human)
  49. BattleLogic.sendMapDroItemsList(human)
  50. end
  51. function CG_BATTLE_MAP_DROPITEMS_DETAIL(human, msg)
  52. BattleLogic.sendMapDroItemsDetail(human, msg.mapID)
  53. end
  54. function CG_BATTLE_CHAPTER_REWARD(human, msg)
  55. BattleLogic.battleChapterReward(human, msg.mapID)
  56. end
  57. function CG_ELITE_SELECT(human,msg)
  58. --print("1:CG_ELITE_SELECT")
  59. BattleLogic.CG_ELITE_SELECT(human,msg.index)
  60. --print("2:CG_ELITE_SELECT")
  61. end
  62. function CG_ELITE_OPEN(human)
  63. --print("[CG_ELITE_OPEN] 开始查询当前难度")
  64. BattleLogic.CG_ELITE_OPEN(human)
  65. --print("2:CG_ELITE_OPEN")
  66. end
  67. function CG_BATTLE_QUERY_ALL(human,msg)
  68. -- print("1:CG_BATTLE_QUERY_ALL")
  69. BattleLogic.CG_BATTLE_QUERY_ALL(human,msg.index,msg.curIndex)
  70. --print("2:CG_BATTLE_QUERY_ALL")
  71. end
  72. function CG_BATTLE_TONGGUAN_REWARD_GET_COPY(human,msg)
  73. BattleLogic.CG_BATTLE_TONGGUAN_REWARD_GET_COPY(human,msg.index)
  74. end
  75. --获得小游戏奖励
  76. function CG_BATTLE_GETGAMEREWARD(human,msg)
  77. BattleLogic.GetGameReward(human,msg.indexStr)
  78. end
  79. ---------------------------------------------------肉鸽玩法---------------------------------------------------
  80. function CG_ISNEEDSELECTATTR(human,msg)
  81. BattleLogic.QueryDiffBattleUnSelectAttr(human)
  82. end
  83. function CG_GETCHOOSEATTR_INFO(human,msg)
  84. BattleLogic.GetNowBattleModeUnSelectAttr(human)
  85. end
  86. function CG_GETALLATTR_INFO(human,msg)
  87. BattleLogic.GetNowBattleModeAllAttr(human)
  88. end
  89. function CG_CHOOSE_ATTR(human,msg)
  90. BattleLogic.ChooseAttr(human, msg.idx)
  91. end
  92. function CG_REFRESH_ATTR(human,msg)
  93. BattleLogic.RefreshAttr(human, msg.type, msg.id)
  94. end
  95. ------------------------------------------多队伍战斗------------------------------------------
  96. function CG_BATTLE_TEAM_COUNT(human,msg)
  97. BattleLogic.QueryLevelTeamCnt(human)
  98. end
  99. ------------------------------闯关主题-----------------------------------------------------
  100. function CG_BREATHROUGHTHEME_LINEUP_QUERY(human,msg)
  101. BreakThroughTheme.BreakThrough_Lineup_Query(human)
  102. end
  103. function CG_BREATHROUGHTHEME_BREAKTHROUGHREWARD_QUERY(human,msg)
  104. BreakThroughTheme.BreakThrough_BreakThroughReward_Query(human)
  105. end
  106. function CG_BREATHROUGHTHEME_ADVANCEDREWARD_QUERY(human,msg)
  107. BreakThroughTheme.BreakThrough_AdvancedReward_Query(human)
  108. end
  109. function CG_BREATHROUGHTHEME_GET_REWARD(human,msg)
  110. BreakThroughTheme.BreakThrough_GetReward(human, msg.rewardType)
  111. end
  112. function CG_BREATHROUGHTHEME_SHOW_TIPS(human,msg)
  113. BreakThroughTheme.BreakThrough_UpdateShowTipsState(human, msg.rewardType)
  114. end
  115. ------------------------------闯关礼金-----------------------------------------------------
  116. function CG_BATTLEGIFT_QUERY(human,msg)
  117. BattleGift.BattleGift_Query(human)
  118. end
  119. function CG_BATTLEGIFT_GET(human,msg)
  120. BattleGift.BattleGift_Get(human)
  121. end