Handler.lua 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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)
  32. end
  33. function CG_AB_POINT_CHAllENGE(human, msg)
  34. AnotherWorldBattleNS.AB_Try_Challenge_Point(human, msg.cityId, msg.pointIdx)
  35. end
  36. -------------------------------------------------异界寻宝------------------------------------------
  37. function CG_AB_TREASURE_QUERY(human, msg)
  38. AnotherWordTreasure.AB_Treasure_Query(human)
  39. end
  40. function CG_AB_TREASURE_LOTTERY(human, msg)
  41. AnotherWordTreasure.AB_Treasure_Lottery(human, msg.lotteryNum)
  42. end