Handler.lua 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. local AnotherWorldBattleNS = require("anotherWorldBattle.AnotherWorldBattleNS")
  2. local AnotherWordTreasure = require("anotherWorldBattle.AnotherWordTreasure")
  3. function CG_AB_GetState(human)
  4. AnotherWorldBattleNS.AB_GetState(human)
  5. end
  6. function CG_AB_JOIN(human, msg)
  7. AnotherWorldBattleNS.AB_Join(human)
  8. end
  9. function CG_AB_ALLCITY_QUERY(human, msg)
  10. AnotherWorldBattleNS.AB_AllCity_Query(human)
  11. end
  12. function CG_AB_CITY_DETAILED_QUERY(human, msg)
  13. AnotherWorldBattleNS.AB_CityDetailed_Query(human, msg.cityId)
  14. end
  15. function CG_AB_POINT_DETAILEDINFO_QUERY(human, msg)
  16. AnotherWorldBattleNS.AB_PointDetailed_Query(human, msg.cityId, msg.pointIdx)
  17. end
  18. function CG_AB_BASECITY_QUERY(human, msg)
  19. AnotherWorldBattleNS.AB_BaseCity_Query(human)
  20. end
  21. function CG_AB_MY_OCCUPY_POINT_QUERY(human, msg)
  22. AnotherWorldBattleNS.AB_PlayerOccupyPOint_Query(human)
  23. end
  24. function CG_AB_UNION_RANK_QUERY(human, msg)
  25. AnotherWorldBattleNS.AB_UnionRank_Query(human)
  26. end
  27. function CG_AB_PLAYER_RANK_QUERY(human, msg)
  28. AnotherWorldBattleNS.AB_PlayerRank_Query(human)
  29. end
  30. function CG_AB_GARHER(human, msg)
  31. AnotherWorldBattleNS.AB_Gather(human, msg.cityId, msg.opType)
  32. end
  33. function CG_AB_POINT_CHAllENGE(human, msg)
  34. AnotherWorldBattleNS.AB_TryChallengePoint(human, msg.cityId, msg.pointIdx)
  35. end
  36. function CG_AB_UPDATE_LINEUP(human, msg)
  37. AnotherWorldBattleNS.AB_UpdateLineup(human, msg)
  38. end
  39. function CG_AB_LEAVE_POINT(human, msg)
  40. AnotherWorldBattleNS.AB_LeavePoint(human, msg)
  41. end
  42. function CG_AB_GET_POINT_LINEUP(human, msg)
  43. AnotherWorldBattleNS.AB_GetPointLineup(human, msg)
  44. end
  45. function CG_AB_GET_MORALE_INFO(human, msg)
  46. AnotherWorldBattleNS.AB_GetMyUnionMoraleInfo(human)
  47. end
  48. function CG_AB_MORALE_DO(human, msg)
  49. AnotherWorldBattleNS.AB_Morale_Do(human)
  50. end
  51. function CG_AB_JIBAN_QUERY(human, msg)
  52. AnotherWorldBattleNS.AB_PointLine_JiBan_Query(human, msg)
  53. end
  54. function CG_AB_JIBAN_UPDATE(human, msg)
  55. AnotherWorldBattleNS.AB_PointLine_JiBan_Update(human, msg)
  56. end
  57. function CG_AB_ELF_QUERY(human, msg)
  58. AnotherWorldBattleNS.AB_PointLine_Elf_Query(human, msg)
  59. end
  60. function CG_AB_ELF_UPDATE(human, msg)
  61. AnotherWorldBattleNS.AB_PointLine_Elf_Update(human, msg)
  62. end
  63. -------------------------------------------------异界寻宝------------------------------------------
  64. function CG_AB_TREASURE_QUERY(human, msg)
  65. AnotherWordTreasure.AB_Treasure_Query(human)
  66. end
  67. function CG_AB_TREASURE_LOTTERY(human, msg)
  68. AnotherWordTreasure.AB_Treasure_Lottery(human, msg.lotteryNum)
  69. end