Proto.lua 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. local RoleBase = require("role.Proto").RoleBase
  2. CG_AA_DISCONNECT = {
  3. {"reason", 1, "int"},
  4. {"realReason", 1, "int"},
  5. }
  6. GC_DISCONNECT = {
  7. {"code", 1, "int"},
  8. {"msg", 1, "string"},
  9. }
  10. CG_ASK_LOGIN = {
  11. {"account", 1, "string"},
  12. {"timestamp", 1, "int"}, --登录时间戳
  13. {"authkey", 1, "string"}, --登录校验key
  14. {"lang", 1, "string"}, --多语言-语言包
  15. {"region", 1, "string"}, --多语言-区域
  16. {"ip", 1, "string"}, --登陆ip
  17. {"params", 1, "string"}, --平台信息
  18. }
  19. CG_ASK_DISCONNECT = {
  20. }
  21. GC_ZZ_HUMAN_INFO = {
  22. {"roleBase", 1, RoleBase},
  23. {"isFrist", 1, "int"}, -- 是否第一次登录
  24. {"identity", 1, "string"},
  25. {"bannerID", 1, "byte"},
  26. {"unionName", 1, "string"},
  27. {"unionIdentity", 1, "string"},
  28. {"unionFrame", 1, "int"},
  29. {"vipLv", 1, "byte"},
  30. {"animation", 1, "int"}, -- 立绘
  31. {"background", 1, "int"}, -- 背景
  32. {"debug", 1, "byte"}, -- 是否开发模式
  33. {"worldLv", 1, "short"}, -- 世界等级
  34. {"openDay", 1, "short"}, -- 开服天数
  35. {"guideState", 1, "byte"},
  36. {"drawCardRateList", 1, "string"}, -- 抽奖等级概率列表
  37. }
  38. GC_ENTER_CITY = {}
  39. CG_HEART_BEAT = {}
  40. GC_HEART_BEAT = {
  41. {"timeStamp", 1, "int"}, -- 服务器时间戳
  42. }
  43. CG_PHONE_FPS = {
  44. {"fpsType", 1, "string" },
  45. {"startFps", 1, "int" },
  46. {"endFps", 1, "int" },
  47. }
  48. CG_HEART_BEAT_M = {
  49. }
  50. GC_NOTICE_DADIAN = {
  51. {"type", 1, "short"},-- 1支付成功 2第n天登录
  52. {"param", 1, "int"},
  53. {"param2", 1, "int"}, -- 如果type是支付则是buyid 否则是0
  54. }
  55. -- 客户端上报出错
  56. CG_CLIENT_ERROR = {
  57. {"err", 1, "string"},
  58. }
  59. -- 客户端上报资源加载出错
  60. CG_CLIENT_LOAD_ERROR = {
  61. {"err", 1, "string"},
  62. }
  63. LevelUpData = {
  64. {"oldLv", 1, "int"},
  65. {"newLv", 1, "int"},
  66. {"items", 4, require("bag.Proto").ItemData},
  67. {"dialog", 1, "short"}, -- 预告内容
  68. {"dialogName", 1, "string"},
  69. {"content", 1, "string"},
  70. {"noticeLv", 1, "short"},
  71. {"panelId", 1, "int"},
  72. }
  73. GC_LEVEL_UP = {
  74. {"data", 1, LevelUpData},
  75. }
  76. LevelGuideData = {
  77. {"id", 1, "int"},
  78. {"noticeLv", 1, "short"},
  79. {"panelId", 1, "int"},
  80. {"status", 1, "byte"},
  81. {"guideList", 20, "short"},
  82. }
  83. GC_LEVEL_GUIDE = {
  84. {"data", 20, LevelGuideData},
  85. }