Handler.lua 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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)
  6. BattleLogic.hangGet(human)
  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