battle_report.pb.go 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886
  1. // message结构的属性名请使用 驼峰小写字母开始
  2. // Code generated by protoc-gen-go. DO NOT EDIT.
  3. // versions:
  4. // protoc-gen-go v1.36.8
  5. // protoc v6.31.1
  6. // source: battle_report.proto
  7. package pb
  8. import (
  9. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  10. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  11. reflect "reflect"
  12. sync "sync"
  13. unsafe "unsafe"
  14. )
  15. const (
  16. // Verify that this generated code is sufficiently up-to-date.
  17. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  18. // Verify that runtime/protoimpl is sufficiently up-to-date.
  19. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  20. )
  21. // 战报信息
  22. type ReportInfo struct {
  23. state protoimpl.MessageState `protogen:"open.v1"`
  24. // 个人收藏战报列表
  25. List []*ReportLike `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
  26. // 未读战报数量
  27. Count int32 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
  28. unknownFields protoimpl.UnknownFields
  29. sizeCache protoimpl.SizeCache
  30. }
  31. func (x *ReportInfo) Reset() {
  32. *x = ReportInfo{}
  33. mi := &file_battle_report_proto_msgTypes[0]
  34. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  35. ms.StoreMessageInfo(mi)
  36. }
  37. func (x *ReportInfo) String() string {
  38. return protoimpl.X.MessageStringOf(x)
  39. }
  40. func (*ReportInfo) ProtoMessage() {}
  41. func (x *ReportInfo) ProtoReflect() protoreflect.Message {
  42. mi := &file_battle_report_proto_msgTypes[0]
  43. if x != nil {
  44. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  45. if ms.LoadMessageInfo() == nil {
  46. ms.StoreMessageInfo(mi)
  47. }
  48. return ms
  49. }
  50. return mi.MessageOf(x)
  51. }
  52. // Deprecated: Use ReportInfo.ProtoReflect.Descriptor instead.
  53. func (*ReportInfo) Descriptor() ([]byte, []int) {
  54. return file_battle_report_proto_rawDescGZIP(), []int{0}
  55. }
  56. func (x *ReportInfo) GetList() []*ReportLike {
  57. if x != nil {
  58. return x.List
  59. }
  60. return nil
  61. }
  62. func (x *ReportInfo) GetCount() int32 {
  63. if x != nil {
  64. return x.Count
  65. }
  66. return 0
  67. }
  68. // 战报组列表
  69. type ReportGroupList struct {
  70. state protoimpl.MessageState `protogen:"open.v1"`
  71. List []*ReportGroup `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
  72. unknownFields protoimpl.UnknownFields
  73. sizeCache protoimpl.SizeCache
  74. }
  75. func (x *ReportGroupList) Reset() {
  76. *x = ReportGroupList{}
  77. mi := &file_battle_report_proto_msgTypes[1]
  78. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  79. ms.StoreMessageInfo(mi)
  80. }
  81. func (x *ReportGroupList) String() string {
  82. return protoimpl.X.MessageStringOf(x)
  83. }
  84. func (*ReportGroupList) ProtoMessage() {}
  85. func (x *ReportGroupList) ProtoReflect() protoreflect.Message {
  86. mi := &file_battle_report_proto_msgTypes[1]
  87. if x != nil {
  88. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  89. if ms.LoadMessageInfo() == nil {
  90. ms.StoreMessageInfo(mi)
  91. }
  92. return ms
  93. }
  94. return mi.MessageOf(x)
  95. }
  96. // Deprecated: Use ReportGroupList.ProtoReflect.Descriptor instead.
  97. func (*ReportGroupList) Descriptor() ([]byte, []int) {
  98. return file_battle_report_proto_rawDescGZIP(), []int{1}
  99. }
  100. func (x *ReportGroupList) GetList() []*ReportGroup {
  101. if x != nil {
  102. return x.List
  103. }
  104. return nil
  105. }
  106. // 收藏战报信息
  107. type ReportLike struct {
  108. state protoimpl.MessageState `protogen:"open.v1"`
  109. // 收藏类型 1:战报组 2:单个战报
  110. LikeType int32 `protobuf:"varint,1,opt,name=likeType,proto3" json:"likeType,omitempty"`
  111. // 收藏ID
  112. LikeID string `protobuf:"bytes,2,opt,name=likeID,proto3" json:"likeID,omitempty"`
  113. // 战报列表, likeType=2时,只会有一个战报
  114. List []*Report `protobuf:"bytes,3,rep,name=list,proto3" json:"list,omitempty"`
  115. unknownFields protoimpl.UnknownFields
  116. sizeCache protoimpl.SizeCache
  117. }
  118. func (x *ReportLike) Reset() {
  119. *x = ReportLike{}
  120. mi := &file_battle_report_proto_msgTypes[2]
  121. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  122. ms.StoreMessageInfo(mi)
  123. }
  124. func (x *ReportLike) String() string {
  125. return protoimpl.X.MessageStringOf(x)
  126. }
  127. func (*ReportLike) ProtoMessage() {}
  128. func (x *ReportLike) ProtoReflect() protoreflect.Message {
  129. mi := &file_battle_report_proto_msgTypes[2]
  130. if x != nil {
  131. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  132. if ms.LoadMessageInfo() == nil {
  133. ms.StoreMessageInfo(mi)
  134. }
  135. return ms
  136. }
  137. return mi.MessageOf(x)
  138. }
  139. // Deprecated: Use ReportLike.ProtoReflect.Descriptor instead.
  140. func (*ReportLike) Descriptor() ([]byte, []int) {
  141. return file_battle_report_proto_rawDescGZIP(), []int{2}
  142. }
  143. func (x *ReportLike) GetLikeType() int32 {
  144. if x != nil {
  145. return x.LikeType
  146. }
  147. return 0
  148. }
  149. func (x *ReportLike) GetLikeID() string {
  150. if x != nil {
  151. return x.LikeID
  152. }
  153. return ""
  154. }
  155. func (x *ReportLike) GetList() []*Report {
  156. if x != nil {
  157. return x.List
  158. }
  159. return nil
  160. }
  161. // 战报组
  162. type ReportGroup struct {
  163. state protoimpl.MessageState `protogen:"open.v1"`
  164. // 战报组ID
  165. GroupID string `protobuf:"bytes,1,opt,name=groupID,proto3" json:"groupID,omitempty"`
  166. // 分类ID 1:开拓 2:交战
  167. Category int32 `protobuf:"varint,2,opt,name=category,proto3" json:"category,omitempty"`
  168. // 战报列表
  169. List []*Report `protobuf:"bytes,3,rep,name=list,proto3" json:"list,omitempty"`
  170. // 是否已读
  171. IsRead bool `protobuf:"varint,4,opt,name=isRead,proto3" json:"isRead,omitempty"`
  172. unknownFields protoimpl.UnknownFields
  173. sizeCache protoimpl.SizeCache
  174. }
  175. func (x *ReportGroup) Reset() {
  176. *x = ReportGroup{}
  177. mi := &file_battle_report_proto_msgTypes[3]
  178. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  179. ms.StoreMessageInfo(mi)
  180. }
  181. func (x *ReportGroup) String() string {
  182. return protoimpl.X.MessageStringOf(x)
  183. }
  184. func (*ReportGroup) ProtoMessage() {}
  185. func (x *ReportGroup) ProtoReflect() protoreflect.Message {
  186. mi := &file_battle_report_proto_msgTypes[3]
  187. if x != nil {
  188. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  189. if ms.LoadMessageInfo() == nil {
  190. ms.StoreMessageInfo(mi)
  191. }
  192. return ms
  193. }
  194. return mi.MessageOf(x)
  195. }
  196. // Deprecated: Use ReportGroup.ProtoReflect.Descriptor instead.
  197. func (*ReportGroup) Descriptor() ([]byte, []int) {
  198. return file_battle_report_proto_rawDescGZIP(), []int{3}
  199. }
  200. func (x *ReportGroup) GetGroupID() string {
  201. if x != nil {
  202. return x.GroupID
  203. }
  204. return ""
  205. }
  206. func (x *ReportGroup) GetCategory() int32 {
  207. if x != nil {
  208. return x.Category
  209. }
  210. return 0
  211. }
  212. func (x *ReportGroup) GetList() []*Report {
  213. if x != nil {
  214. return x.List
  215. }
  216. return nil
  217. }
  218. func (x *ReportGroup) GetIsRead() bool {
  219. if x != nil {
  220. return x.IsRead
  221. }
  222. return false
  223. }
  224. // 战报信息
  225. type Report struct {
  226. state protoimpl.MessageState `protogen:"open.v1"`
  227. // 战报ID
  228. ReportID string `protobuf:"bytes,1,opt,name=reportID,proto3" json:"reportID,omitempty"`
  229. // 战斗类型 1:遭遇战 2:守军战 3: 攻城-驻城部队战 4:攻城-耐久战
  230. BattleType int32 `protobuf:"varint,2,opt,name=battleType,proto3" json:"battleType,omitempty"`
  231. // 坐标点
  232. Point *Point `protobuf:"bytes,3,opt,name=point,proto3" json:"point,omitempty"`
  233. // 地块配置ID 显示地块对象名称
  234. ConfigID int32 `protobuf:"varint,4,opt,name=configID,proto3" json:"configID,omitempty"`
  235. // 时间
  236. Time int64 `protobuf:"varint,5,opt,name=time,proto3" json:"time,omitempty"`
  237. // 是否是防守方
  238. IsDefender bool `protobuf:"varint,6,opt,name=isDefender,proto3" json:"isDefender,omitempty"`
  239. // 进攻方
  240. Attacker *BattleReportTeam `protobuf:"bytes,7,opt,name=attacker,proto3" json:"attacker,omitempty"`
  241. // 防守方
  242. Defender *BattleReportTeam `protobuf:"bytes,8,opt,name=defender,proto3" json:"defender,omitempty"`
  243. // 战斗结果 0:胜利 1:失败 -1:平局
  244. Result int32 `protobuf:"varint,9,opt,name=result,proto3" json:"result,omitempty"`
  245. // 战果
  246. ReportResult *ReportResult `protobuf:"bytes,10,opt,name=reportResult,proto3" json:"reportResult,omitempty"`
  247. // 战斗录像ID
  248. BattleRecordID string `protobuf:"bytes,11,opt,name=battleRecordID,proto3" json:"battleRecordID,omitempty"`
  249. unknownFields protoimpl.UnknownFields
  250. sizeCache protoimpl.SizeCache
  251. }
  252. func (x *Report) Reset() {
  253. *x = Report{}
  254. mi := &file_battle_report_proto_msgTypes[4]
  255. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  256. ms.StoreMessageInfo(mi)
  257. }
  258. func (x *Report) String() string {
  259. return protoimpl.X.MessageStringOf(x)
  260. }
  261. func (*Report) ProtoMessage() {}
  262. func (x *Report) ProtoReflect() protoreflect.Message {
  263. mi := &file_battle_report_proto_msgTypes[4]
  264. if x != nil {
  265. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  266. if ms.LoadMessageInfo() == nil {
  267. ms.StoreMessageInfo(mi)
  268. }
  269. return ms
  270. }
  271. return mi.MessageOf(x)
  272. }
  273. // Deprecated: Use Report.ProtoReflect.Descriptor instead.
  274. func (*Report) Descriptor() ([]byte, []int) {
  275. return file_battle_report_proto_rawDescGZIP(), []int{4}
  276. }
  277. func (x *Report) GetReportID() string {
  278. if x != nil {
  279. return x.ReportID
  280. }
  281. return ""
  282. }
  283. func (x *Report) GetBattleType() int32 {
  284. if x != nil {
  285. return x.BattleType
  286. }
  287. return 0
  288. }
  289. func (x *Report) GetPoint() *Point {
  290. if x != nil {
  291. return x.Point
  292. }
  293. return nil
  294. }
  295. func (x *Report) GetConfigID() int32 {
  296. if x != nil {
  297. return x.ConfigID
  298. }
  299. return 0
  300. }
  301. func (x *Report) GetTime() int64 {
  302. if x != nil {
  303. return x.Time
  304. }
  305. return 0
  306. }
  307. func (x *Report) GetIsDefender() bool {
  308. if x != nil {
  309. return x.IsDefender
  310. }
  311. return false
  312. }
  313. func (x *Report) GetAttacker() *BattleReportTeam {
  314. if x != nil {
  315. return x.Attacker
  316. }
  317. return nil
  318. }
  319. func (x *Report) GetDefender() *BattleReportTeam {
  320. if x != nil {
  321. return x.Defender
  322. }
  323. return nil
  324. }
  325. func (x *Report) GetResult() int32 {
  326. if x != nil {
  327. return x.Result
  328. }
  329. return 0
  330. }
  331. func (x *Report) GetReportResult() *ReportResult {
  332. if x != nil {
  333. return x.ReportResult
  334. }
  335. return nil
  336. }
  337. func (x *Report) GetBattleRecordID() string {
  338. if x != nil {
  339. return x.BattleRecordID
  340. }
  341. return ""
  342. }
  343. // 战果
  344. type ReportResult struct {
  345. state protoimpl.MessageState `protogen:"open.v1"`
  346. // 资源列表
  347. Rewards *AssetList `protobuf:"bytes,1,opt,name=rewards,proto3" json:"rewards,omitempty"`
  348. // 耐久扣除数量
  349. Durability int32 `protobuf:"varint,2,opt,name=durability,proto3" json:"durability,omitempty"`
  350. unknownFields protoimpl.UnknownFields
  351. sizeCache protoimpl.SizeCache
  352. }
  353. func (x *ReportResult) Reset() {
  354. *x = ReportResult{}
  355. mi := &file_battle_report_proto_msgTypes[5]
  356. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  357. ms.StoreMessageInfo(mi)
  358. }
  359. func (x *ReportResult) String() string {
  360. return protoimpl.X.MessageStringOf(x)
  361. }
  362. func (*ReportResult) ProtoMessage() {}
  363. func (x *ReportResult) ProtoReflect() protoreflect.Message {
  364. mi := &file_battle_report_proto_msgTypes[5]
  365. if x != nil {
  366. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  367. if ms.LoadMessageInfo() == nil {
  368. ms.StoreMessageInfo(mi)
  369. }
  370. return ms
  371. }
  372. return mi.MessageOf(x)
  373. }
  374. // Deprecated: Use ReportResult.ProtoReflect.Descriptor instead.
  375. func (*ReportResult) Descriptor() ([]byte, []int) {
  376. return file_battle_report_proto_rawDescGZIP(), []int{5}
  377. }
  378. func (x *ReportResult) GetRewards() *AssetList {
  379. if x != nil {
  380. return x.Rewards
  381. }
  382. return nil
  383. }
  384. func (x *ReportResult) GetDurability() int32 {
  385. if x != nil {
  386. return x.Durability
  387. }
  388. return 0
  389. }
  390. // 战报队伍
  391. type BattleReportTeam struct {
  392. state protoimpl.MessageState `protogen:"open.v1"`
  393. // 玩家ID
  394. PlayerID int64 `protobuf:"varint,1,opt,name=playerID,proto3" json:"playerID,omitempty"`
  395. // 玩家昵称
  396. PlayerName string `protobuf:"bytes,2,opt,name=playerName,proto3" json:"playerName,omitempty"`
  397. // 联盟ID
  398. LeagueID int64 `protobuf:"varint,3,opt,name=leagueID,proto3" json:"leagueID,omitempty"`
  399. // 联盟名称
  400. LeagueName string `protobuf:"bytes,4,opt,name=leagueName,proto3" json:"leagueName,omitempty"`
  401. // 战斗对象列表
  402. List []*BattleReportObject `protobuf:"bytes,5,rep,name=list,proto3" json:"list,omitempty"`
  403. unknownFields protoimpl.UnknownFields
  404. sizeCache protoimpl.SizeCache
  405. }
  406. func (x *BattleReportTeam) Reset() {
  407. *x = BattleReportTeam{}
  408. mi := &file_battle_report_proto_msgTypes[6]
  409. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  410. ms.StoreMessageInfo(mi)
  411. }
  412. func (x *BattleReportTeam) String() string {
  413. return protoimpl.X.MessageStringOf(x)
  414. }
  415. func (*BattleReportTeam) ProtoMessage() {}
  416. func (x *BattleReportTeam) ProtoReflect() protoreflect.Message {
  417. mi := &file_battle_report_proto_msgTypes[6]
  418. if x != nil {
  419. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  420. if ms.LoadMessageInfo() == nil {
  421. ms.StoreMessageInfo(mi)
  422. }
  423. return ms
  424. }
  425. return mi.MessageOf(x)
  426. }
  427. // Deprecated: Use BattleReportTeam.ProtoReflect.Descriptor instead.
  428. func (*BattleReportTeam) Descriptor() ([]byte, []int) {
  429. return file_battle_report_proto_rawDescGZIP(), []int{6}
  430. }
  431. func (x *BattleReportTeam) GetPlayerID() int64 {
  432. if x != nil {
  433. return x.PlayerID
  434. }
  435. return 0
  436. }
  437. func (x *BattleReportTeam) GetPlayerName() string {
  438. if x != nil {
  439. return x.PlayerName
  440. }
  441. return ""
  442. }
  443. func (x *BattleReportTeam) GetLeagueID() int64 {
  444. if x != nil {
  445. return x.LeagueID
  446. }
  447. return 0
  448. }
  449. func (x *BattleReportTeam) GetLeagueName() string {
  450. if x != nil {
  451. return x.LeagueName
  452. }
  453. return ""
  454. }
  455. func (x *BattleReportTeam) GetList() []*BattleReportObject {
  456. if x != nil {
  457. return x.List
  458. }
  459. return nil
  460. }
  461. // 战报的基础战斗对象
  462. type BattleReportObject struct {
  463. state protoimpl.MessageState `protogen:"open.v1"`
  464. // 对象唯一ID
  465. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
  466. // 对象配置表ID
  467. ObjConfigID int32 `protobuf:"varint,2,opt,name=objConfigID,proto3" json:"objConfigID,omitempty"`
  468. // 对象类型 1:英雄 2:怪物
  469. BattleObjType int32 `protobuf:"varint,3,opt,name=battleObjType,proto3" json:"battleObjType,omitempty"`
  470. // 等级
  471. Level int32 `protobuf:"varint,4,opt,name=level,proto3" json:"level,omitempty"`
  472. // 星级
  473. Star int32 `protobuf:"varint,5,opt,name=star,proto3" json:"star,omitempty"`
  474. // 阵容ID
  475. LineupID int32 `protobuf:"varint,6,opt,name=lineupID,proto3" json:"lineupID,omitempty"`
  476. // 是否阵亡
  477. IsDead bool `protobuf:"varint,7,opt,name=isDead,proto3" json:"isDead,omitempty"`
  478. // 兵种ID 士兵-兵种表兵种ID
  479. TroopsID int32 `protobuf:"varint,8,opt,name=troopsID,proto3" json:"troopsID,omitempty"`
  480. // 总兵力
  481. TotalSoldier int32 `protobuf:"varint,9,opt,name=totalSoldier,proto3" json:"totalSoldier,omitempty"`
  482. // 剩余兵力
  483. RemainSoldier int32 `protobuf:"varint,10,opt,name=remainSoldier,proto3" json:"remainSoldier,omitempty"`
  484. // 最大生命值
  485. MaxHealth int64 `protobuf:"varint,11,opt,name=maxHealth,proto3" json:"maxHealth,omitempty"`
  486. // 剩余生命值万分比
  487. Health int32 `protobuf:"varint,12,opt,name=health,proto3" json:"health,omitempty"`
  488. unknownFields protoimpl.UnknownFields
  489. sizeCache protoimpl.SizeCache
  490. }
  491. func (x *BattleReportObject) Reset() {
  492. *x = BattleReportObject{}
  493. mi := &file_battle_report_proto_msgTypes[7]
  494. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  495. ms.StoreMessageInfo(mi)
  496. }
  497. func (x *BattleReportObject) String() string {
  498. return protoimpl.X.MessageStringOf(x)
  499. }
  500. func (*BattleReportObject) ProtoMessage() {}
  501. func (x *BattleReportObject) ProtoReflect() protoreflect.Message {
  502. mi := &file_battle_report_proto_msgTypes[7]
  503. if x != nil {
  504. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  505. if ms.LoadMessageInfo() == nil {
  506. ms.StoreMessageInfo(mi)
  507. }
  508. return ms
  509. }
  510. return mi.MessageOf(x)
  511. }
  512. // Deprecated: Use BattleReportObject.ProtoReflect.Descriptor instead.
  513. func (*BattleReportObject) Descriptor() ([]byte, []int) {
  514. return file_battle_report_proto_rawDescGZIP(), []int{7}
  515. }
  516. func (x *BattleReportObject) GetId() int64 {
  517. if x != nil {
  518. return x.Id
  519. }
  520. return 0
  521. }
  522. func (x *BattleReportObject) GetObjConfigID() int32 {
  523. if x != nil {
  524. return x.ObjConfigID
  525. }
  526. return 0
  527. }
  528. func (x *BattleReportObject) GetBattleObjType() int32 {
  529. if x != nil {
  530. return x.BattleObjType
  531. }
  532. return 0
  533. }
  534. func (x *BattleReportObject) GetLevel() int32 {
  535. if x != nil {
  536. return x.Level
  537. }
  538. return 0
  539. }
  540. func (x *BattleReportObject) GetStar() int32 {
  541. if x != nil {
  542. return x.Star
  543. }
  544. return 0
  545. }
  546. func (x *BattleReportObject) GetLineupID() int32 {
  547. if x != nil {
  548. return x.LineupID
  549. }
  550. return 0
  551. }
  552. func (x *BattleReportObject) GetIsDead() bool {
  553. if x != nil {
  554. return x.IsDead
  555. }
  556. return false
  557. }
  558. func (x *BattleReportObject) GetTroopsID() int32 {
  559. if x != nil {
  560. return x.TroopsID
  561. }
  562. return 0
  563. }
  564. func (x *BattleReportObject) GetTotalSoldier() int32 {
  565. if x != nil {
  566. return x.TotalSoldier
  567. }
  568. return 0
  569. }
  570. func (x *BattleReportObject) GetRemainSoldier() int32 {
  571. if x != nil {
  572. return x.RemainSoldier
  573. }
  574. return 0
  575. }
  576. func (x *BattleReportObject) GetMaxHealth() int64 {
  577. if x != nil {
  578. return x.MaxHealth
  579. }
  580. return 0
  581. }
  582. func (x *BattleReportObject) GetHealth() int32 {
  583. if x != nil {
  584. return x.Health
  585. }
  586. return 0
  587. }
  588. // 收藏战报请求
  589. type ReportLikeRequest struct {
  590. state protoimpl.MessageState `protogen:"open.v1"`
  591. // 收藏类型 1:战报组 2:单个战报
  592. LikeType int32 `protobuf:"varint,1,opt,name=likeType,proto3" json:"likeType,omitempty"`
  593. // 收藏ID likeType=1时,值为战报组ID; likeType=2时,值为战报ID
  594. LikeID string `protobuf:"bytes,2,opt,name=likeID,proto3" json:"likeID,omitempty"`
  595. // 是否收藏 true:收藏 false:取消收藏
  596. IsLike bool `protobuf:"varint,3,opt,name=isLike,proto3" json:"isLike,omitempty"`
  597. unknownFields protoimpl.UnknownFields
  598. sizeCache protoimpl.SizeCache
  599. }
  600. func (x *ReportLikeRequest) Reset() {
  601. *x = ReportLikeRequest{}
  602. mi := &file_battle_report_proto_msgTypes[8]
  603. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  604. ms.StoreMessageInfo(mi)
  605. }
  606. func (x *ReportLikeRequest) String() string {
  607. return protoimpl.X.MessageStringOf(x)
  608. }
  609. func (*ReportLikeRequest) ProtoMessage() {}
  610. func (x *ReportLikeRequest) ProtoReflect() protoreflect.Message {
  611. mi := &file_battle_report_proto_msgTypes[8]
  612. if x != nil {
  613. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  614. if ms.LoadMessageInfo() == nil {
  615. ms.StoreMessageInfo(mi)
  616. }
  617. return ms
  618. }
  619. return mi.MessageOf(x)
  620. }
  621. // Deprecated: Use ReportLikeRequest.ProtoReflect.Descriptor instead.
  622. func (*ReportLikeRequest) Descriptor() ([]byte, []int) {
  623. return file_battle_report_proto_rawDescGZIP(), []int{8}
  624. }
  625. func (x *ReportLikeRequest) GetLikeType() int32 {
  626. if x != nil {
  627. return x.LikeType
  628. }
  629. return 0
  630. }
  631. func (x *ReportLikeRequest) GetLikeID() string {
  632. if x != nil {
  633. return x.LikeID
  634. }
  635. return ""
  636. }
  637. func (x *ReportLikeRequest) GetIsLike() bool {
  638. if x != nil {
  639. return x.IsLike
  640. }
  641. return false
  642. }
  643. var File_battle_report_proto protoreflect.FileDescriptor
  644. const file_battle_report_proto_rawDesc = "" +
  645. "\n" +
  646. "\x13battle_report.proto\x12\x02pb\x1a\x0fbase_type.proto\"F\n" +
  647. "\n" +
  648. "ReportInfo\x12\"\n" +
  649. "\x04list\x18\x01 \x03(\v2\x0e.pb.ReportLikeR\x04list\x12\x14\n" +
  650. "\x05count\x18\x02 \x01(\x05R\x05count\"6\n" +
  651. "\x0fReportGroupList\x12#\n" +
  652. "\x04list\x18\x01 \x03(\v2\x0f.pb.ReportGroupR\x04list\"`\n" +
  653. "\n" +
  654. "ReportLike\x12\x1a\n" +
  655. "\blikeType\x18\x01 \x01(\x05R\blikeType\x12\x16\n" +
  656. "\x06likeID\x18\x02 \x01(\tR\x06likeID\x12\x1e\n" +
  657. "\x04list\x18\x03 \x03(\v2\n" +
  658. ".pb.ReportR\x04list\"{\n" +
  659. "\vReportGroup\x12\x18\n" +
  660. "\agroupID\x18\x01 \x01(\tR\agroupID\x12\x1a\n" +
  661. "\bcategory\x18\x02 \x01(\x05R\bcategory\x12\x1e\n" +
  662. "\x04list\x18\x03 \x03(\v2\n" +
  663. ".pb.ReportR\x04list\x12\x16\n" +
  664. "\x06isRead\x18\x04 \x01(\bR\x06isRead\"\x8f\x03\n" +
  665. "\x06Report\x12\x1a\n" +
  666. "\breportID\x18\x01 \x01(\tR\breportID\x12\x1e\n" +
  667. "\n" +
  668. "battleType\x18\x02 \x01(\x05R\n" +
  669. "battleType\x12\x1f\n" +
  670. "\x05point\x18\x03 \x01(\v2\t.pb.PointR\x05point\x12\x1a\n" +
  671. "\bconfigID\x18\x04 \x01(\x05R\bconfigID\x12\x12\n" +
  672. "\x04time\x18\x05 \x01(\x03R\x04time\x12\x1e\n" +
  673. "\n" +
  674. "isDefender\x18\x06 \x01(\bR\n" +
  675. "isDefender\x120\n" +
  676. "\battacker\x18\a \x01(\v2\x14.pb.BattleReportTeamR\battacker\x120\n" +
  677. "\bdefender\x18\b \x01(\v2\x14.pb.BattleReportTeamR\bdefender\x12\x16\n" +
  678. "\x06result\x18\t \x01(\x05R\x06result\x124\n" +
  679. "\freportResult\x18\n" +
  680. " \x01(\v2\x10.pb.ReportResultR\freportResult\x12&\n" +
  681. "\x0ebattleRecordID\x18\v \x01(\tR\x0ebattleRecordID\"W\n" +
  682. "\fReportResult\x12'\n" +
  683. "\arewards\x18\x01 \x01(\v2\r.pb.AssetListR\arewards\x12\x1e\n" +
  684. "\n" +
  685. "durability\x18\x02 \x01(\x05R\n" +
  686. "durability\"\xb6\x01\n" +
  687. "\x10BattleReportTeam\x12\x1a\n" +
  688. "\bplayerID\x18\x01 \x01(\x03R\bplayerID\x12\x1e\n" +
  689. "\n" +
  690. "playerName\x18\x02 \x01(\tR\n" +
  691. "playerName\x12\x1a\n" +
  692. "\bleagueID\x18\x03 \x01(\x03R\bleagueID\x12\x1e\n" +
  693. "\n" +
  694. "leagueName\x18\x04 \x01(\tR\n" +
  695. "leagueName\x12*\n" +
  696. "\x04list\x18\x05 \x03(\v2\x16.pb.BattleReportObjectR\x04list\"\xe6\x02\n" +
  697. "\x12BattleReportObject\x12\x0e\n" +
  698. "\x02id\x18\x01 \x01(\x03R\x02id\x12 \n" +
  699. "\vobjConfigID\x18\x02 \x01(\x05R\vobjConfigID\x12$\n" +
  700. "\rbattleObjType\x18\x03 \x01(\x05R\rbattleObjType\x12\x14\n" +
  701. "\x05level\x18\x04 \x01(\x05R\x05level\x12\x12\n" +
  702. "\x04star\x18\x05 \x01(\x05R\x04star\x12\x1a\n" +
  703. "\blineupID\x18\x06 \x01(\x05R\blineupID\x12\x16\n" +
  704. "\x06isDead\x18\a \x01(\bR\x06isDead\x12\x1a\n" +
  705. "\btroopsID\x18\b \x01(\x05R\btroopsID\x12\"\n" +
  706. "\ftotalSoldier\x18\t \x01(\x05R\ftotalSoldier\x12$\n" +
  707. "\rremainSoldier\x18\n" +
  708. " \x01(\x05R\rremainSoldier\x12\x1c\n" +
  709. "\tmaxHealth\x18\v \x01(\x03R\tmaxHealth\x12\x16\n" +
  710. "\x06health\x18\f \x01(\x05R\x06health\"_\n" +
  711. "\x11ReportLikeRequest\x12\x1a\n" +
  712. "\blikeType\x18\x01 \x01(\x05R\blikeType\x12\x16\n" +
  713. "\x06likeID\x18\x02 \x01(\tR\x06likeID\x12\x16\n" +
  714. "\x06isLike\x18\x03 \x01(\bR\x06isLikeB\x05Z\x03/pbb\x06proto3"
  715. var (
  716. file_battle_report_proto_rawDescOnce sync.Once
  717. file_battle_report_proto_rawDescData []byte
  718. )
  719. func file_battle_report_proto_rawDescGZIP() []byte {
  720. file_battle_report_proto_rawDescOnce.Do(func() {
  721. file_battle_report_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_battle_report_proto_rawDesc), len(file_battle_report_proto_rawDesc)))
  722. })
  723. return file_battle_report_proto_rawDescData
  724. }
  725. var file_battle_report_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
  726. var file_battle_report_proto_goTypes = []any{
  727. (*ReportInfo)(nil), // 0: pb.ReportInfo
  728. (*ReportGroupList)(nil), // 1: pb.ReportGroupList
  729. (*ReportLike)(nil), // 2: pb.ReportLike
  730. (*ReportGroup)(nil), // 3: pb.ReportGroup
  731. (*Report)(nil), // 4: pb.Report
  732. (*ReportResult)(nil), // 5: pb.ReportResult
  733. (*BattleReportTeam)(nil), // 6: pb.BattleReportTeam
  734. (*BattleReportObject)(nil), // 7: pb.BattleReportObject
  735. (*ReportLikeRequest)(nil), // 8: pb.ReportLikeRequest
  736. (*Point)(nil), // 9: pb.Point
  737. (*AssetList)(nil), // 10: pb.AssetList
  738. }
  739. var file_battle_report_proto_depIdxs = []int32{
  740. 2, // 0: pb.ReportInfo.list:type_name -> pb.ReportLike
  741. 3, // 1: pb.ReportGroupList.list:type_name -> pb.ReportGroup
  742. 4, // 2: pb.ReportLike.list:type_name -> pb.Report
  743. 4, // 3: pb.ReportGroup.list:type_name -> pb.Report
  744. 9, // 4: pb.Report.point:type_name -> pb.Point
  745. 6, // 5: pb.Report.attacker:type_name -> pb.BattleReportTeam
  746. 6, // 6: pb.Report.defender:type_name -> pb.BattleReportTeam
  747. 5, // 7: pb.Report.reportResult:type_name -> pb.ReportResult
  748. 10, // 8: pb.ReportResult.rewards:type_name -> pb.AssetList
  749. 7, // 9: pb.BattleReportTeam.list:type_name -> pb.BattleReportObject
  750. 10, // [10:10] is the sub-list for method output_type
  751. 10, // [10:10] is the sub-list for method input_type
  752. 10, // [10:10] is the sub-list for extension type_name
  753. 10, // [10:10] is the sub-list for extension extendee
  754. 0, // [0:10] is the sub-list for field type_name
  755. }
  756. func init() { file_battle_report_proto_init() }
  757. func file_battle_report_proto_init() {
  758. if File_battle_report_proto != nil {
  759. return
  760. }
  761. file_base_type_proto_init()
  762. type x struct{}
  763. out := protoimpl.TypeBuilder{
  764. File: protoimpl.DescBuilder{
  765. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  766. RawDescriptor: unsafe.Slice(unsafe.StringData(file_battle_report_proto_rawDesc), len(file_battle_report_proto_rawDesc)),
  767. NumEnums: 0,
  768. NumMessages: 9,
  769. NumExtensions: 0,
  770. NumServices: 0,
  771. },
  772. GoTypes: file_battle_report_proto_goTypes,
  773. DependencyIndexes: file_battle_report_proto_depIdxs,
  774. MessageInfos: file_battle_report_proto_msgTypes,
  775. }.Build()
  776. File_battle_report_proto = out.File
  777. file_battle_report_proto_goTypes = nil
  778. file_battle_report_proto_depIdxs = nil
  779. }