Handler.lua 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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_Try_Challenge_Point(human, msg.cityId, msg.pointIdx)
  35. end
  36. function CG_AB_UPDATE_LINEUP(human, msg)
  37. AnotherWorldBattleNS.AB_Update_Lineup(human, msg)
  38. end
  39. -------------------------------------------------异界寻宝------------------------------------------
  40. function CG_AB_TREASURE_QUERY(human, msg)
  41. AnotherWordTreasure.AB_Treasure_Query(human)
  42. end
  43. function CG_AB_TREASURE_LOTTERY(human, msg)
  44. AnotherWordTreasure.AB_Treasure_Lottery(human, msg.lotteryNum)
  45. end