Proto.lua 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. local HeroSimple = require("hero.Proto").HeroSimple
  2. local RoleBase = require("role.Proto").RoleBase
  3. local ItemData = require("bag.Proto").ItemData
  4. local CombatFinishData = require("combat.Proto").CombatFinishData
  5. ReportData = {
  6. {"id", 1, "string"}, --战报标识
  7. {"type", 1, "byte"}, --战报类型
  8. {"atkRole", 1, RoleBase}, --攻方玩家信息
  9. {"defRole", 1, RoleBase}, --守方玩家信息
  10. {"atkHeros", 10, HeroSimple}, --攻方英雄阵容
  11. {"defHeros", 10, HeroSimple}, --守方英雄阵容
  12. {"atkRank", 1, "short"}, -- 攻方排名
  13. {"defRank", 1, "short"}, -- 守方排名
  14. {"atkFormation", 1, "short"}, --阵容标识
  15. {"defFormation", 1, "short"}, --防守反阵容标识
  16. {"round", 1, "byte"}, --回合数
  17. {"roundMax", 1, "byte"}, --最大回合数
  18. {"admire", 1, "int"}, -- 点赞次数
  19. {"collect", 1, "int"}, -- 收藏次数
  20. {"time", 1, "int"}, -- 战斗时间
  21. {"result", 1, "byte"}, -- 战斗结果
  22. {"isCollect", 1, "byte"}, -- 是否收藏
  23. {"isAdmire", 1, "byte"}, -- 是否点赞
  24. }
  25. -- 查询
  26. CG_WAR_REPORT_QUERY = {
  27. {"type", 1, "byte"},
  28. {"questType", 1, "byte"}, --查询数据类型 1[战报数据] 2[个人收藏] 3[我的战报]
  29. }
  30. -- 查询回馈
  31. GC_WAR_REPORT_QUERY = {
  32. {"warReportList", 5, ReportData},
  33. {"isEnd", 1, "byte"},
  34. {"admireCnt", 1, "byte"}, --剩余点赞次数
  35. {"admireMax", 1, "byte"}, --最大点赞次数
  36. {"questType", 1, "byte"}, --查询数据类型
  37. }
  38. -- 回放
  39. CG_WAR_REPORT_PLAY_BACK = {
  40. {"type", 1, "byte"},
  41. {"id", 1, "string"},
  42. }
  43. CG_WAR_REPORT_COLLECT = {
  44. {"type", 1, "byte"},
  45. {"id", 1, "string"},
  46. {"op", 1, "byte"},
  47. }
  48. -- 点赞
  49. CG_WAR_REPORT_ADMIRE = {
  50. {"type", 1, "byte"},
  51. {"id", 1, "string"},
  52. }
  53. -- type=2[收藏] type=1 [点赞]
  54. GC_WAR_REPORT_OP_RESULT = {
  55. {"opType", 1, "byte"},
  56. {"id", 1, "string"},
  57. {"result", 1, "short"},
  58. }
  59. -- 查看伤害记录
  60. CG_WAR_REPROT_HARM = {
  61. {"type", 1, "byte"},
  62. {"id", 1, "string"},
  63. }
  64. -- 伤害记录
  65. GC_WAR_REPROT_HARM = {
  66. {"data", 1, CombatFinishData},
  67. }