Proto.lua 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. local ItemData = require("bag.Proto").ItemData
  2. -- 查询转盘
  3. CG_ZHUANPAN_QUERY = {
  4. {"type", 1, "byte"}, -- 1帮助 2概率
  5. }
  6. RewardData = {
  7. {"id", 1, "int"},
  8. {"item", 1, ItemData},
  9. {"chance", 1, "int"},
  10. {"getCnt", 1, "byte"}, -- 已中奖次数
  11. {"maxCnt", 1, "byte"}, -- 商品中奖上限
  12. }
  13. LuckData = {
  14. {"id", 1, "int"},
  15. {"item", 1, ItemData},
  16. {"status", 1, "byte"}, -- 状态 0-未领取 1-可领 2-已领
  17. }
  18. RewardRecord = {
  19. {"id", 1, "byte"},
  20. {"tips" , 1, "string"},
  21. {"timer", 1, "int"},
  22. {"order", 1, "int"}
  23. }
  24. DrawChance = {
  25. {"tips" , 1, "string"},
  26. {"chance" , 1, "double"},
  27. }
  28. GC_ZHUANPAN_QUERY = {
  29. {"type", 1, "byte"},
  30. {"refreshTime", 1, "int"}, -- 强制刷新时间
  31. {"freeRefreshTime", 1, "int"}, -- 免费刷新时间
  32. {"itemID", 1, ItemData}, -- 抽奖所需道具
  33. {"itemCnt", 2, "short"}, -- 1抽1次花费 2抽多次花费
  34. {"zuanshiNeed", 1, ItemData}, -- 刷新花费道具
  35. {"luck", 1, "short"}, -- 幸运值
  36. {"luckList", 10, LuckData}, -- 幸运值
  37. {"record", 15, RewardRecord}, -- 奖励记录
  38. {"list", 8, RewardData},
  39. {"drawCnt", 1, "byte"}, -- 多次许愿次数(普通15次,高级10次)
  40. {"needLv", 1, "short"}, -- 需要等级
  41. {"needVipLv", 1, "byte"}, -- 多次许愿开启需要VIP等级
  42. {"chanceList", 50, DrawChance}, -- 概率预览
  43. {"red1", 1, "byte"},
  44. {"red2", 1, "byte"},
  45. {"isFirst", 1, "byte"}, -- 单日第一次
  46. }
  47. -- 刷新
  48. CG_ZHUANPAN_REFRESH = {
  49. {"type", 1, "byte"},
  50. }
  51. -- 抽奖
  52. CG_ZHUANPAN_GET_REWARD = {
  53. {"type", 1, "byte"},
  54. {"cnt", 1, "short"},
  55. }
  56. GC_ZHUANPAN_GET_REWARD = {
  57. {"type", 1, "byte"},
  58. {"list", 15, "short"},
  59. {"luckItem", 2, ItemData},
  60. {"item", 15, ItemData},
  61. }
  62. -- 获取进度奖励
  63. CG_ZHUANPAN_GET_LUCK = {
  64. {"type", 1, "byte"},
  65. {"id", 1, "short"},
  66. }
  67. -- 购买许愿珠
  68. CG_BUY_ZHUANPAN_CNT = {
  69. {"type", 1, "byte"}, -- 1基础转盘 2高级转盘
  70. {"cnt", 1, "int"},
  71. }
  72. GC_BUY_ZHUANPAN_CNT = {
  73. }
  74. -- 精灵祝福
  75. CG_XUNXING_JINGLINGZHUFU = {}
  76. GC_XUNXING_JINGLINGZHUFU = {
  77. {"cnt",1,"byte"}, -- 随机次数
  78. }