GoddessHandler.lua 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567
  1. -------------------------------------------------
  2. -- 本文件由代码生成器自动生成,
  3. -- 千万不要修改本文件的任何代码,
  4. -- 修改的的任何代码都会被覆盖掉!
  5. ----------------------------------------------------
  6. local Socket = require "Xmds.Pomelo.LuaGameSocket"
  7. require "base64"
  8. require "goddessHandler_pb"
  9. --------------------------------Pomelo-------------------------------
  10. Pomelo = Pomelo or {}
  11. --------------------------------GoddessHandler-------------------------------
  12. Pomelo.GoddessHandler = {}
  13. local function enterGoddessSceneRequestEncoder(msg)
  14. local input = goddessHandler_pb.EnterGoddessSceneRequest()
  15. protobuf.FromMessage(input,msg)
  16. return (input:SerializeToString())
  17. end
  18. local function enterGoddessSceneRequestDecoder(stream)
  19. local res = goddessHandler_pb.EnterGoddessSceneResponse()
  20. res:ParseFromString(stream)
  21. return res
  22. end
  23. function Pomelo.GoddessHandler.enterGoddessSceneRequest(cb,option)
  24. local input = nil
  25. Socket.OnRequestStart("area.goddessHandler.enterGoddessSceneRequest", option)
  26. Socket.Request("area.goddessHandler.enterGoddessSceneRequest", input, function(res)
  27. if(res.s2c_code == 200) then
  28. Pomelo.GoddessHandler.lastEnterGoddessSceneResponse = res
  29. Socket.OnRequestEnd("area.goddessHandler.enterGoddessSceneRequest", true)
  30. cb(nil,res)
  31. else
  32. local ex = {}
  33. if(res.s2c_code) then
  34. ex.Code = res.s2c_code
  35. ex.Message = res.s2c_msg
  36. else
  37. ex.Code = 501
  38. ex.Message = "[LuaXmdsNetClient] area.goddessHandler.enterGoddessSceneRequest decode error!!"
  39. end
  40. Socket.OnRequestEnd("area.goddessHandler.enterGoddessSceneRequest", false,ex.Code,ex.Message)
  41. cb(ex,nil)
  42. end
  43. end, enterGoddessSceneRequestEncoder, enterGoddessSceneRequestDecoder)
  44. end
  45. local function outGoddessSceneRequestEncoder(msg)
  46. local input = goddessHandler_pb.OutGoddessSceneRequest()
  47. protobuf.FromMessage(input,msg)
  48. return (input:SerializeToString())
  49. end
  50. local function outGoddessSceneRequestDecoder(stream)
  51. local res = goddessHandler_pb.OutGoddessSceneResponse()
  52. res:ParseFromString(stream)
  53. return res
  54. end
  55. function Pomelo.GoddessHandler.outGoddessSceneRequest(cb,option)
  56. local input = nil
  57. Socket.OnRequestStart("area.goddessHandler.outGoddessSceneRequest", option)
  58. Socket.Request("area.goddessHandler.outGoddessSceneRequest", input, function(res)
  59. if(res.s2c_code == 200) then
  60. Pomelo.GoddessHandler.lastOutGoddessSceneResponse = res
  61. Socket.OnRequestEnd("area.goddessHandler.outGoddessSceneRequest", true)
  62. cb(nil,res)
  63. else
  64. local ex = {}
  65. if(res.s2c_code) then
  66. ex.Code = res.s2c_code
  67. ex.Message = res.s2c_msg
  68. else
  69. ex.Code = 501
  70. ex.Message = "[LuaXmdsNetClient] area.goddessHandler.outGoddessSceneRequest decode error!!"
  71. end
  72. Socket.OnRequestEnd("area.goddessHandler.outGoddessSceneRequest", false,ex.Code,ex.Message)
  73. cb(ex,nil)
  74. end
  75. end, outGoddessSceneRequestEncoder, outGoddessSceneRequestDecoder)
  76. end
  77. local function activeGoddessRequestEncoder(msg)
  78. local input = goddessHandler_pb.ActiveGoddessRequest()
  79. protobuf.FromMessage(input,msg)
  80. return (input:SerializeToString())
  81. end
  82. local function activeGoddessRequestDecoder(stream)
  83. local res = goddessHandler_pb.ActiveGoddessResponse()
  84. res:ParseFromString(stream)
  85. return res
  86. end
  87. function Pomelo.GoddessHandler.activeGoddessRequest(c2s_goddessTemplateId,cb,option)
  88. local msg = {}
  89. msg.c2s_goddessTemplateId = c2s_goddessTemplateId
  90. Socket.OnRequestStart("area.goddessHandler.activeGoddessRequest", option)
  91. Socket.Request("area.goddessHandler.activeGoddessRequest", msg, function(res)
  92. if(res.s2c_code == 200) then
  93. Pomelo.GoddessHandler.lastActiveGoddessResponse = res
  94. Socket.OnRequestEnd("area.goddessHandler.activeGoddessRequest", true)
  95. cb(nil,res)
  96. else
  97. local ex = {}
  98. if(res.s2c_code) then
  99. ex.Code = res.s2c_code
  100. ex.Message = res.s2c_msg
  101. else
  102. ex.Code = 501
  103. ex.Message = "[LuaXmdsNetClient] area.goddessHandler.activeGoddessRequest decode error!!"
  104. end
  105. Socket.OnRequestEnd("area.goddessHandler.activeGoddessRequest", false,ex.Code,ex.Message)
  106. cb(ex,nil)
  107. end
  108. end, activeGoddessRequestEncoder, activeGoddessRequestDecoder)
  109. end
  110. local function onBattleGoddessRequestEncoder(msg)
  111. local input = goddessHandler_pb.OnBattleGoddessRequest()
  112. protobuf.FromMessage(input,msg)
  113. return (input:SerializeToString())
  114. end
  115. local function onBattleGoddessRequestDecoder(stream)
  116. local res = goddessHandler_pb.OnBattleGoddessResponse()
  117. res:ParseFromString(stream)
  118. return res
  119. end
  120. function Pomelo.GoddessHandler.onBattleGoddessRequest(c2s_goddessId,cb,option)
  121. local msg = {}
  122. msg.c2s_goddessId = c2s_goddessId
  123. Socket.OnRequestStart("area.goddessHandler.onBattleGoddessRequest", option)
  124. Socket.Request("area.goddessHandler.onBattleGoddessRequest", msg, function(res)
  125. if(res.s2c_code == 200) then
  126. Pomelo.GoddessHandler.lastOnBattleGoddessResponse = res
  127. Socket.OnRequestEnd("area.goddessHandler.onBattleGoddessRequest", true)
  128. cb(nil,res)
  129. else
  130. local ex = {}
  131. if(res.s2c_code) then
  132. ex.Code = res.s2c_code
  133. ex.Message = res.s2c_msg
  134. else
  135. ex.Code = 501
  136. ex.Message = "[LuaXmdsNetClient] area.goddessHandler.onBattleGoddessRequest decode error!!"
  137. end
  138. Socket.OnRequestEnd("area.goddessHandler.onBattleGoddessRequest", false,ex.Code,ex.Message)
  139. cb(ex,nil)
  140. end
  141. end, onBattleGoddessRequestEncoder, onBattleGoddessRequestDecoder)
  142. end
  143. local function offBattleGoddessRequestEncoder(msg)
  144. local input = goddessHandler_pb.OffBattleGoddessRequest()
  145. protobuf.FromMessage(input,msg)
  146. return (input:SerializeToString())
  147. end
  148. local function offBattleGoddessRequestDecoder(stream)
  149. local res = goddessHandler_pb.OffBattleGoddessResponse()
  150. res:ParseFromString(stream)
  151. return res
  152. end
  153. function Pomelo.GoddessHandler.offBattleGoddessRequest(c2s_goddessId,cb,option)
  154. local msg = {}
  155. msg.c2s_goddessId = c2s_goddessId
  156. Socket.OnRequestStart("area.goddessHandler.offBattleGoddessRequest", option)
  157. Socket.Request("area.goddessHandler.offBattleGoddessRequest", msg, function(res)
  158. if(res.s2c_code == 200) then
  159. Pomelo.GoddessHandler.lastOffBattleGoddessResponse = res
  160. Socket.OnRequestEnd("area.goddessHandler.offBattleGoddessRequest", true)
  161. cb(nil,res)
  162. else
  163. local ex = {}
  164. if(res.s2c_code) then
  165. ex.Code = res.s2c_code
  166. ex.Message = res.s2c_msg
  167. else
  168. ex.Code = 501
  169. ex.Message = "[LuaXmdsNetClient] area.goddessHandler.offBattleGoddessRequest decode error!!"
  170. end
  171. Socket.OnRequestEnd("area.goddessHandler.offBattleGoddessRequest", false,ex.Code,ex.Message)
  172. cb(ex,nil)
  173. end
  174. end, offBattleGoddessRequestEncoder, offBattleGoddessRequestDecoder)
  175. end
  176. local function getGiftsRequestEncoder(msg)
  177. local input = goddessHandler_pb.GetGiftsRequest()
  178. protobuf.FromMessage(input,msg)
  179. return (input:SerializeToString())
  180. end
  181. local function getGiftsRequestDecoder(stream)
  182. local res = goddessHandler_pb.GetGiftsResponse()
  183. res:ParseFromString(stream)
  184. return res
  185. end
  186. function Pomelo.GoddessHandler.getGiftsRequest(c2s_goddessId,cb,option)
  187. local msg = {}
  188. msg.c2s_goddessId = c2s_goddessId
  189. Socket.OnRequestStart("area.goddessHandler.getGiftsRequest", option)
  190. Socket.Request("area.goddessHandler.getGiftsRequest", msg, function(res)
  191. if(res.s2c_code == 200) then
  192. Pomelo.GoddessHandler.lastGetGiftsResponse = res
  193. Socket.OnRequestEnd("area.goddessHandler.getGiftsRequest", true)
  194. cb(nil,res)
  195. else
  196. local ex = {}
  197. if(res.s2c_code) then
  198. ex.Code = res.s2c_code
  199. ex.Message = res.s2c_msg
  200. else
  201. ex.Code = 501
  202. ex.Message = "[LuaXmdsNetClient] area.goddessHandler.getGiftsRequest decode error!!"
  203. end
  204. Socket.OnRequestEnd("area.goddessHandler.getGiftsRequest", false,ex.Code,ex.Message)
  205. cb(ex,nil)
  206. end
  207. end, getGiftsRequestEncoder, getGiftsRequestDecoder)
  208. end
  209. local function buyGiftRequestEncoder(msg)
  210. local input = goddessHandler_pb.BuyGiftRequest()
  211. protobuf.FromMessage(input,msg)
  212. return (input:SerializeToString())
  213. end
  214. local function buyGiftRequestDecoder(stream)
  215. local res = goddessHandler_pb.BuyGiftResponse()
  216. res:ParseFromString(stream)
  217. return res
  218. end
  219. function Pomelo.GoddessHandler.buyGiftRequest(c2s_goddessId,c2s_giftId,cb,option)
  220. local msg = {}
  221. msg.c2s_goddessId = c2s_goddessId
  222. msg.c2s_giftId = c2s_giftId
  223. Socket.OnRequestStart("area.goddessHandler.buyGiftRequest", option)
  224. Socket.Request("area.goddessHandler.buyGiftRequest", msg, function(res)
  225. if(res.s2c_code == 200) then
  226. Pomelo.GoddessHandler.lastBuyGiftResponse = res
  227. Socket.OnRequestEnd("area.goddessHandler.buyGiftRequest", true)
  228. cb(nil,res)
  229. else
  230. local ex = {}
  231. if(res.s2c_code) then
  232. ex.Code = res.s2c_code
  233. ex.Message = res.s2c_msg
  234. else
  235. ex.Code = 501
  236. ex.Message = "[LuaXmdsNetClient] area.goddessHandler.buyGiftRequest decode error!!"
  237. end
  238. Socket.OnRequestEnd("area.goddessHandler.buyGiftRequest", false,ex.Code,ex.Message)
  239. cb(ex,nil)
  240. end
  241. end, buyGiftRequestEncoder, buyGiftRequestDecoder)
  242. end
  243. local function unEquipGiftRequestEncoder(msg)
  244. local input = goddessHandler_pb.UnEquipGiftRequest()
  245. protobuf.FromMessage(input,msg)
  246. return (input:SerializeToString())
  247. end
  248. local function unEquipGiftRequestDecoder(stream)
  249. local res = goddessHandler_pb.UnEquipGiftResponse()
  250. res:ParseFromString(stream)
  251. return res
  252. end
  253. function Pomelo.GoddessHandler.unEquipGiftRequest(c2s_goddessId,c2s_giftId,cb,option)
  254. local msg = {}
  255. msg.c2s_goddessId = c2s_goddessId
  256. msg.c2s_giftId = c2s_giftId
  257. Socket.OnRequestStart("area.goddessHandler.unEquipGiftRequest", option)
  258. Socket.Request("area.goddessHandler.unEquipGiftRequest", msg, function(res)
  259. if(res.s2c_code == 200) then
  260. Pomelo.GoddessHandler.lastUnEquipGiftResponse = res
  261. Socket.OnRequestEnd("area.goddessHandler.unEquipGiftRequest", true)
  262. cb(nil,res)
  263. else
  264. local ex = {}
  265. if(res.s2c_code) then
  266. ex.Code = res.s2c_code
  267. ex.Message = res.s2c_msg
  268. else
  269. ex.Code = 501
  270. ex.Message = "[LuaXmdsNetClient] area.goddessHandler.unEquipGiftRequest decode error!!"
  271. end
  272. Socket.OnRequestEnd("area.goddessHandler.unEquipGiftRequest", false,ex.Code,ex.Message)
  273. cb(ex,nil)
  274. end
  275. end, unEquipGiftRequestEncoder, unEquipGiftRequestDecoder)
  276. end
  277. local function equipGiftRequestEncoder(msg)
  278. local input = goddessHandler_pb.EquipGiftRequest()
  279. protobuf.FromMessage(input,msg)
  280. return (input:SerializeToString())
  281. end
  282. local function equipGiftRequestDecoder(stream)
  283. local res = goddessHandler_pb.EquipGiftResponse()
  284. res:ParseFromString(stream)
  285. return res
  286. end
  287. function Pomelo.GoddessHandler.equipGiftRequest(c2s_goddessId,c2s_giftId,cb,option)
  288. local msg = {}
  289. msg.c2s_goddessId = c2s_goddessId
  290. msg.c2s_giftId = c2s_giftId
  291. Socket.OnRequestStart("area.goddessHandler.equipGiftRequest", option)
  292. Socket.Request("area.goddessHandler.equipGiftRequest", msg, function(res)
  293. if(res.s2c_code == 200) then
  294. Pomelo.GoddessHandler.lastEquipGiftResponse = res
  295. Socket.OnRequestEnd("area.goddessHandler.equipGiftRequest", true)
  296. cb(nil,res)
  297. else
  298. local ex = {}
  299. if(res.s2c_code) then
  300. ex.Code = res.s2c_code
  301. ex.Message = res.s2c_msg
  302. else
  303. ex.Code = 501
  304. ex.Message = "[LuaXmdsNetClient] area.goddessHandler.equipGiftRequest decode error!!"
  305. end
  306. Socket.OnRequestEnd("area.goddessHandler.equipGiftRequest", false,ex.Code,ex.Message)
  307. cb(ex,nil)
  308. end
  309. end, equipGiftRequestEncoder, equipGiftRequestDecoder)
  310. end
  311. local function upIntimacyRequestEncoder(msg)
  312. local input = goddessHandler_pb.UpIntimacyRequest()
  313. protobuf.FromMessage(input,msg)
  314. return (input:SerializeToString())
  315. end
  316. local function upIntimacyRequestDecoder(stream)
  317. local res = goddessHandler_pb.UpIntimacyResponse()
  318. res:ParseFromString(stream)
  319. return res
  320. end
  321. function Pomelo.GoddessHandler.upIntimacyRequest(c2s_goddessId,c2s_type,cb,option)
  322. local msg = {}
  323. msg.c2s_goddessId = c2s_goddessId
  324. msg.c2s_type = c2s_type
  325. Socket.OnRequestStart("area.goddessHandler.upIntimacyRequest", option)
  326. Socket.Request("area.goddessHandler.upIntimacyRequest", msg, function(res)
  327. if(res.s2c_code == 200) then
  328. Pomelo.GoddessHandler.lastUpIntimacyResponse = res
  329. Socket.OnRequestEnd("area.goddessHandler.upIntimacyRequest", true)
  330. cb(nil,res)
  331. else
  332. local ex = {}
  333. if(res.s2c_code) then
  334. ex.Code = res.s2c_code
  335. ex.Message = res.s2c_msg
  336. else
  337. ex.Code = 501
  338. ex.Message = "[LuaXmdsNetClient] area.goddessHandler.upIntimacyRequest decode error!!"
  339. end
  340. Socket.OnRequestEnd("area.goddessHandler.upIntimacyRequest", false,ex.Code,ex.Message)
  341. cb(ex,nil)
  342. end
  343. end, upIntimacyRequestEncoder, upIntimacyRequestDecoder)
  344. end
  345. local function upStarRequestEncoder(msg)
  346. local input = goddessHandler_pb.UpStarRequest()
  347. protobuf.FromMessage(input,msg)
  348. return (input:SerializeToString())
  349. end
  350. local function upStarRequestDecoder(stream)
  351. local res = goddessHandler_pb.UpStarResponse()
  352. res:ParseFromString(stream)
  353. return res
  354. end
  355. function Pomelo.GoddessHandler.upStarRequest(c2s_goddessId,cb,option)
  356. local msg = {}
  357. msg.c2s_goddessId = c2s_goddessId
  358. Socket.OnRequestStart("area.goddessHandler.upStarRequest", option)
  359. Socket.Request("area.goddessHandler.upStarRequest", msg, function(res)
  360. if(res.s2c_code == 200) then
  361. Pomelo.GoddessHandler.lastUpStarResponse = res
  362. Socket.OnRequestEnd("area.goddessHandler.upStarRequest", true)
  363. cb(nil,res)
  364. else
  365. local ex = {}
  366. if(res.s2c_code) then
  367. ex.Code = res.s2c_code
  368. ex.Message = res.s2c_msg
  369. else
  370. ex.Code = 501
  371. ex.Message = "[LuaXmdsNetClient] area.goddessHandler.upStarRequest decode error!!"
  372. end
  373. Socket.OnRequestEnd("area.goddessHandler.upStarRequest", false,ex.Code,ex.Message)
  374. cb(ex,nil)
  375. end
  376. end, upStarRequestEncoder, upStarRequestDecoder)
  377. end
  378. local function getCommInfoRequestEncoder(msg)
  379. local input = goddessHandler_pb.GetCommInfoRequest()
  380. protobuf.FromMessage(input,msg)
  381. return (input:SerializeToString())
  382. end
  383. local function getCommInfoRequestDecoder(stream)
  384. local res = goddessHandler_pb.GetCommInfoResponse()
  385. res:ParseFromString(stream)
  386. return res
  387. end
  388. function Pomelo.GoddessHandler.getCommInfoRequest(c2s_goddessId,cb,option)
  389. local msg = {}
  390. msg.c2s_goddessId = c2s_goddessId
  391. Socket.OnRequestStart("area.goddessHandler.getCommInfoRequest", option)
  392. Socket.Request("area.goddessHandler.getCommInfoRequest", msg, function(res)
  393. if(res.s2c_code == 200) then
  394. Pomelo.GoddessHandler.lastGetCommInfoResponse = res
  395. Socket.OnRequestEnd("area.goddessHandler.getCommInfoRequest", true)
  396. cb(nil,res)
  397. else
  398. local ex = {}
  399. if(res.s2c_code) then
  400. ex.Code = res.s2c_code
  401. ex.Message = res.s2c_msg
  402. else
  403. ex.Code = 501
  404. ex.Message = "[LuaXmdsNetClient] area.goddessHandler.getCommInfoRequest decode error!!"
  405. end
  406. Socket.OnRequestEnd("area.goddessHandler.getCommInfoRequest", false,ex.Code,ex.Message)
  407. cb(ex,nil)
  408. end
  409. end, getCommInfoRequestEncoder, getCommInfoRequestDecoder)
  410. end
  411. local function getGoddessDetailRequestEncoder(msg)
  412. local input = goddessHandler_pb.GetGoddessDetailRequest()
  413. protobuf.FromMessage(input,msg)
  414. return (input:SerializeToString())
  415. end
  416. local function getGoddessDetailRequestDecoder(stream)
  417. local res = goddessHandler_pb.GetGoddessDetailResponse()
  418. res:ParseFromString(stream)
  419. return res
  420. end
  421. function Pomelo.GoddessHandler.getGoddessDetailRequest(c2s_goddessId,cb,option)
  422. local msg = {}
  423. msg.c2s_goddessId = c2s_goddessId
  424. Socket.OnRequestStart("area.goddessHandler.getGoddessDetailRequest", option)
  425. Socket.Request("area.goddessHandler.getGoddessDetailRequest", msg, function(res)
  426. if(res.s2c_code == 200) then
  427. Pomelo.GoddessHandler.lastGetGoddessDetailResponse = res
  428. Socket.OnRequestEnd("area.goddessHandler.getGoddessDetailRequest", true)
  429. cb(nil,res)
  430. else
  431. local ex = {}
  432. if(res.s2c_code) then
  433. ex.Code = res.s2c_code
  434. ex.Message = res.s2c_msg
  435. else
  436. ex.Code = 501
  437. ex.Message = "[LuaXmdsNetClient] area.goddessHandler.getGoddessDetailRequest decode error!!"
  438. end
  439. Socket.OnRequestEnd("area.goddessHandler.getGoddessDetailRequest", false,ex.Code,ex.Message)
  440. cb(ex,nil)
  441. end
  442. end, getGoddessDetailRequestEncoder, getGoddessDetailRequestDecoder)
  443. end
  444. local function getAllGoddessRequestEncoder(msg)
  445. local input = goddessHandler_pb.GetAllGoddessRequest()
  446. protobuf.FromMessage(input,msg)
  447. return (input:SerializeToString())
  448. end
  449. local function getAllGoddessRequestDecoder(stream)
  450. local res = goddessHandler_pb.GetAllGoddessResponse()
  451. res:ParseFromString(stream)
  452. return res
  453. end
  454. function Pomelo.GoddessHandler.getAllGoddessRequest(cb,option)
  455. local input = nil
  456. Socket.OnRequestStart("area.goddessHandler.getAllGoddessRequest", option)
  457. Socket.Request("area.goddessHandler.getAllGoddessRequest", input, function(res)
  458. if(res.s2c_code == 200) then
  459. Pomelo.GoddessHandler.lastGetAllGoddessResponse = res
  460. Socket.OnRequestEnd("area.goddessHandler.getAllGoddessRequest", true)
  461. cb(nil,res)
  462. else
  463. local ex = {}
  464. if(res.s2c_code) then
  465. ex.Code = res.s2c_code
  466. ex.Message = res.s2c_msg
  467. else
  468. ex.Code = 501
  469. ex.Message = "[LuaXmdsNetClient] area.goddessHandler.getAllGoddessRequest decode error!!"
  470. end
  471. Socket.OnRequestEnd("area.goddessHandler.getAllGoddessRequest", false,ex.Code,ex.Message)
  472. cb(ex,nil)
  473. end
  474. end, getAllGoddessRequestEncoder, getAllGoddessRequestDecoder)
  475. end
  476. local function goddessEquipDynamicPushDecoder(stream)
  477. local res = goddessHandler_pb.GoddessEquipDynamicPush()
  478. res:ParseFromString(stream)
  479. return res
  480. end
  481. function Pomelo.GoddessHandler.goddessEquipDynamicPush(cb)
  482. Socket.On("area.goddessPush.goddessEquipDynamicPush", function(res)
  483. Pomelo.GoddessHandler.lastGoddessEquipDynamicPush = res
  484. cb(nil,res)
  485. end, goddessEquipDynamicPushDecoder)
  486. end
  487. local function goddessGiftDynamicPushDecoder(stream)
  488. local res = goddessHandler_pb.GoddessGiftDynamicPush()
  489. res:ParseFromString(stream)
  490. return res
  491. end
  492. function Pomelo.GoddessHandler.goddessGiftDynamicPush(cb)
  493. Socket.On("area.goddessPush.goddessGiftDynamicPush", function(res)
  494. Pomelo.GoddessHandler.lastGoddessGiftDynamicPush = res
  495. cb(nil,res)
  496. end, goddessGiftDynamicPushDecoder)
  497. end
  498. --------------------------------Pomelo-------------------------------
  499. return Pomelo