local HeroSimple = require("hero.Proto").HeroSimple local RoleBase = require("role.Proto").RoleBase local ItemData = require("bag.Proto").ItemData local CombatFinishData = require("combat.Proto").CombatFinishData ReportData = { {"id", 1, "string"}, --战报标识 {"type", 1, "byte"}, --战报类型 {"atkRole", 1, RoleBase}, --攻方玩家信息 {"defRole", 1, RoleBase}, --守方玩家信息 {"atkHeros", 10, HeroSimple}, --攻方英雄阵容 {"defHeros", 10, HeroSimple}, --守方英雄阵容 {"atkRank", 1, "short"}, -- 攻方排名 {"defRank", 1, "short"}, -- 守方排名 {"atkFormation", 1, "short"}, --阵容标识 {"defFormation", 1, "short"}, --防守反阵容标识 {"round", 1, "byte"}, --回合数 {"roundMax", 1, "byte"}, --最大回合数 {"admire", 1, "int"}, -- 点赞次数 {"collect", 1, "int"}, -- 收藏次数 {"time", 1, "int"}, -- 战斗时间 {"result", 1, "byte"}, -- 战斗结果 {"isCollect", 1, "byte"}, -- 是否收藏 {"isAdmire", 1, "byte"}, -- 是否点赞 } -- 查询 CG_WAR_REPORT_QUERY = { {"type", 1, "byte"}, {"questType", 1, "byte"}, --查询数据类型 1[战报数据] 2[个人收藏] 3[我的战报] } -- 查询回馈 GC_WAR_REPORT_QUERY = { {"warReportList", 5, ReportData}, {"isEnd", 1, "byte"}, {"admireCnt", 1, "byte"}, --剩余点赞次数 {"admireMax", 1, "byte"}, --最大点赞次数 {"questType", 1, "byte"}, --查询数据类型 } -- 回放 CG_WAR_REPORT_PLAY_BACK = { {"type", 1, "byte"}, {"id", 1, "string"}, } CG_WAR_REPORT_COLLECT = { {"type", 1, "byte"}, {"id", 1, "string"}, {"op", 1, "byte"}, } -- 点赞 CG_WAR_REPORT_ADMIRE = { {"type", 1, "byte"}, {"id", 1, "string"}, } -- type=2[收藏] type=1 [点赞] GC_WAR_REPORT_OP_RESULT = { {"opType", 1, "byte"}, {"id", 1, "string"}, {"result", 1, "short"}, } -- 查看伤害记录 CG_WAR_REPROT_HARM = { {"type", 1, "byte"}, {"id", 1, "string"}, } -- 伤害记录 GC_WAR_REPROT_HARM = { {"data", 1, CombatFinishData}, }