123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- -------------------------------------------------
- -- 本文件由代码生成器自动生成,
- -- 千万不要修改本文件的任何代码,
- -- 修改的的任何代码都会被覆盖掉!
- ----------------------------------------------------
- local Socket = require "Xmds.Pomelo.LuaGameSocket"
- require "base64"
- require "functionHandler_pb"
- --------------------------------Pomelo-------------------------------
- Pomelo = Pomelo or {}
- --------------------------------FunctionHandler-------------------------------
- Pomelo.FunctionHandler = {}
- local function functionGoToPushDecoder(stream)
- local res = functionHandler_pb.FunctionGoToPush()
- res:ParseFromString(stream)
- return res
- end
- function Pomelo.FunctionHandler.functionGoToPush(cb)
- Socket.On("area.functionPush.functionGoToPush", function(res)
- Pomelo.FunctionHandler.lastFunctionGoToPush = res
- cb(nil,res)
- end, functionGoToPushDecoder)
- end
- local function taskGuideFuncPushDecoder(stream)
- local res = functionHandler_pb.TaskGuideFuncPush()
- res:ParseFromString(stream)
- return res
- end
- function Pomelo.FunctionHandler.taskGuideFuncPush(cb)
- Socket.On("area.functionPush.taskGuideFuncPush", function(res)
- Pomelo.FunctionHandler.lastTaskGuideFuncPush = res
- cb(nil,res)
- end, taskGuideFuncPushDecoder)
- end
- --------------------------------Pomelo-------------------------------
- return Pomelo
|