Proto.lua 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. local RoleBase = require("role.Proto").RoleBase
  2. WarOrder = {
  3. {"type", 1,"int"}, -- 1 勇士之证 2 恶魔之证 3 工会之证明 4 竞技之证
  4. {"exp",1,"int"}, -- 战令经验
  5. {"finish",64,"int"}, -- 战令已经领取idx
  6. {"unlock",1,"int"}, -- 战令是否RMB解锁
  7. {"upgradeFinish",64,"int"}, -- 高级战令已经领取idx
  8. {"isRed",1,"int"}, -- 是否有红点 0表示没有1表示有
  9. }
  10. CG_AA_DISCONNECT = {
  11. {"reason", 1, "int"},
  12. {"realReason", 1, "int"},
  13. }
  14. GC_DISCONNECT = {
  15. {"code", 1, "int"},
  16. {"msg", 1, "string"},
  17. }
  18. CG_ASK_LOGIN = {
  19. {"account", 1, "string"},
  20. {"timestamp", 1, "int"}, --登录时间戳
  21. {"authkey", 1, "string"}, --登录校验key
  22. {"lang", 1, "string"}, --多语言-语言包
  23. {"region", 1, "string"}, --多语言-区域
  24. {"ip", 1, "string"}, --登陆ip
  25. {"params", 1, "string"}, --平台信息
  26. }
  27. CG_TEST_PROTO = {
  28. {"account", 1, "string"}, -- 玩家uid
  29. {"param", 1, "string",512} --参数json
  30. }
  31. CG_ASK_DISCONNECT = {
  32. }
  33. GC_ZZ_HUMAN_INFO = {
  34. {"roleBase", 1, RoleBase},
  35. {"isFrist", 1, "int"}, -- 是否第一次登录
  36. {"identity", 1, "string"},
  37. {"bannerID", 1, "byte"},
  38. {"unionName", 1, "string"},
  39. {"unionIdentity", 1, "string"},
  40. {"unionFrame", 1, "int"},
  41. {"vipLv", 1, "byte"},
  42. {"animation", 1, "int"}, -- 立绘
  43. {"background", 1, "int"}, -- 背景
  44. {"debug", 1, "byte"}, -- 是否开发模式
  45. {"worldLv", 1, "short"}, -- 世界等级
  46. {"openDay", 1, "short"}, -- 开服天数
  47. {"guideState", 1, "byte"},
  48. {"drawCardRateList", 1, "string"}, -- 抽奖等级概率列表
  49. {"warOrder" , 4, WarOrder}, -- 战令信息
  50. {"nSpeed", 5, "short"}, -- 速度
  51. {"nServerIndex", 1, "int"}, -- 服务器Index
  52. }
  53. GC_ENTER_CITY = {}
  54. CG_HEART_BEAT = {}
  55. GC_HEART_BEAT = {
  56. {"timeStamp", 1, "int"}, -- 服务器时间戳
  57. }
  58. CG_PHONE_FPS = {
  59. {"fpsType", 1, "string" },
  60. {"startFps", 1, "int" },
  61. {"endFps", 1, "int" },
  62. }
  63. CG_HEART_BEAT_M = {
  64. }
  65. GC_NOTICE_DADIAN = {
  66. {"type", 1, "short"},-- 1支付成功 2第n天登录
  67. {"param", 1, "int"},
  68. {"param2", 1, "int"}, -- 如果type是支付则是buyid 否则是0
  69. }
  70. -- 客户端上报出错
  71. CG_CLIENT_ERROR = {
  72. {"err", 1, "string"},
  73. }
  74. -- 客户端上报资源加载出错
  75. CG_CLIENT_LOAD_ERROR = {
  76. {"err", 1, "string"},
  77. }
  78. LevelUpData = {
  79. {"oldLv", 1, "int"},
  80. {"newLv", 1, "int"},
  81. {"items", 4, require("bag.Proto").ItemData},
  82. {"dialog", 1, "short"}, -- 预告内容
  83. {"dialogName", 1, "string"},
  84. {"content", 1, "string"},
  85. {"noticeLv", 1, "short"},
  86. {"panelId", 1, "int"},
  87. }
  88. GC_LEVEL_UP = {
  89. {"data", 1, LevelUpData},
  90. }
  91. LevelGuideData = {
  92. {"id", 1, "int"},
  93. {"noticeLv", 1, "short"},
  94. {"panelId", 1, "int"},
  95. {"status", 1, "byte"},
  96. {"guideList", 20, "short"},
  97. }
  98. GC_LEVEL_GUIDE = {
  99. {"data", 20, LevelGuideData},
  100. }