Proto.lua 28 KB

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