Handler.lua 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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. function CG_AB_LEAVE_POINT(human, msg)
  40. AnotherWorldBattleNS.AB_Leave_Point(human, msg)
  41. end
  42. function CG_AB_GET_POINT_LINEUP(human, msg)
  43. AnotherWorldBattleNS.AB_Get_Point_Lineup(human, msg)
  44. end
  45. -------------------------------------------------异界寻宝------------------------------------------
  46. function CG_AB_TREASURE_QUERY(human, msg)
  47. AnotherWordTreasure.AB_Treasure_Query(human)
  48. end
  49. function CG_AB_TREASURE_LOTTERY(human, msg)
  50. AnotherWordTreasure.AB_Treasure_Lottery(human, msg.lotteryNum)
  51. end