Proto.lua 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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. {"identity", 1, "string"},
  24. {"bannerID", 1, "byte"},
  25. {"unionName", 1, "string"},
  26. {"unionIdentity", 1, "string"},
  27. {"unionFrame", 1, "int"},
  28. {"vipLv", 1, "byte"},
  29. {"animation", 1, "int"}, -- 立绘
  30. {"background", 1, "int"}, -- 背景
  31. {"debug", 1, "byte"}, -- 是否开发模式
  32. {"worldLv", 1, "short"}, -- 世界等级
  33. {"openDay", 1, "short"}, -- 开服天数
  34. {"guideState", 1, "byte"},
  35. {"drawCardRateList", 1, "string"}, -- 抽奖等级概率列表
  36. }
  37. GC_ENTER_CITY = {}
  38. CG_HEART_BEAT = {}
  39. GC_HEART_BEAT = {
  40. {"timeStamp", 1, "int"}, -- 服务器时间戳
  41. }
  42. CG_PHONE_FPS = {
  43. {"fpsType", 1, "string" },
  44. {"startFps", 1, "int" },
  45. {"endFps", 1, "int" },
  46. }
  47. CG_HEART_BEAT_M = {
  48. }
  49. GC_NOTICE_DADIAN = {
  50. {"type", 1, "short"},-- 1支付成功 2第n天登录
  51. {"param", 1, "int"},
  52. {"param2", 1, "int"}, -- 如果type是支付则是buyid 否则是0
  53. }
  54. -- 客户端上报出错
  55. CG_CLIENT_ERROR = {
  56. {"err", 1, "string"},
  57. }
  58. -- 客户端上报资源加载出错
  59. CG_CLIENT_LOAD_ERROR = {
  60. {"err", 1, "string"},
  61. }
  62. LevelUpData = {
  63. {"oldLv", 1, "int"},
  64. {"newLv", 1, "int"},
  65. {"items", 4, require("bag.Proto").ItemData},
  66. {"dialog", 1, "short"}, -- 预告内容
  67. {"dialogName", 1, "string"},
  68. {"content", 1, "string"},
  69. {"noticeLv", 1, "short"},
  70. {"panelId", 1, "int"},
  71. }
  72. GC_LEVEL_UP = {
  73. {"data", 1, LevelUpData},
  74. }
  75. LevelGuideData = {
  76. {"id", 1, "int"},
  77. {"noticeLv", 1, "short"},
  78. {"panelId", 1, "int"},
  79. {"status", 1, "byte"},
  80. {"guideList", 20, "short"},
  81. }
  82. GC_LEVEL_GUIDE = {
  83. {"data", 20, LevelGuideData},
  84. }