Proto.lua 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. local ItemData = require("bag.Proto").ItemData
  2. local HeroSimple = require("hero.Proto").HeroSimple
  3. tBoxInfo =
  4. {
  5. {"nType", 1, "byte"},
  6. {"tItemData", 1, ItemData},
  7. }
  8. -- 请求宝箱界面信息
  9. CG_TEEASURECHEST_QUERY =
  10. {}
  11. -- 请求宝箱界面信息回包
  12. GC_TEEASURECHEST_QUERY = {
  13. {"nNowPoint", 1, "int"},
  14. {"nNextPoint", 1, "int"},
  15. {"nID", 1, "int"}, -- 积分奖励ID
  16. {"nState", 1, "int"}, -- 积分奖励状态
  17. {"tPointPirze", 1, ItemData}, -- 积分奖励礼包信息
  18. {"tList", 8, tBoxInfo},
  19. }
  20. -- 请求宝箱内奖励信息
  21. CG_TEEASURECHEST_PRIZE_QUERY =
  22. {
  23. {"nBoxType", 1, "byte"}
  24. }
  25. -- 请求宝箱内奖励信息回包
  26. GC_TEEASURECHEST_PRIZE_QUERY =
  27. {
  28. {"tItemData", 10, ItemData},
  29. }
  30. -- 请求打开宝箱
  31. CG_TEEASURECHEST_OPEN =
  32. {
  33. {"nBoxType", 1, "byte"},
  34. {"nNum", 1, "int"},
  35. }
  36. -- 请求自动打开宝箱
  37. CG_TEEASURECHEST_AUTO_OPEN =
  38. {
  39. {"nBoxType", 1, "byte"}
  40. }
  41. -- 请求领取积分奖励
  42. CG_TEEASURECHEST_GET_POINT_PRIZE =
  43. {
  44. {"nID", 1, "int"}
  45. }