Proto.lua 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851
  1. local ItemData = require("bag.Proto").ItemData
  2. local RoleBase = require("role.Proto").RoleBase
  3. local HeroSimple = require("hero.Proto").HeroSimple
  4. local Attr = require("role.Proto").Attr
  5. local BuyItem = require("topup.Proto").BuyItem
  6. --------------------- 基础公会信息及操作 ---------------------
  7. UnionMember = {
  8. {"roleBase", 1,RoleBase},
  9. {"post", 1,"byte"}, -- 玩家职位 1:会长,2:官员,3:成员
  10. {"inUnionWar", 1,"byte"}, -- 玩家是否在公会战中 0:不在,1:在
  11. {"lastLogoutTime", 1,"int"}, -- 最近一次离线时间 在线时为0,不在线时为上次离线时间到现在的时间
  12. {"totalDonate",1,"int"}, -- 玩家累计捐赠
  13. {"todayDonate",1,"int"}, -- 玩家当日捐赠
  14. {"liveLv",1,"byte"}, -- 玩家活跃等级
  15. }
  16. UnionMsg = {
  17. {"unionIdentity",1,"string"}, --公会identity
  18. {"unionUuid", 1,"string"}, --公会uuid
  19. {"name", 1,"string"}, --公会名称
  20. {"lv", 1,"byte"}, --公会等级
  21. {"curCnt", 1,"byte"}, --公会当前人数
  22. {"maxCnt", 1,"byte"}, --公会最大人数
  23. {"bannerID", 1,"byte"}, --公会旗帜ID
  24. {"needLv", 1,"short"}, --等级要求
  25. {"notice", 1,"string"}, --公会公告
  26. {"exp", 1,"int"}, --公会当前经验
  27. {"maxExp", 1,"int"}, --公会升级经验
  28. {"presidentName",1,"string"}, --会长名字
  29. {"isApply", 1,"byte"}, --申请状态
  30. }
  31. UnionApplyMsg = {
  32. {"roleBase",1,RoleBase},
  33. {"flag", 1,"byte"}, --处理信息
  34. }
  35. UnionLogMsg = {
  36. {"logMsg", 1,"string"}, --公会日志
  37. }
  38. -- 创建公会
  39. CG_UNION_CREATE =
  40. {
  41. {"name", 1,"string"}, --公会名
  42. {"bannerID", 1,"byte"}, --公会旗帜
  43. {"notice", 1,"string"}, --公告
  44. {"needLv", 1,"short"}, --等级要求
  45. {"needAgree",1,"byte"}, --入会验证
  46. }
  47. -- 解散公会
  48. CG_UNION_DISMISS = {}
  49. -- 公会查询
  50. CG_UNION_QUERY = {
  51. }
  52. -- 已加入公会玩家查询公会信息
  53. GC_UNION_QUERY = {
  54. {"post",1,"byte"}, -- 查询人的职位
  55. {"unionMember",30,UnionMember}, -- 公会成员
  56. {"unionMsg",1,UnionMsg}, -- 公会信息
  57. {"hasApply",1,"byte"}, -- 公会申请信息
  58. {"logDot", 1,"byte"}, -- 公会日志红点
  59. {"leaveUnion",1,"byte"}, -- 是否退出过公会
  60. }
  61. CG_UNION_FIND = {
  62. {"val",1,"string"}, --公会查找
  63. }
  64. -- 公会推荐和查找公用同一条协议
  65. GC_UNION_RECOMMEND = {
  66. {"type",1,"byte"}, -- 消息类型,1推荐,2查询,3创建
  67. {"unionMsg",10,UnionMsg}, -- 公会信息
  68. }
  69. -- 加入公会
  70. CG_UNION_APPLY_JOIN = {
  71. {"unionUuid",1,"string"}, --申请加入公会
  72. }
  73. GC_UNION_APPLY_JOIN = {
  74. {"unionUuid",1,"string"},
  75. }
  76. CG_UNION_CANCEL_APPLY = {
  77. {"unionUuid",1,"string"},
  78. }
  79. -- 同意或拒绝加入公会
  80. CG_UNION_AGREE_JOIN = {
  81. {"uuid",1,"string"}, --玩家ID
  82. {"unionUuid",1,"string"}, --公会ID xxxxx
  83. {"flag",1,"byte"}, --同意与否标识,0不同意,1同意
  84. }
  85. GC_UNION_AGREE_JOIN_UPDATE_MEMBER = {
  86. {"unionMember",30,UnionMember}, -- 公会成员
  87. }
  88. -- 成员主动离开
  89. CG_UNION_LEAVE = {}
  90. GC_UNION_LEAVE = {}
  91. -- 成员管理
  92. CG_UNION_MEMBER_MAN = {
  93. {"type",1,"byte"}, --操作类型,1,删除玩家,2设置官员 3 转让会长
  94. {"uuid",1,"string"}, --被操作人
  95. }
  96. -- 申请
  97. CG_UNION_APPLY_MSG = {}
  98. GC_UNION_APPLY_MSG = {
  99. {"applyMsg",30,UnionApplyMsg}
  100. }
  101. -- 查询公会改名相关
  102. CG_UNION_CHANGE_NAME_QUERY = {}
  103. GC_UNION_CHANGE_NAME_QUERY = {
  104. {"needCost", 1, "int"}, -- 改名需要花费钻石
  105. }
  106. -- 修改公会名
  107. CG_UNION_CHANGE_NAME = {
  108. {"name",1,"string"}, --新的公会名
  109. }
  110. -- 修改公会旗帜
  111. CG_UNION_CHANGE_BANNERID = {
  112. {"bannerID",1,"byte"}, --新的公会旗帜
  113. }
  114. -- 修改工会信息
  115. CG_UNION_CHANGE_MSG = {
  116. {"notice",1,"string"}, --公告
  117. }
  118. GC_UNION_CHANGE_MSG = {
  119. {"unionMsg",1,UnionMsg}, -- 公会信息
  120. }
  121. -- 入会设置查询
  122. CG_UNION_CHANGE_LIMIT_QUERY = {}
  123. GC_UNION_CHANGE_LIMIT_QUERY = {
  124. {"needLv", 1,"short"}, --等级要求
  125. {"needAgree",1,"byte"}, --入会验证
  126. }
  127. -- 修改入会设置
  128. CG_UNION_CHANGE_LIMIT = {
  129. {"needLv", 1,"short"}, --等级要求
  130. {"needAgree",1,"byte"}, --入会验证
  131. }
  132. -- 获得日志信息
  133. CG_UNION_GET_LOG = {
  134. {"type",1,"byte"}, -- 日志类型 0全部 1基础 2公会战 3公会boss 4公会捐赠 5其他
  135. }
  136. GC_UNION_GET_LOG = {
  137. {"logMsg",50,UnionLogMsg},
  138. }
  139. -- 邮件
  140. CG_UNION_MAIL = {
  141. {"content",1,"string"}, -- 邮件内容
  142. }
  143. GC_UNION_MAIL = {
  144. {"flag",1,"byte"}, -- f是否发送成功
  145. }
  146. -- 招募查询
  147. CG_UNION_RECRUIT_QUERY = {}
  148. GC_UNION_RECRUIT_QUERY = {
  149. {"costValue", 1, "int"}, -- 消耗钻石
  150. }
  151. -- 发布招募
  152. CG_UNION_RECRUIT = {
  153. {"str",1,"string"},
  154. }
  155. -- 给加入公会的成员返回公会信息
  156. GC_UNION_MSG = {
  157. {"unionIdentity",1,"string"},
  158. {"unionUuid", 1,"string"},
  159. {"unionName", 1,"string"},
  160. {"bannerID", 1,"byte"},
  161. }
  162. -- 一键拒绝申请
  163. CG_UNION_ONE_KEY_DISAGREE = {}
  164. -- 弹劾会长
  165. CG_UNION_IMPEACH_PRESIDENT = {}
  166. -- 公会日志界面详情查询
  167. CG_UNION_LOG_DETAIL_QUERY = {
  168. {"type",1,"byte"}, -- 日志类型 2公会战 3公会boss 4公会捐赠
  169. }
  170. GC_UNION_LOG_DETAIL_QUERY = {
  171. {"maxCnt",1,"byte"}, -- 公会最大人数
  172. {"leftCnt",1,"byte"}, -- 剩余人数
  173. {"memberDetail",30,UnionMember}, -- 日志详情
  174. }
  175. ------------------------------------公会副本---------------------
  176. UnionOneEctypeRankReward = {
  177. {"minRank", 1, "int"},
  178. {"maxRank", 1, "int"},
  179. {"reward", 2,ItemData}, --奖励
  180. }
  181. UnionOneEctypeRankList = {
  182. {"roleBase",1,RoleBase},
  183. {"damage", 1,"double"}, -- 造成伤害
  184. {"like", 1, "int"}, -- 点赞数
  185. {"isLike", 1, "byte"}, -- 是否点过赞 1 今日点过攒
  186. {"reward", 2,ItemData}, -- 奖励
  187. {"post", 1, "byte"}, -- 职位
  188. }
  189. UnionOneEctypeMsg = {
  190. {"level", 1, "int"},
  191. {"monsterName", 1, "string"},
  192. {"body", 1, "int"},
  193. {"rankList",30,UnionOneEctypeRankList}, --伤害排行榜
  194. {"bloodVolume",1,"double"}, --剩余血量
  195. {"allBlood",1,"double"}, --总血量
  196. {"comEff",1,"double"}, --战斗力
  197. {"reward",2,ItemData}, --一次挑战奖励
  198. {"killReward", 3, ItemData}, -- 击杀奖励
  199. {"rankReward",10,UnionOneEctypeRankReward}, --排名奖励
  200. }
  201. UnionEctypeState ={
  202. {"level", 1, "int"}, -- 副本 等级
  203. {"statu",1,"byte"}, -- 状态 0 死亡 1 正在打 2 还未解锁
  204. -- {"freeTime",1,"int"}, -- 下次可以免费战斗剩余时间
  205. {"bossID",1,"int"}, -- 主Boss 头像id
  206. {"name", 1, "string"},
  207. }
  208. UnionEctypeBuff = {
  209. {"lv", 1, "byte"}, --公会BUF 等级
  210. {"maxLv", 1, "byte"}, --公会BUF 最大等级
  211. {"endTime", 1, "int"}, --BUF 倒数计时 (秒)
  212. {"attr", 2, Attr},
  213. {"upNeed", 1, "int"}, -- 升级BUF 所需要钻石
  214. {"nextAttr", 2, Attr},
  215. }
  216. CG_UNION_ECTYPE_QUERY = {
  217. }
  218. GC_UNION_ECTYPE_QUERY = {
  219. {"isStart", 1, "byte"}, --是否是开始
  220. {"isEnd", 1, "byte"}, --是否结束发送 (俩个字段 防止 副本 不足50)
  221. {"ectypeState",50,UnionEctypeState}, -- 副本状态
  222. }
  223. -- 查询 关卡 副本
  224. CG_UNION_ONE_ECTYPE_QUERY = {
  225. {"level",1,"int"}, -- 查询的关卡
  226. }
  227. GC_UNION_ONE_ECTYPE_QUERY = {
  228. {"ectypeMsg",1,UnionOneEctypeMsg}, -- 关卡信息
  229. {"needZuanShi",1,"int"}, -- 挑战需要钻石
  230. {"curCnt", 1, "int"}, -- 剩余挑战次数
  231. {"curBuy", 1, "int"}, -- 剩余购买次数
  232. {"praiseCnt", 1, "byte"}, -- 可赞次数
  233. {"jijieTime", 1, "int"}, -- 集结倒计时
  234. {"lastHurt", 1, "double"}, -- 当日最近的一次伤害 (关卡不匹配为0)
  235. {"buffMsg", 1 ,UnionEctypeBuff}, -- 公会BUF 相关
  236. }
  237. GC_UNION_ECTYPE_REWARD ={
  238. {"result",1,"byte"}, -- 0:输了,1: 胜利
  239. {"hurt",1,"double"}, -- 伤害
  240. {"reward",2,ItemData}, -- 奖励物品
  241. {"double",1,"byte"},
  242. }
  243. -- 升级或者激活 公会BUF
  244. CG_UNION_UP_ECTYPE_BUFF = {
  245. {"level",1,"byte"}, -- 当时停留的页面
  246. }
  247. CG_UNION_ONE_ECTYPE_SAODANG = {
  248. {"level", 1, "int"},
  249. {"touch", 1, "byte"},
  250. }
  251. -- 公会副本伤害排行点赞
  252. CG_UNION_ECTYPE_RANK_DO_LIKE = {
  253. {"level", 1, "int"},
  254. {"uuid", 1, "string"},
  255. }
  256. -- 公会副本集结
  257. CG_UNION_ECTYPE_JIJIE = {
  258. {"level", 1, "int"},
  259. {"str", 1, "string"},
  260. }
  261. ------------------------------------公会科技----------------------------
  262. UnionTechnology = {
  263. {"lv",1,"byte"}, -- 该科技的等级
  264. {"maxLV", 1,"byte"}, -- 该科技最高等级
  265. {"canLvUp",1,"byte"}, -- 是否能升级,1,可以升级,2,已经达到等级,3,不可升级
  266. {"tier",1,"byte"}, -- 层级
  267. {"techMsgNext",2, Attr}, -- 升级后效果
  268. {"name",1,"string"}, -- 科技名称
  269. {"lvUpNeed",2,ItemData}, -- 升级所需
  270. {"banner", 1, "string"}, -- 科技图标
  271. {"techMsg",2, Attr}, -- 当前效果
  272. }
  273. -- 公会科技
  274. CG_UNION_TECHNOLOGY_QUERY = {
  275. {"occu",1,"byte"}, -- 根据职业来查询,默认点击工会科技时,发送1,点击其他职业按钮是发送职业代号,1 战士,2 法师,3游侠,4刺客,5治疗
  276. }
  277. GC_UNION_TECHNOLOGY_QUERY = {
  278. {"techLv", 1, "int"},
  279. {"technology",8,UnionTechnology}, -- 科技信息
  280. {"tRed", 6, "byte"}, -- 红点信息 1 存在红点 0 不存在红点
  281. }
  282. -- 工会科技升级
  283. CG_UNION_TECHNOLOGY_LV_UP = {
  284. {"occu",1,"byte"}, -- 传入需要升级的科技类型
  285. {"tier",1,"byte"}, -- 传入需要升级的科技层
  286. }
  287. -- 公会科技重置 查询
  288. CG_UNION_TECHNOLOGY_RESET_QUERY = {
  289. {"occu", 1, "byte"} -- 要重置的科技类型
  290. }
  291. GC_UNION_TECHNOLOGY_RESET_QUERY = {
  292. {"zuanshiCnt", 1, "int"},
  293. {"item", 5, ItemData}
  294. }
  295. -- 公会科技重置
  296. CG_UNION_TECHNOLOGY_RESET = {
  297. {"occu",1,"byte"}, -- 重置职业科技
  298. }
  299. GC_UNION_TECHNOLOGY_RESET = {
  300. {"flag",1,"byte"}, -- 重置是否成功
  301. }
  302. ------------------------------------------------公会捐赠---------------------------
  303. UnionDonate = {
  304. {"unionContr",1,ItemData}, -- 公会贡献
  305. {"unionExp",1,"int"}, -- 公会经验
  306. {"needCost",1,ItemData}, -- 捐赠花费
  307. {"type",1,"byte"}, -- 捐赠类型
  308. {"state",1,"byte"}, -- 捐赠状态 0 已捐献 1 可捐献 2 ✔
  309. }
  310. DonateReward = {
  311. {"id",1,"byte"}, -- 达标ID
  312. {"reward",5,ItemData}, -- 奖励
  313. {"needExp",1,"int"}, -- 达标经验
  314. {"state",1,"byte"}, -- 状态 0 不可领 1 可领 2 已领
  315. }
  316. -- 公会捐赠
  317. CG_UNION_DONATE_QUERY = {}
  318. GC_UNION_DONATE_QUERY = {
  319. {"unionLv",1,"byte"}, -- 公会等级
  320. {"unionExp",1,"int"}, -- 公会经验
  321. {"lvUpExp",1,"int"}, -- 升级经验
  322. {"nextMemCnt",1,"byte"}, -- 下一级公会人数
  323. {"todayExp",1,"int"}, -- 今日已获取经验
  324. {"donate",3,UnionDonate}, -- 捐献
  325. {"reach",3,DonateReward}, -- 达标奖励
  326. }
  327. CG_UNION_DONATE_DO = {
  328. {"type",1,"byte"}, -- 捐赠类型
  329. }
  330. CG_UNION_DONATE_REWARD_GET = {
  331. {"id",1,"byte"}, -- 领取ID
  332. }
  333. --------------------------公会活跃度任务
  334. UnionLiveness = {
  335. {"taskID",1,"byte"}, -- 活跃度任务ID
  336. {"type",1,"byte"}, -- 活跃度任务类型 1 日常 2 周常
  337. {"nowReach",1,"int"}, -- 当前达标次数
  338. {"need",1,"int"}, -- 达标所需次数
  339. {"nowCnt",1,"int"}, -- 当前完成总次数
  340. {"maxCnt",1,"byte"}, -- 最大完成次数
  341. {"liveness",1,"int"}, -- 活跃度
  342. {"pageID",1,"int"}, -- 跳转页面
  343. {"status",1,"byte"}, -- 0 未完成 1 已完成
  344. {"name", 1, "string"}, -- 任务名
  345. {"desc", 1, "string"}, -- 任务描述
  346. }
  347. LivenessReward = {
  348. {"reward",5,ItemData}, -- 等级奖励
  349. {"lv",1,"byte"}, -- 第几级
  350. {"status",1,"byte"}, -- 0 不可领 1 可领
  351. }
  352. -- 公会活跃度任务查询
  353. CG_UNION_LIVENESS_QUERY = {
  354. }
  355. GC_UNION_LIVENESS_QUERY = {
  356. {"lv",1,"byte"}, -- 活跃等级
  357. {"maxLiveness",1,"int"}, -- 升级所需总活跃度
  358. {"nowLiveness",1,"int"}, -- 当前活跃度
  359. {"reward",1,LivenessReward}, -- 活跃等级奖励
  360. {"attr",5,Attr}, -- 活跃等级属性
  361. {"nextAttr",5,Attr}, -- 活跃等级下级属性
  362. {"unionLiveness",10,UnionLiveness}, -- 活跃度任务
  363. {"todayLiveness",1,"int"}, -- 今日活跃度
  364. {"weekLiveness",1,"int"}, -- 本周活跃度
  365. }
  366. -- 公会活跃度奖励预览
  367. CG_UNION_LIVENESS_REWARD_QUERY = {
  368. }
  369. GC_UNION_LIVENESS_REWARD_QUERY = {
  370. {"reward",50,LivenessReward}, -- 活跃等级奖励
  371. }
  372. -- 公会活跃度等级奖励领取
  373. CG_UNION_LIVENESS_REWARD_GET = {
  374. {"lv",1,"byte"},
  375. }
  376. ------------------------ 公会红包 ----------------------------------------------
  377. -- 公会红包查询
  378. -- 发红包基础信息
  379. RedBagInfo = {
  380. {"type",1,"byte"}, -- 红包类型
  381. {"index",1,"int"}, -- 金额类型
  382. {"name",1,"string"}, -- 红包名字
  383. {"reward",5,ItemData}, -- 发送者奖励
  384. {"item",2,ItemData}, -- 红包内容
  385. {"maxSendCnt",1,"byte"}, -- 单日最大发送次数
  386. {"bagCnt",1,"byte"}, -- 红包个数
  387. {"desc",1,"string"}, -- 红包寄语
  388. {"buttonTxt",1,"string"}, -- 红包按钮文本
  389. {"rewardTxt",1,"string"}, -- 红包奖励文本
  390. {"buyItem",1,BuyItem}, -- 红包发送buyItem
  391. }
  392. -- 红包记录
  393. UnionRedBag = {
  394. {"id",1,"int"}, -- 红包ID
  395. {"type",1,"byte"}, -- 红包类型
  396. {"name",1,"string"}, -- 红包名字
  397. {"sender",1,RoleBase}, -- 发红包者角色信息
  398. {"senderPost",1,"byte"}, -- 发红包者职务
  399. {"statu",1,"byte"}, -- 红包状态 1 可领取 2 已领取 3 已过期 4红包被领光
  400. {"bagCnt",1,"byte"}, -- 红包个数
  401. {"nowCnt",1,"byte"}, -- 已领个数
  402. {"time",1,"int"}, -- 红包剩余时间
  403. {"desc",1,"string"}, -- 红包寄语
  404. {"item",2,ItemData}, -- 红包内容
  405. }
  406. GetRedBagList = {
  407. {"role",1,RoleBase}, -- 角色信息
  408. {"time",1,"int"}, -- 抢到红包的时间
  409. {"item",1,ItemData}, -- 抢到的物品
  410. }
  411. RedBagBillboard = {
  412. {"role",1,RoleBase}, -- 玩家
  413. {"totalMoney",1,"int"}, -- 红包价值总额(真钱)
  414. {"bagCnt",1,"int"}, -- 红包个数
  415. {"post",1,"byte"}, -- 职位
  416. }
  417. CG_UNION_RED_BAG_QUERY = {}
  418. GC_UNION_RED_BAG_QUERY = {
  419. {"redBagList",50,UnionRedBag}, -- 红包列表
  420. }
  421. -- 单个红包查询
  422. CG_UNION_SINGLE_RED_BAG_QUERY = {
  423. {"id",1,"int"}, -- 红包ID
  424. }
  425. GC_UNION_SINGLE_RED_BAG_QUERY = {
  426. {"getRedBagList",20,GetRedBagList}, -- 抢红包记录
  427. }
  428. -- 发红包
  429. CG_UNION_SEND_RED_BAG_QUERY = {
  430. }
  431. GC_UNION_SEND_RED_BAG_QUERY = {
  432. {"redBag",6,RedBagInfo}, -- 红包
  433. }
  434. -- 抢红包
  435. CG_UNION_GET_RED_BAG = {
  436. {"id",1,"int"}, -- 红包ID
  437. }
  438. -- 红包榜
  439. CG_UNION_RED_BAG_BILLBOARD = {}
  440. GC_UNION_RED_BAG_BILLBOARD = {
  441. {"redBagRank",50,RedBagBillboard}, -- 红包排行榜
  442. }
  443. -------------------------------------------- 公会战 start ------------------------------------------
  444. -- 公会战 查询 玩家
  445. CG_UNION_WAR_QUERY = {}
  446. UnionWarMemberNet = {
  447. {"index", 1, "short"},--位置
  448. {"uuid", 1, "string"},--成员uuid
  449. {"name", 1, "string"},--成员名字
  450. {"star", 1, "byte"},--挑战可获得星数
  451. {"zhandouli", 1, "double"},--战斗力
  452. {"rank", 1, "short"},--排名,0为未上榜
  453. {"x", 1, "int"},
  454. {"y", 1, "int"},
  455. }
  456. UnionWarRankNet = {
  457. {"uuid", 1, "string"},
  458. {"rank", 1, "short"},
  459. {"roleBase",1,RoleBase},
  460. {"job", 1, "byte"},
  461. {"items", 5, ItemData},
  462. {"jifen", 1, "short"},
  463. {"star", 1, "int"},
  464. }
  465. UnionWarThreeRankNet = {
  466. {"name", 1, "string"},
  467. {"rank", 1, "short"},
  468. }
  469. UnionWarTeamNet = {
  470. {"unionUuid", 1, "string"},--公会uuid
  471. {"name", 1, "string"},--公会名
  472. {"bannerID", 1, "byte"},--公会旗帜ID
  473. {"star", 1, "short"},--公会获得总星数
  474. {"svrName", 1, "string"}, -- 公会所在服务器名
  475. {"list", 30, UnionWarMemberNet}--公会成员
  476. }
  477. GC_UNION_WAR_QUERY = {
  478. {"attacker", 1, UnionWarTeamNet},--挑战方公会信息
  479. {"defender", 1, UnionWarTeamNet},--被挑战方公会信息
  480. {"threeRank", 3, UnionWarThreeRankNet}, -- 我方战绩前3名
  481. {"leftTime", 1, "int"},--剩余时间
  482. {"cnt", 1, "short"},
  483. {"maxCnt", 1, "short"},
  484. }
  485. -- 公会 废墟BUF
  486. CG_UNION_WAR_BUFF = {
  487. }
  488. GC_UNION_WAR_BUFF = {
  489. {"buffLv", 1, "int"}, -- 公会战BUF 等级
  490. {"maxBuff", 1, "int"}, -- 公会战BUF 最大等级
  491. {"nowAttr", 5, Attr},
  492. {"nextAttr", 5, Attr},
  493. }
  494. CG_UNION_WAR_END_STATE_QUERY = {
  495. }
  496. GC_UNION_WAR_END_STATE_QUERY = {
  497. {"winState", 1, "byte"}, -- 0 默认 1 我赢了 2 我输了
  498. }
  499. -- 公会战 状态
  500. GC_UNION_WAR_STATE = {
  501. {"actState", 1, "byte"}, --活动状态 0 非活动阶段 1 确认 2 匹配 3 战斗 4 结算
  502. {"unionState", 1, "byte"}, --公会状态 1 匹配成功 2 确认不成功 3 匹配不成功 4 我未参战
  503. {"winState", 1, "byte"}, -- 0 默认 1 我赢了 2 我输了
  504. {"cjDot", 1, "byte"}, -- 成就 红点
  505. {"zgDot", 1, "byte"}, -- 战果红点
  506. {"shopDot", 1, "byte"}, -- 公会商店红点
  507. {"fightDot", 1, "byte"}, -- 战斗次数红点
  508. {"pipeiDot", 1, "byte"}, -- 匹配红点
  509. }
  510. -- 单独更新 公会战 主板子上的红点 (目的 不用请求中心服 得到返回)
  511. GC_UNION_WAR_RED = {
  512. {"cjDot", 1, "byte"}, -- 成就 红点
  513. {"zgDot", 1, "byte"}, -- 战果红点
  514. {"shopDot", 1, "byte"}, -- 公会商店红点
  515. {"fightDot", 1, "byte"}, -- 战斗次数红点
  516. {"pipeiDot", 1, "byte"}, -- 匹配红点
  517. }
  518. CG_UNION_WAR_TIME = {}
  519. GC_UNION_WAR_TIME = {
  520. {"actState", 1, "byte"}, --活动状态 0 非活动阶段 1 确认 2 匹配 3 战斗 4 结算
  521. {"time", 1 , "int"},
  522. }
  523. -- 请求 具体玩家 信息
  524. CG_UNION_WAR_INFO = {
  525. {"unionUuid", 1, "string"},--玩家所在公会id
  526. {"uuid", 1, "string"},--玩家uuid
  527. }
  528. UnionWarDiff = {
  529. {"diff", 1, "int"},--难度
  530. {"rate", 1, "int"},--属性比例
  531. {"star", 1, "byte"},--星数
  532. {"jifen", 1, "int"},--战绩
  533. {"item", 5, ItemData}, -- 胜利获得
  534. }
  535. GC_UNION_WAR_INFO = {
  536. {"unionUuid", 1, "string"},--玩家所在公会id
  537. {"uuid", 1, "string"},
  538. {"index", 1, "short"}, -- index
  539. {"isRobot", 1, "byte"}, -- 是否是机器人
  540. {"star", 1, "byte"}, -- 剩余星级
  541. {"defendCnt", 1, "int"}, -- 防守成功次数
  542. {"zhandouli", 1, "double"}, -- 战斗力
  543. {"list", 6, HeroSimple}, -- 战斗阵容
  544. {"diffList", 3, UnionWarDiff},-- 难度列表
  545. {"cnt", 1, "byte"}, -- 玩家 剩余挑战次数
  546. {"maxCnt", 1, "byte"}, -- 玩家最大挑战次数
  547. {"canFight", 1, "int"}, -- 1可以挑战 2 次数不足 3重复挑战 4对手被挑战中 5星数不足
  548. {"feixuCnt", 1, "byte"}, -- 废墟被挑战次数
  549. }
  550. -- 请求 对战列表
  551. CG_UNION_WAR_MATCH = {}
  552. UnionWarMatchNet = {
  553. {"nameLeft", 1, "string"},
  554. {"rankLeft", 1, "short"},
  555. {"nameRight", 1, "string"},
  556. {"rankRight", 1, "short"},
  557. {"svrNameLeft", 1, "string"},
  558. {"svrNameRight", 1, "string"},
  559. }
  560. GC_UNION_WAR_MATCH = {
  561. {"list", 60, UnionWarMatchNet}--公会成员
  562. }
  563. -- 公会战 挑战结束
  564. GC_UNION_WAR_FIGHT_END = {
  565. {"unionStar", 1, "byte"},--挑战后攻方公会的星数
  566. {"defendStar", 1, "byte"},--挑战后防守用户的分数
  567. {"defendUuid", 1, "string"},--防守用户uuid
  568. {"defIndex", 1, "short"},
  569. {"cnt", 1, "byte"},--挑战后攻方用户已挑战次数
  570. {"diff", 1, "byte"},
  571. {"threeRank", 3, UnionWarThreeRankNet}, -- 我方战绩前3名
  572. }
  573. -- 请求我的公会 进攻日志
  574. CG_UNION_WAR_ATKLOG = {
  575. {"type", 1, "byte"}, -- 0 所有 1 个人
  576. }
  577. --ret = 1 时间,xxxx在攻占了敌方据点,获得了x星以及xx积分
  578. --ret = 2 时间,xxxx挑战了废墟据点,获得xx积分
  579. --ret = 3 时间,时间,xxxx挑战了废墟据点,获得xx积分
  580. --ret = 4 时间,时间,xxxx所在的据点被攻下3星
  581. UnionWarAtkLogNet = {
  582. {"upTime", 1, "int"},
  583. {"ret", 1, "byte"},
  584. {"name", 1, "string"},
  585. {"defName", 1, "string"},
  586. {"star", 1, "byte"},
  587. {"jifen", 1, "short"},
  588. {"unionUuid", 1, "string"},
  589. {"buffLv", 1, "byte"},
  590. {"atkUnionStar", 1, "int"},
  591. }
  592. GC_UNION_WAR_ATKLOG = {
  593. {"list", 100, UnionWarAtkLogNet},
  594. {"type", 1, "byte"},
  595. }
  596. -- 请求 具体玩家的防守日志
  597. CG_UNION_WAR_DEFLOG = {
  598. {"uuid", 1, "string"},
  599. {"unionUuid", 1, "string"},
  600. }
  601. UnionWarDefLogNet = {
  602. {"id", 1, "int"},
  603. {"name", 1, "string"},
  604. {"zhandouli", 1, "double"},
  605. {"diff", 1, "byte"}, -- 挑战难度
  606. {"result", 1, "byte"}, -- 战果
  607. {"time", 1, "int"}, -- 发生时间
  608. {"formation", 1, "string"}, -- 进攻方 阵容
  609. {"videoIndex", 1, "string"}, -- 录像下标
  610. {"list", 6, HeroSimple}, -- 战斗阵容
  611. }
  612. -- 公会战 实况 更新
  613. GC_UNION_WAR_SCENE_INFO = {
  614. {"unionUuid", 1, "string"}, -- 挑战者的公会UUID
  615. {"unionStar", 1, "byte"},--挑战后攻方公会的星数
  616. {"targetUnion", 1, "string"}, -- 被挑战的公会UUID
  617. {"defendUuid", 1, "string"},--防守用户uuid
  618. {"defendStar", 1, "byte"},--挑战后防守用户的星级
  619. {"defIndex", 1, "short"},
  620. {"threeRank", 3, UnionWarThreeRankNet}, -- 我方战绩前3名
  621. }
  622. GC_UNION_WAR_DEFLOG = {
  623. {"zhandouli", 1, "double"}, -- 战斗力
  624. {"heroList", 6, HeroSimple}, -- 防守阵容
  625. {"logList", 3, UnionWarDefLogNet},--防守记录
  626. }
  627. -- 查看 公会战 日志 战斗回放
  628. CG_UNION_WAR_VIDEO = {
  629. {"defendUuid", 1, "string"},
  630. {"videoIndex", 1, "string"}, -- 录像
  631. }
  632. -- 查询公会战荣耀宝箱
  633. CG_UNION_WAR_BOX = {}
  634. UnionWarBoxNet = {
  635. {"isOpen", 1, "byte"},--1 已开 2 未开
  636. {"item", 2, ItemData},
  637. {"name", 1, "string"},
  638. }
  639. GC_UNION_WAR_BOX = {
  640. {"isWin", 1, "byte"},--1 胜者 2 败者
  641. {"leftTime", 1, "int"},
  642. {"list", 30, UnionWarBoxNet},
  643. }
  644. -- 打开荣耀宝箱
  645. CG_UNION_WAR_BOX_GET = {
  646. {"ind", 1, "short"},
  647. }
  648. GC_UNION_WAR_BOX_GET = {
  649. {"ind", 1, "short"},
  650. {"box", 1, UnionWarBoxNet},
  651. }
  652. -- 查询 公会战成就
  653. CG_UNION_WAR_CHENGJIU = {
  654. {"type", 1, "short"}, -- 1 个人成就 2 公会成就
  655. }
  656. UnionWarChengjiuNet = {
  657. {"id", 1, "short"},
  658. {"title", 1, "string"},
  659. {"state", 1, "byte"},-- 0 不可领取 1 可以领取 2 已经领取
  660. {"cnt", 1, "short"},
  661. {"maxCnt", 1, "short"},
  662. {"item", 6, ItemData},
  663. }
  664. GC_UNION_WAR_CHENGJIU = {
  665. {"type", 1, "short"}, -- 1 个人成就 22 2 公会成就
  666. {"list", 60, UnionWarChengjiuNet},
  667. }
  668. -- 领取公会战成就奖励
  669. CG_UNION_WAR_CHENGJIU_GET = {
  670. {"type", 1, "short"},
  671. {"id", 1, "short"},
  672. }
  673. GC_UNION_WAR_CHENGJIU_GET = {
  674. {"type", 1, "short"},
  675. {"id", 1, "short"},
  676. }
  677. -- 公会战 商店查询
  678. CG_UNION_WAR_SHOP_QUERY = {
  679. {"type", 1, "short"},
  680. }
  681. UnionWarShopNet = {
  682. {"id", 1, "byte"}, -- 商品id
  683. {"cnt", 1, "int"}, -- 已购买数量
  684. {"maxCnt", 1, "int"}, -- 限购数量
  685. {"needLv", 1, "int"}, -- 需要等级
  686. {"item", 1, ItemData}, -- 商品道具
  687. {"cost", 1, "int"},
  688. {"discount", 1, "int"},
  689. }
  690. GC_UNION_WAR_SHOP_QUERY = {
  691. {"type", 1, "short"},
  692. {"shopLv", 1, "int"},
  693. {"exp", 1, "int"},
  694. {"maxExp", 1, "int"},
  695. {"list", 30, UnionWarShopNet},
  696. }
  697. -- 公会战商店购买
  698. CG_UNION_WAR_SHOP_BUY = {
  699. {"type", 1, "short"},
  700. {"id", 1, "byte"},
  701. {"cnt", 1, "short"},
  702. }
  703. GC_UNION_WAR_SHOP_BUY = {
  704. {"type", 1, "short"},
  705. {"id", 1, "byte"},
  706. {"cnt", 1, "int"},
  707. }
  708. -- 查询 公会战 战绩排名
  709. CG_UNION_WAR_RANK = {
  710. }
  711. GC_UNION_WAR_RANK = {
  712. {"list", 30, UnionWarRankNet}
  713. }
  714. -- 公会战 战绩排名奖励展示
  715. CG_UNION_WAR_RANK_REWARD = {
  716. }
  717. UnionWarRankRewardNet = {
  718. {"id", 1, "byte"},
  719. {"minRank", 1, "int"},
  720. {"maxRank", 1, "int"},
  721. {"items", 5, ItemData},
  722. }
  723. GC_UNION_WAR_RANK_REWARD = {
  724. {"list", 6, UnionWarRankRewardNet},
  725. }
  726. --------------------------------------------new end----------------------------------