123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971 |
- -------------------------------------------------
- -- 本文件由代码生成器自动生成,
- -- 千万不要修改本文件的任何代码,
- -- 修改的的任何代码都会被覆盖掉!
- ----------------------------------------------------
- local Socket = require "Xmds.Pomelo.LuaGameSocket"
- require "base64"
- --------------------------------Pomelo-------------------------------
- Pomelo = Pomelo or {}
- --------------------------------GameSocket-------------------------------
- Pomelo.GameSocket = {}
- local function bagItemUpdatePushDecoder(stream)
- local res = bagHandler_pb.BagItemUpdatePush()
- res:ParseFromString(stream)
- return res
- end
- function Pomelo.GameSocket.bagItemUpdatePush(cb)
- Socket.On("area.bagPush.bagItemUpdatePush", function(res)
- Pomelo.GameSocket.lastBagItemUpdatePush = res
- cb(nil,res)
- end, bagItemUpdatePushDecoder)
- end
- local function bagNewItemPushDecoder(stream)
- local res = bagHandler_pb.BagNewItemPush()
- res:ParseFromString(stream)
- return res
- end
- function Pomelo.GameSocket.bagNewItemPush(cb)
- Socket.On("area.bagPush.bagNewItemPush", function(res)
- Pomelo.GameSocket.lastBagNewItemPush = res
- cb(nil,res)
- end, bagNewItemPushDecoder)
- end
- local function bagNewEquipPushDecoder(stream)
- local res = bagHandler_pb.BagNewEquipPush()
- res:ParseFromString(stream)
- return res
- end
- function Pomelo.GameSocket.bagNewEquipPush(cb)
- Socket.On("area.bagPush.bagNewEquipPush", function(res)
- Pomelo.GameSocket.lastBagNewEquipPush = res
- cb(nil,res)
- end, bagNewEquipPushDecoder)
- end
- local function bagGridFullPushDecoder(stream)
- local res = bagHandler_pb.BagGridFullPush()
- res:ParseFromString(stream)
- return res
- end
- function Pomelo.GameSocket.bagGridFullPush(cb)
- Socket.On("area.bagPush.bagGridFullPush", function(res)
- Pomelo.GameSocket.lastBagGridFullPush = res
- cb(nil,res)
- end, bagGridFullPushDecoder)
- end
- local function bagGridNumPushDecoder(stream)
- local res = bagHandler_pb.BagGridNumPush()
- res:ParseFromString(stream)
- return res
- end
- function Pomelo.GameSocket.bagGridNumPush(cb)
- Socket.On("area.bagPush.bagGridNumPush", function(res)
- Pomelo.GameSocket.lastBagGridNumPush = res
- cb(nil,res)
- end, bagGridNumPushDecoder)
- end
- local function bagNewItemFromResFubenPushDecoder(stream)
- local res = bagHandler_pb.BagNewItemFromResFubenPush()
- res:ParseFromString(stream)
- return res
- end
- function Pomelo.GameSocket.bagNewItemFromResFubenPush(cb)
- Socket.On("area.bagPush.bagNewItemFromResFubenPush", function(res)
- Pomelo.GameSocket.lastBagNewItemFromResFubenPush = res
- cb(nil,res)
- end, bagNewItemFromResFubenPushDecoder)
- end
- local function throwPointItemListPushDecoder(stream)
- local res = battleHandler_pb.ThrowPointItemListPush()
- res:ParseFromString(stream)
- return res
- end
- function Pomelo.GameSocket.throwPointItemListPush(cb)
- Socket.On("area.battlePush.throwPointItemListPush", function(res)
- Pomelo.GameSocket.lastThrowPointItemListPush = res
- cb(nil,res)
- end, throwPointItemListPushDecoder)
- end
- local function throwPointResultPushDecoder(stream)
- local res = battleHandler_pb.ThrowPointResultPush()
- res:ParseFromString(stream)
- return res
- end
- function Pomelo.GameSocket.throwPointResultPush(cb)
- Socket.On("area.battlePush.throwPointResultPush", function(res)
- Pomelo.GameSocket.lastThrowPointResultPush = res
- cb(nil,res)
- end, throwPointResultPushDecoder)
- end
- local function biddingInfoPushDecoder(stream)
- local res = battleHandler_pb.BiddingInfoPush()
- res:ParseFromString(stream)
- return res
- end
- function Pomelo.GameSocket.biddingInfoPush(cb)
- Socket.On("area.battlePush.biddingInfoPush", function(res)
- Pomelo.GameSocket.lastBiddingInfoPush = res
- cb(nil,res)
- end, biddingInfoPushDecoder)
- end
- local function fightLevelResultPushDecoder(stream)
- local res = battleHandler_pb.FightLevelResultPush()
- res:ParseFromString(stream)
- return res
- end
- function Pomelo.GameSocket.fightLevelResultPush(cb)
- Socket.On("area.battlePush.fightLevelResultPush", function(res)
- Pomelo.GameSocket.lastFightLevelResultPush = res
- cb(nil,res)
- end, fightLevelResultPushDecoder)
- end
- local function itemDropPushDecoder(stream)
- local res = battleHandler_pb.ItemDropPush()
- res:ParseFromString(stream)
- return res
- end
- function Pomelo.GameSocket.itemDropPush(cb)
- Socket.On("area.battlePush.itemDropPush", function(res)
- Pomelo.GameSocket.lastItemDropPush = res
- cb(nil,res)
- end, itemDropPushDecoder)
- end
- local function sceneNamePushDecoder(stream)
- local res = battleHandler_pb.SceneNamePush()
- res:ParseFromString(stream)
- return res
- end
- function Pomelo.GameSocket.sceneNamePush(cb)
- Socket.On("area.battlePush.sceneNamePush", function(res)
- Pomelo.GameSocket.lastSceneNamePush = res
- cb(nil,res)
- end, sceneNamePushDecoder)
- end
- local function resourceDungeonResultPushDecoder(stream)
- local res = battleHandler_pb.ResourceDungeonResultPush()
- res:ParseFromString(stream)
- return res
- end
- function Pomelo.GameSocket.resourceDungeonResultPush(cb)
- Socket.On("area.battlePush.resourceDungeonResultPush", function(res)
- Pomelo.GameSocket.lastResourceDungeonResultPush = res
- cb(nil,res)
- end, resourceDungeonResultPushDecoder)
- end
- local function dailyActivityScheduleShowPushDecoder(stream)
- local res = dailyActivityHandler_pb.DailyActivityScheduleShowPush()
- res:ParseFromString(stream)
- return res
- end
- function Pomelo.GameSocket.dailyActivityScheduleShowPush(cb)
- Socket.On("area.dailyActivityPush.dailyActivityScheduleShowPush", function(res)
- Pomelo.GameSocket.lastDailyActivityScheduleShowPush = res
- cb(nil,res)
- end, dailyActivityScheduleShowPushDecoder)
- end
- local function equipmentSimplePushDecoder(stream)
- local res = equipHandler_pb.EquipmentSimplePush()
- res:ParseFromString(stream)
- return res
- end
- function Pomelo.GameSocket.equipmentSimplePush(cb)
- Socket.On("area.equipPush.equipmentSimplePush", function(res)
- Pomelo.GameSocket.lastEquipmentSimplePush = res
- cb(nil,res)
- end, equipmentSimplePushDecoder)
- end
- local function equipInheritPushDecoder(stream)
- local res = equipHandler_pb.EquipInheritPush()
- res:ParseFromString(stream)
- return res
- end
- function Pomelo.GameSocket.equipInheritPush(cb)
- Socket.On("area.equipPush.equipInheritPush", function(res)
- Pomelo.GameSocket.lastEquipInheritPush = res
- cb(nil,res)
- end, equipInheritPushDecoder)
- end
- local function equipStrengthPosPushDecoder(stream)
- local res = equipHandler_pb.StrengthPosPush()
- res:ParseFromString(stream)
- return res
- end
- function Pomelo.GameSocket.equipStrengthPosPush(cb)
- Socket.On("area.equipPush.equipStrengthPosPush", function(res)
- Pomelo.GameSocket.lastStrengthPosPush = res
- cb(nil,res)
- end, equipStrengthPosPushDecoder)
- end
- local function onMagicMatrixActionPushDecoder(stream)
- local res = guildMagicMatrixHandler_pb.OnMagicMatrixActionPush()
- res:ParseFromString(stream)
- return res
- end
- function Pomelo.GameSocket.onMagicMatrixActionPush(cb)
- Socket.On("area.guildMagicMatrixPush.onMagicMatrixActionPush", function(res)
- Pomelo.GameSocket.lastOnMagicMatrixActionPush = res
- cb(nil,res)
- end, onMagicMatrixActionPushDecoder)
- end
- local function fishItemPushDecoder(stream)
- local res = itemHandler_pb.FishItemPush()
- res:ParseFromString(stream)
- return res
- end
- function Pomelo.GameSocket.fishItemPush(cb)
- Socket.On("area.itemPush.fishItemPush", function(res)
- Pomelo.GameSocket.lastFishItemPush = res
- cb(nil,res)
- end, fishItemPushDecoder)
- end
- local function countItemChangePushDecoder(stream)
- local res = itemHandler_pb.CountItemChangePush()
- res:ParseFromString(stream)
- return res
- end
- function Pomelo.GameSocket.countItemChangePush(cb)
- Socket.On("area.itemPush.countItemChangePush", function(res)
- Pomelo.GameSocket.lastCountItemChangePush = res
- cb(nil,res)
- end, countItemChangePushDecoder)
- end
- local function itemDetailPushDecoder(stream)
- local res = itemHandler_pb.ItemDetailPush()
- res:ParseFromString(stream)
- return res
- end
- function Pomelo.GameSocket.itemDetailPush(cb)
- Socket.On("area.itemPush.itemDetailPush", function(res)
- Pomelo.GameSocket.lastItemDetailPush = res
- cb(nil,res)
- end, itemDetailPushDecoder)
- end
- local function rewardItemPushDecoder(stream)
- local res = itemHandler_pb.RewardItemPush()
- res:ParseFromString(stream)
- return res
- end
- function Pomelo.GameSocket.rewardItemPush(cb)
- Socket.On("area.itemPush.rewardItemPush", function(res)
- Pomelo.GameSocket.lastRewardItemPush = res
- cb(nil,res)
- end, rewardItemPushDecoder)
- end
- local function onMessageAddPushDecoder(stream)
- local res = messageHandler_pb.OnMessageAddPush()
- res:ParseFromString(stream)
- return res
- end
- function Pomelo.GameSocket.onMessageAddPush(cb)
- Socket.On("area.messagePush.onMessageAddPush", function(res)
- Pomelo.GameSocket.lastOnMessageAddPush = res
- cb(nil,res)
- end, onMessageAddPushDecoder)
- end
- local function onNewPetDetailPushDecoder(stream)
- local res = petNewHandler_pb.OnNewPetDetailPush()
- res:ParseFromString(stream)
- return res
- end
- function Pomelo.GameSocket.onNewPetDetailPush(cb)
- Socket.On("area.petNewPush.onNewPetDetailPush", function(res)
- Pomelo.GameSocket.lastOnNewPetDetailPush = res
- cb(nil,res)
- end, onNewPetDetailPushDecoder)
- end
- local function petExpUpdatePushDecoder(stream)
- local res = petNewHandler_pb.PetExpUpdatePush()
- res:ParseFromString(stream)
- return res
- end
- function Pomelo.GameSocket.petExpUpdatePush(cb)
- Socket.On("area.petNewPush.petExpUpdatePush", function(res)
- Pomelo.GameSocket.lastPetExpUpdatePush = res
- cb(nil,res)
- end, petExpUpdatePushDecoder)
- end
- local function petInfoUpdatePushDecoder(stream)
- local res = petNewHandler_pb.PetInfoUpdatePush()
- res:ParseFromString(stream)
- return res
- end
- function Pomelo.GameSocket.petInfoUpdatePush(cb)
- Socket.On("area.petNewPush.petInfoUpdatePush", function(res)
- Pomelo.GameSocket.lastPetInfoUpdatePush = res
- cb(nil,res)
- end, petInfoUpdatePushDecoder)
- end
- local function caiLianEndPushDecoder(stream)
- local res = pickLotusAreaHandler_pb.CaiLianEndPush()
- res:ParseFromString(stream)
- return res
- end
- function Pomelo.GameSocket.caiLianEndPush(cb)
- Socket.On("area.pickLotusAreaPush.caiLianEndPush", function(res)
- Pomelo.GameSocket.lastCaiLianEndPush = res
- cb(nil,res)
- end, caiLianEndPushDecoder)
- end
- local function killbossInfoPushDecoder(stream)
- local res = pickLotusAreaHandler_pb.KillbossInfoPush()
- res:ParseFromString(stream)
- return res
- end
- function Pomelo.GameSocket.killbossInfoPush(cb)
- Socket.On("area.pickLotusAreaPush.killbossInfoPush", function(res)
- Pomelo.GameSocket.lastKillbossInfoPush = res
- cb(nil,res)
- end, killbossInfoPushDecoder)
- end
- local function clientConfigPushDecoder(stream)
- local res = playerHandler_pb.ClientConfigPush()
- res:ParseFromString(stream)
- return res
- end
- function Pomelo.GameSocket.clientConfigPush(cb)
- Socket.On("area.playerPush.clientConfigPush", function(res)
- Pomelo.GameSocket.lastClientConfigPush = res
- cb(nil,res)
- end, clientConfigPushDecoder)
- end
- local function battleEventPushDecoder(stream)
- local res = playerHandler_pb.BattleEventPush()
- res:ParseFromString(stream)
- return res
- end
- function Pomelo.GameSocket.battleEventPush(cb)
- Socket.On("area.playerPush.battleEventPush", function(res)
- Pomelo.GameSocket.lastBattleEventPush = res
- cb(nil,res)
- end, battleEventPushDecoder)
- end
- local function battleClearPushDecoder(stream)
- local res = playerHandler_pb.BattleClearPush()
- res:ParseFromString(stream)
- return res
- end
- function Pomelo.GameSocket.battleClearPush(cb)
- Socket.On("area.playerPush.battleClearPush", function(res)
- Pomelo.GameSocket.lastBattleClearPush = res
- cb(nil,res)
- end, battleClearPushDecoder)
- end
- local function onSuperScriptPushDecoder(stream)
- local res = playerHandler_pb.SuperScriptPush()
- res:ParseFromString(stream)
- return res
- end
- function Pomelo.GameSocket.onSuperScriptPush(cb)
- Socket.On("area.playerPush.onSuperScriptPush", function(res)
- Pomelo.GameSocket.lastSuperScriptPush = res
- cb(nil,res)
- end, onSuperScriptPushDecoder)
- end
- local function changeAreaPushDecoder(stream)
- local res = playerHandler_pb.ChangeAreaPush()
- res:ParseFromString(stream)
- return res
- end
- function Pomelo.GameSocket.changeAreaPush(cb)
- Socket.On("area.playerPush.changeAreaPush", function(res)
- Pomelo.GameSocket.lastChangeAreaPush = res
- cb(nil,res)
- end, changeAreaPushDecoder)
- end
- local function playerDynamicPushDecoder(stream)
- local res = playerHandler_pb.PlayerDynamicPush()
- res:ParseFromString(stream)
- return res
- end
- function Pomelo.GameSocket.playerDynamicPush(cb)
- Socket.On("area.playerPush.playerDynamicPush", function(res)
- Pomelo.GameSocket.lastPlayerDynamicPush = res
- cb(nil,res)
- end, playerDynamicPushDecoder)
- end
- local function playerRelivePushDecoder(stream)
- local res = playerHandler_pb.PlayerRelivePush()
- res:ParseFromString(stream)
- return res
- end
- function Pomelo.GameSocket.playerRelivePush(cb)
- Socket.On("area.playerPush.playerRelivePush", function(res)
- Pomelo.GameSocket.lastPlayerRelivePush = res
- cb(nil,res)
- end, playerRelivePushDecoder)
- end
- local function playerSaverRebirthPushDecoder(stream)
- local res = playerHandler_pb.PlayerSaverRebirthPush()
- res:ParseFromString(stream)
- return res
- end
- function Pomelo.GameSocket.playerSaverRebirthPush(cb)
- Socket.On("area.playerPush.playerSaverRebirthPush", function(res)
- Pomelo.GameSocket.lastPlayerSaverRebirthPush = res
- cb(nil,res)
- end, playerSaverRebirthPushDecoder)
- end
- local function simulateDropPushDecoder(stream)
- local res = playerHandler_pb.SimulateDataPush()
- res:ParseFromString(stream)
- return res
- end
- function Pomelo.GameSocket.simulateDropPush(cb)
- Socket.On("area.playerPush.simulateDropPush", function(res)
- Pomelo.GameSocket.lastSimulateDataPush = res
- cb(nil,res)
- end, simulateDropPushDecoder)
- end
- local function kickPlayerPushDecoder(stream)
- local res = playerHandler_pb.KickPlayerPush()
- res:ParseFromString(stream)
- return res
- end
- function Pomelo.GameSocket.kickPlayerPush(cb)
- Socket.On("area.playerPush.kickPlayerPush", function(res)
- Pomelo.GameSocket.lastKickPlayerPush = res
- cb(nil,res)
- end, kickPlayerPushDecoder)
- end
- local function suitPropertyUpPushDecoder(stream)
- local res = playerHandler_pb.SuitPropertyUpPush()
- res:ParseFromString(stream)
- return res
- end
- function Pomelo.GameSocket.suitPropertyUpPush(cb)
- Socket.On("area.playerPush.suitPropertyUpPush", function(res)
- Pomelo.GameSocket.lastSuitPropertyUpPush = res
- cb(nil,res)
- end, suitPropertyUpPushDecoder)
- end
- local function commonPropertyPushDecoder(stream)
- local res = playerHandler_pb.CommonPropertyPush()
- res:ParseFromString(stream)
- return res
- end
- function Pomelo.GameSocket.commonPropertyPush(cb)
- Socket.On("area.playerPush.commonPropertyPush", function(res)
- Pomelo.GameSocket.lastCommonPropertyPush = res
- cb(nil,res)
- end, commonPropertyPushDecoder)
- end
- local function buffPropertyPushDecoder(stream)
- local res = playerHandler_pb.BuffPropertyPush()
- res:ParseFromString(stream)
- return res
- end
- function Pomelo.GameSocket.buffPropertyPush(cb)
- Socket.On("area.playerPush.buffPropertyPush", function(res)
- Pomelo.GameSocket.lastBuffPropertyPush = res
- cb(nil,res)
- end, buffPropertyPushDecoder)
- end
- local function playerBattleAttributePushDecoder(stream)
- local res = playerHandler_pb.PlayerBattleAttributePush()
- res:ParseFromString(stream)
- return res
- end
- function Pomelo.GameSocket.playerBattleAttributePush(cb)
- Socket.On("area.playerPush.playerBattleAttributePush", function(res)
- Pomelo.GameSocket.lastPlayerBattleAttributePush = res
- cb(nil,res)
- end, playerBattleAttributePushDecoder)
- end
- local function payGiftStatePushDecoder(stream)
- local res = playerHandler_pb.PayGiftStatePush()
- res:ParseFromString(stream)
- return res
- end
- function Pomelo.GameSocket.payGiftStatePush(cb)
- Socket.On("area.playerPush.payGiftStatePush", function(res)
- Pomelo.GameSocket.lastPayGiftStatePush = res
- cb(nil,res)
- end, payGiftStatePushDecoder)
- end
- local function playerNoticeMsgPushDecoder(stream)
- local res = playerHandler_pb.PlayerNoticeMsgPush()
- res:ParseFromString(stream)
- return res
- end
- function Pomelo.GameSocket.playerNoticeMsgPush(cb)
- Socket.On("area.playerPush.playerNoticeMsgPush", function(res)
- Pomelo.GameSocket.lastPlayerNoticeMsgPush = res
- cb(nil,res)
- end, playerNoticeMsgPushDecoder)
- end
- local function playerSameMapTransPushDecoder(stream)
- local res = playerHandler_pb.PlayerSameMapTransPush()
- res:ParseFromString(stream)
- return res
- end
- function Pomelo.GameSocket.playerSameMapTransPush(cb)
- Socket.On("area.playerPush.playerSameMapTransPush", function(res)
- Pomelo.GameSocket.lastPlayerSameMapTransPush = res
- cb(nil,res)
- end, playerSameMapTransPushDecoder)
- end
- local function refrushNewDayPushDecoder(stream)
- local res = playerHandlerExt_pb.RefrushNewDayPush()
- res:ParseFromString(stream)
- return res
- end
- function Pomelo.GameSocket.refrushNewDayPush(cb)
- Socket.On("area.playerPushExt.refrushNewDayPush", function(res)
- Pomelo.GameSocket.lastRefrushNewDayPush = res
- cb(nil,res)
- end, refrushNewDayPushDecoder)
- end
- local function paySuccessPushDecoder(stream)
- local res = prepaidHandler_pb.PaySuccessPush()
- res:ParseFromString(stream)
- return res
- end
- function Pomelo.GameSocket.paySuccessPush(cb)
- Socket.On("area.prepaidHandler.paySuccessPush", function(res)
- Pomelo.GameSocket.lastPaySuccessPush = res
- cb(nil,res)
- end, paySuccessPushDecoder)
- end
- local function skillUpdatePushDecoder(stream)
- local res = skillHandler_pb.SkillUpdatePush()
- res:ParseFromString(stream)
- return res
- end
- function Pomelo.GameSocket.skillUpdatePush(cb)
- Socket.On("area.skillPush.skillUpdatePush", function(res)
- Pomelo.GameSocket.lastSkillUpdatePush = res
- cb(nil,res)
- end, skillUpdatePushDecoder)
- end
- local function skillKeyUpdatePushDecoder(stream)
- local res = skillKeysHandler_pb.SkillKeyUpdatePush()
- res:ParseFromString(stream)
- return res
- end
- function Pomelo.GameSocket.skillKeyUpdatePush(cb)
- Socket.On("area.skillKeysPush.skillKeyUpdatePush", function(res)
- Pomelo.GameSocket.lastSkillKeyUpdatePush = res
- cb(nil,res)
- end, skillKeyUpdatePushDecoder)
- end
- local function taskUpdatePushDecoder(stream)
- local res = taskHandler_pb.TaskUpdatePush()
- res:ParseFromString(stream)
- return res
- end
- function Pomelo.GameSocket.taskUpdatePush(cb)
- Socket.On("area.taskPush.taskUpdatePush", function(res)
- Pomelo.GameSocket.lastTaskUpdatePush = res
- cb(nil,res)
- end, taskUpdatePushDecoder)
- end
- local function taskAutoPushDecoder(stream)
- local res = taskHandler_pb.TaskAutoPush()
- res:ParseFromString(stream)
- return res
- end
- function Pomelo.GameSocket.taskAutoPush(cb)
- Socket.On("area.taskPush.taskAutoPush", function(res)
- Pomelo.GameSocket.lastTaskAutoPush = res
- cb(nil,res)
- end, taskAutoPushDecoder)
- end
- local function treasureScenePointPushDecoder(stream)
- local res = taskHandler_pb.TreasureScenePointPush()
- res:ParseFromString(stream)
- return res
- end
- function Pomelo.GameSocket.treasureScenePointPush(cb)
- Socket.On("area.taskPush.treasureScenePointPush", function(res)
- Pomelo.GameSocket.lastTreasureScenePointPush = res
- cb(nil,res)
- end, treasureScenePointPushDecoder)
- end
- local function loopResultPushDecoder(stream)
- local res = taskHandler_pb.LoopResultPush()
- res:ParseFromString(stream)
- return res
- end
- function Pomelo.GameSocket.loopResultPush(cb)
- Socket.On("area.taskPush.loopResultPush", function(res)
- Pomelo.GameSocket.lastLoopResultPush = res
- cb(nil,res)
- end, loopResultPushDecoder)
- end
- local function guideTaskPushDecoder(stream)
- local res = taskHandler_pb.GuideTaskPush()
- res:ParseFromString(stream)
- return res
- end
- function Pomelo.GameSocket.guideTaskPush(cb)
- Socket.On("area.taskPush.guideTaskPush", function(res)
- Pomelo.GameSocket.lastGuideTaskPush = res
- cb(nil,res)
- end, guideTaskPushDecoder)
- end
- local function onSummonTeamPushDecoder(stream)
- local res = teamHandler_pb.OnSummonTeamPush()
- res:ParseFromString(stream)
- return res
- end
- function Pomelo.GameSocket.onSummonTeamPush(cb)
- Socket.On("area.teamPush.onSummonTeamPush", function(res)
- Pomelo.GameSocket.lastOnSummonTeamPush = res
- cb(nil,res)
- end, onSummonTeamPushDecoder)
- end
- local function onTeamUpdatePushDecoder(stream)
- local res = teamHandler_pb.OnTeamUpdatePush()
- res:ParseFromString(stream)
- return res
- end
- function Pomelo.GameSocket.onTeamUpdatePush(cb)
- Socket.On("area.teamPush.onTeamUpdatePush", function(res)
- Pomelo.GameSocket.lastOnTeamUpdatePush = res
- cb(nil,res)
- end, onTeamUpdatePushDecoder)
- end
- local function onTeamMemberUpdatePushDecoder(stream)
- local res = teamHandler_pb.OnTeamMemberUpdatePush()
- res:ParseFromString(stream)
- return res
- end
- function Pomelo.GameSocket.onTeamMemberUpdatePush(cb)
- Socket.On("area.teamPush.onTeamMemberUpdatePush", function(res)
- Pomelo.GameSocket.lastOnTeamMemberUpdatePush = res
- cb(nil,res)
- end, onTeamMemberUpdatePushDecoder)
- end
- local function onTeamTargetPushDecoder(stream)
- local res = teamHandler_pb.OnTeamTargetPush()
- res:ParseFromString(stream)
- return res
- end
- function Pomelo.GameSocket.onTeamTargetPush(cb)
- Socket.On("area.teamPush.onTeamTargetPush", function(res)
- Pomelo.GameSocket.lastOnTeamTargetPush = res
- cb(nil,res)
- end, onTeamTargetPushDecoder)
- end
- local function onAcrossTeamInfoPushDecoder(stream)
- local res = teamHandler_pb.OnAcrossTeamInfoPush()
- res:ParseFromString(stream)
- return res
- end
- function Pomelo.GameSocket.onAcrossTeamInfoPush(cb)
- Socket.On("area.teamPush.onAcrossTeamInfoPush", function(res)
- Pomelo.GameSocket.lastOnAcrossTeamInfoPush = res
- cb(nil,res)
- end, onAcrossTeamInfoPushDecoder)
- end
- local function onTeamMumberHurtPushDecoder(stream)
- local res = teamHandler_pb.OnTeamMumberHurtPush()
- res:ParseFromString(stream)
- return res
- end
- function Pomelo.GameSocket.onTeamMumberHurtPush(cb)
- Socket.On("area.teamPush.onTeamMumberHurtPush", function(res)
- Pomelo.GameSocket.lastOnTeamMumberHurtPush = res
- cb(nil,res)
- end, onTeamMumberHurtPushDecoder)
- end
- local function onAppliedPlayersPushDecoder(stream)
- local res = teamHandler_pb.OnAppliedPlayersPush()
- res:ParseFromString(stream)
- return res
- end
- function Pomelo.GameSocket.onAppliedPlayersPush(cb)
- Socket.On("area.teamPush.onAppliedPlayersPush", function(res)
- Pomelo.GameSocket.lastOnAppliedPlayersPush = res
- cb(nil,res)
- end, onAppliedPlayersPushDecoder)
- end
- local function loginQueuePushDecoder(stream)
- local res = entryHandler_pb.LoginQueuePush()
- res:ParseFromString(stream)
- return res
- end
- function Pomelo.GameSocket.loginQueuePush(cb)
- Socket.On("connector.entryPush.loginQueuePush", function(res)
- Pomelo.GameSocket.lastLoginQueuePush = res
- cb(nil,res)
- end, loginQueuePushDecoder)
- end
- local function hudBuffListPushDecoder(stream)
- local res = entryHandler_pb.HUDBuffListPush()
- res:ParseFromString(stream)
- return res
- end
- function Pomelo.GameSocket.hudBuffListPush(cb)
- Socket.On("connector.entryPush.hudBuffListPush", function(res)
- Pomelo.GameSocket.lastHUDBuffListPush = res
- cb(nil,res)
- end, hudBuffListPushDecoder)
- end
- local function isOpenArtifactPushDecoder(stream)
- local res = openArtifactHandler_pb.IsOpenArtifactPush()
- res:ParseFromString(stream)
- return res
- end
- function Pomelo.GameSocket.isOpenArtifactPush(cb)
- Socket.On("openArtifact.openArtifactPush.isOpenArtifactPush", function(res)
- Pomelo.GameSocket.lastIsOpenArtifactPush = res
- cb(nil,res)
- end, isOpenArtifactPushDecoder)
- end
- local function addPetPushDecoder(stream)
- local res = petHandler_pb.AddPetPush()
- res:ParseFromString(stream)
- return res
- end
- function Pomelo.GameSocket.addPetPush(cb)
- Socket.On("pet.petPush.addPetPush", function(res)
- Pomelo.GameSocket.lastAddPetPush = res
- cb(nil,res)
- end, addPetPushDecoder)
- end
- local function updatePetPushDecoder(stream)
- local res = petHandler_pb.UpdatePetPush()
- res:ParseFromString(stream)
- return res
- end
- function Pomelo.GameSocket.updatePetPush(cb)
- Socket.On("pet.petPush.updatePetPush", function(res)
- Pomelo.GameSocket.lastUpdatePetPush = res
- cb(nil,res)
- end, updatePetPushDecoder)
- end
- local function deletePetPushDecoder(stream)
- local res = petHandler_pb.DeletePetPush()
- res:ParseFromString(stream)
- return res
- end
- function Pomelo.GameSocket.deletePetPush(cb)
- Socket.On("pet.petPush.deletePetPush", function(res)
- Pomelo.GameSocket.lastDeletePetPush = res
- cb(nil,res)
- end, deletePetPushDecoder)
- end
- local function playerYaoQiSharePushDecoder(stream)
- local res = zhanYaoHandler_pb.PlayerYaoQiSharePush()
- res:ParseFromString(stream)
- return res
- end
- function Pomelo.GameSocket.playerYaoQiSharePush(cb)
- Socket.On("zhanyao.zhanYaoPush.playerYaoQiSharePush", function(res)
- Pomelo.GameSocket.lastPlayerYaoQiSharePush = res
- cb(nil,res)
- end, playerYaoQiSharePushDecoder)
- end
- --------------------------------Pomelo-------------------------------
- return Pomelo
|