Proto.lua 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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. }
  36. GC_ENTER_CITY = {}
  37. CG_HEART_BEAT = {}
  38. GC_HEART_BEAT = {
  39. {"timeStamp", 1, "int"}, -- 服务器时间戳
  40. }
  41. CG_PHONE_FPS = {
  42. {"fpsType", 1, "string" },
  43. {"startFps", 1, "int" },
  44. {"endFps", 1, "int" },
  45. }
  46. CG_HEART_BEAT_M = {
  47. }
  48. GC_NOTICE_DADIAN = {
  49. {"type", 1, "short"},-- 1支付成功 2第n天登录
  50. {"param", 1, "int"},
  51. {"param2", 1, "int"}, -- 如果type是支付则是buyid 否则是0
  52. }
  53. -- 客户端上报出错
  54. CG_CLIENT_ERROR = {
  55. {"err", 1, "string"},
  56. }
  57. -- 客户端上报资源加载出错
  58. CG_CLIENT_LOAD_ERROR = {
  59. {"err", 1, "string"},
  60. }
  61. LevelUpData = {
  62. {"oldLv", 1, "int"},
  63. {"newLv", 1, "int"},
  64. {"items", 4, require("bag.Proto").ItemData},
  65. {"dialog", 1, "short"}, -- 预告内容
  66. {"dialogName", 1, "string"},
  67. {"content", 1, "string"},
  68. {"noticeLv", 1, "short"},
  69. {"panelId", 1, "int"},
  70. }
  71. GC_LEVEL_UP = {
  72. {"data", 1, LevelUpData},
  73. }
  74. LevelGuideData = {
  75. {"id", 1, "int"},
  76. {"noticeLv", 1, "short"},
  77. {"panelId", 1, "int"},
  78. {"status", 1, "byte"},
  79. {"guideList", 20, "short"},
  80. }
  81. GC_LEVEL_GUIDE = {
  82. {"data", 20, LevelGuideData},
  83. }