Handler.lua 4.0 KB

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