PickLotusAreaHandler.lua 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. -------------------------------------------------
  2. -- 本文件由代码生成器自动生成,
  3. -- 千万不要修改本文件的任何代码,
  4. -- 修改的的任何代码都会被覆盖掉!
  5. ----------------------------------------------------
  6. local Socket = require "Xmds.Pomelo.LuaGameSocket"
  7. require "base64"
  8. require "pickLotusAreaHandler_pb"
  9. --------------------------------Pomelo-------------------------------
  10. Pomelo = Pomelo or {}
  11. --------------------------------PickLotusAreaHandler-------------------------------
  12. Pomelo.PickLotusAreaHandler = {}
  13. local function caiLianEndPushDecoder(stream)
  14. local res = pickLotusAreaHandler_pb.CaiLianEndPush()
  15. res:ParseFromString(stream)
  16. return res
  17. end
  18. function Pomelo.PickLotusAreaHandler.caiLianEndPush(cb)
  19. Socket.On("area.pickLotusAreaPush.caiLianEndPush", function(res)
  20. Pomelo.PickLotusAreaHandler.lastCaiLianEndPush = res
  21. cb(nil,res)
  22. end, caiLianEndPushDecoder)
  23. end
  24. local function killbossInfoPushDecoder(stream)
  25. local res = pickLotusAreaHandler_pb.KillbossInfoPush()
  26. res:ParseFromString(stream)
  27. return res
  28. end
  29. function Pomelo.PickLotusAreaHandler.killbossInfoPush(cb)
  30. Socket.On("area.pickLotusAreaPush.killbossInfoPush", function(res)
  31. Pomelo.PickLotusAreaHandler.lastKillbossInfoPush = res
  32. cb(nil,res)
  33. end, killbossInfoPushDecoder)
  34. end
  35. --------------------------------Pomelo-------------------------------
  36. return Pomelo