Handler.lua 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. local AnotherWorldBattleNS = require("anotherWorldBattle.AnotherWorldBattleNS")
  2. function CG_AB_GetState(human)
  3. AnotherWorldBattleNS.AB_GetState(human)
  4. end
  5. function CG_AB_JOIN(human, msg)
  6. AnotherWorldBattleNS.AB_Join(human)
  7. end
  8. function CG_AB_ALLCITY_QUERY(human, msg)
  9. AnotherWorldBattleNS.AB_AllCity_Query(human)
  10. end
  11. function CG_AB_CITY_DETAILED_QUERY(human, msg)
  12. AnotherWorldBattleNS.AB_CityDetailed_Query(human, msg.cityId)
  13. end
  14. function CG_AB_POINT_DETAILEDINFO_QUERY(human, msg)
  15. AnotherWorldBattleNS.AB_PointDetailed_Query(human, msg.cityId, msg.pointIdx)
  16. end
  17. function CG_AB_BASECITY_QUERY(human, msg)
  18. AnotherWorldBattleNS.AB_BaseCity_Query(human)
  19. end
  20. function CG_AB_MY_OCCUPY_POINT_QUERY(human, msg)
  21. AnotherWorldBattleNS.AB_PlayerOccupyPOint_Query(human)
  22. end
  23. function CG_AB_UNION_RANK_QUERY(human, msg)
  24. AnotherWorldBattleNS.AB_UnionRank_Query(human)
  25. end
  26. function CG_AB_PLAYER_RANK_QUERY(human, msg)
  27. AnotherWorldBattleNS.AB_PlayerRank_Query(human)
  28. end
  29. function CG_AB_GARHER(human, msg)
  30. AnotherWorldBattleNS.AB_Gather(human, msg.cityId)
  31. end
  32. function CG_AB_POINT_CHAllENGE(human, msg)
  33. AnotherWorldBattleNS.AB_Try_Challenge_Point(human, msg.cityId, msg.pointIdx)
  34. end