Handler.lua 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. local BattleLogic = require("battle.BattleLogic")
  2. function CG_BATTLE_QUERY(human)
  3. BattleLogic.query(human)
  4. end
  5. function CG_BATTLE_HANG_GET(human,msg)
  6. BattleLogic.hangGet(human,msg.diamond == 1)
  7. end
  8. function CG_BATTLE_NODE_SET(human, msg)
  9. BattleLogic.nodeSet(human, msg.battleID)
  10. end
  11. function CG_BATTLE_NODE_DETAIL_QUERY(human, msg)
  12. BattleLogic.nodeDetailQuery(human, msg.battleID)
  13. end
  14. function CG_BATTLE_HANG_FIGHT(human,msg)
  15. BattleLogic.hangFightQuery(human, msg.mapID)
  16. end
  17. function CG_BATTLE_MOPUP_QUERY(human)
  18. BattleLogic.mopupQuery(human)
  19. end
  20. function CG_BATTLE_MOPUP_FIGHT(human)
  21. BattleLogic.mopupFight(human)
  22. end
  23. function CG_BATTLE_TONGGUAN_REWARD_GET(human,msg)
  24. BattleLogic.getTongGuanReward(human,msg.index)
  25. end
  26. function CG_BATTLE_SHARK_QUERY(human,msg)
  27. BattleLogic.battleSharkQuery(human,msg.battleID)
  28. end
  29. function CG_BATTLE_WORLD_MAP_ROLELIST_QUERY(human,msg)
  30. BattleLogic.worldMapRoleListQuery(human,msg.worldMapId)
  31. end
  32. function CG_BATTLE_HANG_QUERY(human)
  33. BattleLogic.onHookQuery(human)
  34. end
  35. function CG_BATTLE_NODE_QUERY(human,msg)
  36. BattleLogic.battleNodeQuery(human,msg.mapID)
  37. end
  38. function CG_BATTLE_WORLD_MAP_QUERY(human)
  39. BattleLogic.battleWorldMapQuery(human)
  40. end
  41. function CG_BATTLE_MAP_DROPITEMS_LIST(human)
  42. BattleLogic.sendMapDroItemsList(human)
  43. end
  44. function CG_BATTLE_MAP_DROPITEMS_DETAIL(human, msg)
  45. BattleLogic.sendMapDroItemsDetail(human, msg.mapID)
  46. end
  47. function CG_BATTLE_CHAPTER_REWARD(human, msg)
  48. BattleLogic.battleChapterReward(human, msg.mapID)
  49. end
  50. function CG_ELITE_SELECT(human,msg)
  51. --print("1:CG_ELITE_SELECT")
  52. BattleLogic.CG_ELITE_SELECT(human,msg.index)
  53. --print("2:CG_ELITE_SELECT")
  54. end
  55. function CG_ELITE_OPEN(human)
  56. BattleLogic.CG_ELITE_OPEN(human)
  57. --print("2:CG_ELITE_OPEN")
  58. end
  59. function CG_BATTLE_QUERY_ALL(human,msg)
  60. -- print("1:CG_BATTLE_QUERY_ALL")
  61. BattleLogic.CG_BATTLE_QUERY_ALL(human,msg.index,msg.curIndex)
  62. --print("2:CG_BATTLE_QUERY_ALL")
  63. end
  64. function CG_BATTLE_TONGGUAN_REWARD_GET_COPY(human,msg)
  65. BattleLogic.CG_BATTLE_TONGGUAN_REWARD_GET_COPY(human,msg.index)
  66. end