| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096 |
- // message结构的属性名请使用 驼峰小写字母开始
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // versions:
- // protoc-gen-go v1.36.8
- // protoc v6.31.1
- // source: team.proto
- package pb
- import (
- protoreflect "google.golang.org/protobuf/reflect/protoreflect"
- protoimpl "google.golang.org/protobuf/runtime/protoimpl"
- reflect "reflect"
- sync "sync"
- unsafe "unsafe"
- )
- const (
- // Verify that this generated code is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
- // Verify that runtime/protoimpl is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
- )
- // 队伍列表
- type Teams struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- List []*Team `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *Teams) Reset() {
- *x = Teams{}
- mi := &file_team_proto_msgTypes[0]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *Teams) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*Teams) ProtoMessage() {}
- func (x *Teams) ProtoReflect() protoreflect.Message {
- mi := &file_team_proto_msgTypes[0]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use Teams.ProtoReflect.Descriptor instead.
- func (*Teams) Descriptor() ([]byte, []int) {
- return file_team_proto_rawDescGZIP(), []int{0}
- }
- func (x *Teams) GetList() []*Team {
- if x != nil {
- return x.List
- }
- return nil
- }
- // 队伍
- type Team struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- // 队伍 ID
- TeamID int32 `protobuf:"varint,1,opt,name=teamID,proto3" json:"teamID,omitempty"`
- // 队伍成员
- Members []*TeamMember `protobuf:"bytes,2,rep,name=members,proto3" json:"members,omitempty"`
- // 队伍状态 0未知 1待命 2外派
- State int32 `protobuf:"varint,3,opt,name=state,proto3" json:"state,omitempty"`
- // 负重
- Weight int32 `protobuf:"varint,4,opt,name=weight,proto3" json:"weight,omitempty"`
- // 是否自动补兵
- AutoAddTroops bool `protobuf:"varint,5,opt,name=autoAddTroops,proto3" json:"autoAddTroops,omitempty"`
- // 激活羁绊ID Y-英雄-羁绊表ID
- FetterIDs []int32 `protobuf:"varint,6,rep,packed,name=fetterIDs,proto3" json:"fetterIDs,omitempty"`
- // 行军对象ID
- MarchObjectID int64 `protobuf:"varint,7,opt,name=marchObjectID,proto3" json:"marchObjectID,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *Team) Reset() {
- *x = Team{}
- mi := &file_team_proto_msgTypes[1]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *Team) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*Team) ProtoMessage() {}
- func (x *Team) ProtoReflect() protoreflect.Message {
- mi := &file_team_proto_msgTypes[1]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use Team.ProtoReflect.Descriptor instead.
- func (*Team) Descriptor() ([]byte, []int) {
- return file_team_proto_rawDescGZIP(), []int{1}
- }
- func (x *Team) GetTeamID() int32 {
- if x != nil {
- return x.TeamID
- }
- return 0
- }
- func (x *Team) GetMembers() []*TeamMember {
- if x != nil {
- return x.Members
- }
- return nil
- }
- func (x *Team) GetState() int32 {
- if x != nil {
- return x.State
- }
- return 0
- }
- func (x *Team) GetWeight() int32 {
- if x != nil {
- return x.Weight
- }
- return 0
- }
- func (x *Team) GetAutoAddTroops() bool {
- if x != nil {
- return x.AutoAddTroops
- }
- return false
- }
- func (x *Team) GetFetterIDs() []int32 {
- if x != nil {
- return x.FetterIDs
- }
- return nil
- }
- func (x *Team) GetMarchObjectID() int64 {
- if x != nil {
- return x.MarchObjectID
- }
- return 0
- }
- // 队伍成员
- type TeamMember struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- // 队伍位置 (1-3) 默认1为主将位置
- TeamIndex int32 `protobuf:"varint,1,opt,name=teamIndex,proto3" json:"teamIndex,omitempty"`
- // 阵容位置(0-5)
- Index int32 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"`
- // 英雄唯一 ID
- HeroGUID int64 `protobuf:"varint,3,opt,name=heroGUID,proto3" json:"heroGUID,omitempty"`
- // 上阵士兵ID 士兵-等级表士兵ID
- TroopsID int32 `protobuf:"varint,4,opt,name=troopsID,proto3" json:"troopsID,omitempty"`
- // 兵力数量
- TroopsNum int32 `protobuf:"varint,5,opt,name=troopsNum,proto3" json:"troopsNum,omitempty"`
- // 伤兵数量
- Wounded int32 `protobuf:"varint,6,opt,name=wounded,proto3" json:"wounded,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *TeamMember) Reset() {
- *x = TeamMember{}
- mi := &file_team_proto_msgTypes[2]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *TeamMember) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*TeamMember) ProtoMessage() {}
- func (x *TeamMember) ProtoReflect() protoreflect.Message {
- mi := &file_team_proto_msgTypes[2]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use TeamMember.ProtoReflect.Descriptor instead.
- func (*TeamMember) Descriptor() ([]byte, []int) {
- return file_team_proto_rawDescGZIP(), []int{2}
- }
- func (x *TeamMember) GetTeamIndex() int32 {
- if x != nil {
- return x.TeamIndex
- }
- return 0
- }
- func (x *TeamMember) GetIndex() int32 {
- if x != nil {
- return x.Index
- }
- return 0
- }
- func (x *TeamMember) GetHeroGUID() int64 {
- if x != nil {
- return x.HeroGUID
- }
- return 0
- }
- func (x *TeamMember) GetTroopsID() int32 {
- if x != nil {
- return x.TroopsID
- }
- return 0
- }
- func (x *TeamMember) GetTroopsNum() int32 {
- if x != nil {
- return x.TroopsNum
- }
- return 0
- }
- func (x *TeamMember) GetWounded() int32 {
- if x != nil {
- return x.Wounded
- }
- return 0
- }
- // [请求] 队伍上阵英雄
- type TeamUpRequest struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- // 英雄 GUID
- HeroGUID int64 `protobuf:"varint,1,opt,name=heroGUID,proto3" json:"heroGUID,omitempty"`
- // 队伍 ID
- TeamID int32 `protobuf:"varint,2,opt,name=teamID,proto3" json:"teamID,omitempty"`
- // 队伍位置 (1-3) 默认1为主将位置
- TeamIndex int32 `protobuf:"varint,3,opt,name=teamIndex,proto3" json:"teamIndex,omitempty"`
- // 阵容位置 (0-5)
- Index int32 `protobuf:"varint,4,opt,name=index,proto3" json:"index,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *TeamUpRequest) Reset() {
- *x = TeamUpRequest{}
- mi := &file_team_proto_msgTypes[3]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *TeamUpRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*TeamUpRequest) ProtoMessage() {}
- func (x *TeamUpRequest) ProtoReflect() protoreflect.Message {
- mi := &file_team_proto_msgTypes[3]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use TeamUpRequest.ProtoReflect.Descriptor instead.
- func (*TeamUpRequest) Descriptor() ([]byte, []int) {
- return file_team_proto_rawDescGZIP(), []int{3}
- }
- func (x *TeamUpRequest) GetHeroGUID() int64 {
- if x != nil {
- return x.HeroGUID
- }
- return 0
- }
- func (x *TeamUpRequest) GetTeamID() int32 {
- if x != nil {
- return x.TeamID
- }
- return 0
- }
- func (x *TeamUpRequest) GetTeamIndex() int32 {
- if x != nil {
- return x.TeamIndex
- }
- return 0
- }
- func (x *TeamUpRequest) GetIndex() int32 {
- if x != nil {
- return x.Index
- }
- return 0
- }
- // [请求] 队伍英雄交换
- type TeamChangeRequest struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- // 源队伍ID和成员队伍位置 (1-3)
- SrcTeamID int32 `protobuf:"varint,1,opt,name=srcTeamID,proto3" json:"srcTeamID,omitempty"`
- SrcTeamIndex int32 `protobuf:"varint,2,opt,name=srcTeamIndex,proto3" json:"srcTeamIndex,omitempty"`
- // 目标队伍ID、成员队伍位置 (1-3)和阵容位置 (0-5)
- DstTeamID int32 `protobuf:"varint,3,opt,name=dstTeamID,proto3" json:"dstTeamID,omitempty"`
- DstTeamIndex int32 `protobuf:"varint,4,opt,name=dstTeamIndex,proto3" json:"dstTeamIndex,omitempty"`
- DstIndex int32 `protobuf:"varint,5,opt,name=dstIndex,proto3" json:"dstIndex,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *TeamChangeRequest) Reset() {
- *x = TeamChangeRequest{}
- mi := &file_team_proto_msgTypes[4]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *TeamChangeRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*TeamChangeRequest) ProtoMessage() {}
- func (x *TeamChangeRequest) ProtoReflect() protoreflect.Message {
- mi := &file_team_proto_msgTypes[4]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use TeamChangeRequest.ProtoReflect.Descriptor instead.
- func (*TeamChangeRequest) Descriptor() ([]byte, []int) {
- return file_team_proto_rawDescGZIP(), []int{4}
- }
- func (x *TeamChangeRequest) GetSrcTeamID() int32 {
- if x != nil {
- return x.SrcTeamID
- }
- return 0
- }
- func (x *TeamChangeRequest) GetSrcTeamIndex() int32 {
- if x != nil {
- return x.SrcTeamIndex
- }
- return 0
- }
- func (x *TeamChangeRequest) GetDstTeamID() int32 {
- if x != nil {
- return x.DstTeamID
- }
- return 0
- }
- func (x *TeamChangeRequest) GetDstTeamIndex() int32 {
- if x != nil {
- return x.DstTeamIndex
- }
- return 0
- }
- func (x *TeamChangeRequest) GetDstIndex() int32 {
- if x != nil {
- return x.DstIndex
- }
- return 0
- }
- // [请求] 同队伍队伍位置交换
- type TeamInnerChangeRequest struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- // 队伍ID
- TeamID int32 `protobuf:"varint,1,opt,name=teamID,proto3" json:"teamID,omitempty"`
- // 源队伍位置
- SrcTeamIndex int32 `protobuf:"varint,2,opt,name=srcTeamIndex,proto3" json:"srcTeamIndex,omitempty"`
- // 目标队伍位置
- DstTeamIndex int32 `protobuf:"varint,3,opt,name=dstTeamIndex,proto3" json:"dstTeamIndex,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *TeamInnerChangeRequest) Reset() {
- *x = TeamInnerChangeRequest{}
- mi := &file_team_proto_msgTypes[5]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *TeamInnerChangeRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*TeamInnerChangeRequest) ProtoMessage() {}
- func (x *TeamInnerChangeRequest) ProtoReflect() protoreflect.Message {
- mi := &file_team_proto_msgTypes[5]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use TeamInnerChangeRequest.ProtoReflect.Descriptor instead.
- func (*TeamInnerChangeRequest) Descriptor() ([]byte, []int) {
- return file_team_proto_rawDescGZIP(), []int{5}
- }
- func (x *TeamInnerChangeRequest) GetTeamID() int32 {
- if x != nil {
- return x.TeamID
- }
- return 0
- }
- func (x *TeamInnerChangeRequest) GetSrcTeamIndex() int32 {
- if x != nil {
- return x.SrcTeamIndex
- }
- return 0
- }
- func (x *TeamInnerChangeRequest) GetDstTeamIndex() int32 {
- if x != nil {
- return x.DstTeamIndex
- }
- return 0
- }
- // [请求] 队伍调整阵容
- type TeamLineupRequest struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- // 队伍ID
- TeamID int32 `protobuf:"varint,1,opt,name=teamID,proto3" json:"teamID,omitempty"`
- // 队伍成员阵容位置
- Index int32 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"`
- // 转换到阵容位置
- ToIndex int32 `protobuf:"varint,3,opt,name=toIndex,proto3" json:"toIndex,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *TeamLineupRequest) Reset() {
- *x = TeamLineupRequest{}
- mi := &file_team_proto_msgTypes[6]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *TeamLineupRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*TeamLineupRequest) ProtoMessage() {}
- func (x *TeamLineupRequest) ProtoReflect() protoreflect.Message {
- mi := &file_team_proto_msgTypes[6]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use TeamLineupRequest.ProtoReflect.Descriptor instead.
- func (*TeamLineupRequest) Descriptor() ([]byte, []int) {
- return file_team_proto_rawDescGZIP(), []int{6}
- }
- func (x *TeamLineupRequest) GetTeamID() int32 {
- if x != nil {
- return x.TeamID
- }
- return 0
- }
- func (x *TeamLineupRequest) GetIndex() int32 {
- if x != nil {
- return x.Index
- }
- return 0
- }
- func (x *TeamLineupRequest) GetToIndex() int32 {
- if x != nil {
- return x.ToIndex
- }
- return 0
- }
- // [请求] 英雄队伍补充兵力
- type TeamTroopsRequest struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- // 队伍 ID
- TeamID int32 `protobuf:"varint,1,opt,name=teamID,proto3" json:"teamID,omitempty"`
- // 队伍成员补兵列表
- MemberTroops []*TeamMemberTroops `protobuf:"bytes,3,rep,name=memberTroops,proto3" json:"memberTroops,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *TeamTroopsRequest) Reset() {
- *x = TeamTroopsRequest{}
- mi := &file_team_proto_msgTypes[7]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *TeamTroopsRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*TeamTroopsRequest) ProtoMessage() {}
- func (x *TeamTroopsRequest) ProtoReflect() protoreflect.Message {
- mi := &file_team_proto_msgTypes[7]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use TeamTroopsRequest.ProtoReflect.Descriptor instead.
- func (*TeamTroopsRequest) Descriptor() ([]byte, []int) {
- return file_team_proto_rawDescGZIP(), []int{7}
- }
- func (x *TeamTroopsRequest) GetTeamID() int32 {
- if x != nil {
- return x.TeamID
- }
- return 0
- }
- func (x *TeamTroopsRequest) GetMemberTroops() []*TeamMemberTroops {
- if x != nil {
- return x.MemberTroops
- }
- return nil
- }
- // 部队补兵详情
- type TeamMemberTroops struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- // 成员队伍位置 (1-3)
- TeamIndex int32 `protobuf:"varint,1,opt,name=teamIndex,proto3" json:"teamIndex,omitempty"`
- // 补充士兵ID 士兵-等级表士兵ID
- TroopsID int32 `protobuf:"varint,2,opt,name=troopsID,proto3" json:"troopsID,omitempty"`
- // 补兵数量
- TroopsNum int32 `protobuf:"varint,3,opt,name=troopsNum,proto3" json:"troopsNum,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *TeamMemberTroops) Reset() {
- *x = TeamMemberTroops{}
- mi := &file_team_proto_msgTypes[8]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *TeamMemberTroops) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*TeamMemberTroops) ProtoMessage() {}
- func (x *TeamMemberTroops) ProtoReflect() protoreflect.Message {
- mi := &file_team_proto_msgTypes[8]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use TeamMemberTroops.ProtoReflect.Descriptor instead.
- func (*TeamMemberTroops) Descriptor() ([]byte, []int) {
- return file_team_proto_rawDescGZIP(), []int{8}
- }
- func (x *TeamMemberTroops) GetTeamIndex() int32 {
- if x != nil {
- return x.TeamIndex
- }
- return 0
- }
- func (x *TeamMemberTroops) GetTroopsID() int32 {
- if x != nil {
- return x.TroopsID
- }
- return 0
- }
- func (x *TeamMemberTroops) GetTroopsNum() int32 {
- if x != nil {
- return x.TroopsNum
- }
- return 0
- }
- // 部队城外征兵
- type TeamOutsideTroops struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- // 队伍ID
- TeamID int32 `protobuf:"varint,1,opt,name=teamID,proto3" json:"teamID,omitempty"`
- // 征兵数量 key 队伍位置 (1-3) value 征兵数量
- TroopsNums []*I32I32 `protobuf:"bytes,2,rep,name=troopsNums,proto3" json:"troopsNums,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *TeamOutsideTroops) Reset() {
- *x = TeamOutsideTroops{}
- mi := &file_team_proto_msgTypes[9]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *TeamOutsideTroops) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*TeamOutsideTroops) ProtoMessage() {}
- func (x *TeamOutsideTroops) ProtoReflect() protoreflect.Message {
- mi := &file_team_proto_msgTypes[9]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use TeamOutsideTroops.ProtoReflect.Descriptor instead.
- func (*TeamOutsideTroops) Descriptor() ([]byte, []int) {
- return file_team_proto_rawDescGZIP(), []int{9}
- }
- func (x *TeamOutsideTroops) GetTeamID() int32 {
- if x != nil {
- return x.TeamID
- }
- return 0
- }
- func (x *TeamOutsideTroops) GetTroopsNums() []*I32I32 {
- if x != nil {
- return x.TroopsNums
- }
- return nil
- }
- // 部队城外征兵取消
- type TeamOutsideTroopsCancel struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- // 队伍ID
- TeamID int32 `protobuf:"varint,1,opt,name=teamID,proto3" json:"teamID,omitempty"`
- // 需要取消的队伍位置 (1-3)
- TeamIndexs []int32 `protobuf:"varint,2,rep,packed,name=teamIndexs,proto3" json:"teamIndexs,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *TeamOutsideTroopsCancel) Reset() {
- *x = TeamOutsideTroopsCancel{}
- mi := &file_team_proto_msgTypes[10]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *TeamOutsideTroopsCancel) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*TeamOutsideTroopsCancel) ProtoMessage() {}
- func (x *TeamOutsideTroopsCancel) ProtoReflect() protoreflect.Message {
- mi := &file_team_proto_msgTypes[10]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use TeamOutsideTroopsCancel.ProtoReflect.Descriptor instead.
- func (*TeamOutsideTroopsCancel) Descriptor() ([]byte, []int) {
- return file_team_proto_rawDescGZIP(), []int{10}
- }
- func (x *TeamOutsideTroopsCancel) GetTeamID() int32 {
- if x != nil {
- return x.TeamID
- }
- return 0
- }
- func (x *TeamOutsideTroopsCancel) GetTeamIndexs() []int32 {
- if x != nil {
- return x.TeamIndexs
- }
- return nil
- }
- // 部队城外征兵信息列表
- type TeamOutsideTroopsList struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- // 征兵信息列表
- List []*TeamOutsideTroopsInfo `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *TeamOutsideTroopsList) Reset() {
- *x = TeamOutsideTroopsList{}
- mi := &file_team_proto_msgTypes[11]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *TeamOutsideTroopsList) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*TeamOutsideTroopsList) ProtoMessage() {}
- func (x *TeamOutsideTroopsList) ProtoReflect() protoreflect.Message {
- mi := &file_team_proto_msgTypes[11]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use TeamOutsideTroopsList.ProtoReflect.Descriptor instead.
- func (*TeamOutsideTroopsList) Descriptor() ([]byte, []int) {
- return file_team_proto_rawDescGZIP(), []int{11}
- }
- func (x *TeamOutsideTroopsList) GetList() []*TeamOutsideTroopsInfo {
- if x != nil {
- return x.List
- }
- return nil
- }
- // 部队城外征兵信息
- type TeamOutsideTroopsInfo struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- // 队伍ID
- TeamID int32 `protobuf:"varint,1,opt,name=teamID,proto3" json:"teamID,omitempty"`
- // 是否自动征兵
- AutoTroops bool `protobuf:"varint,2,opt,name=autoTroops,proto3" json:"autoTroops,omitempty"`
- // 队伍成员征兵数据
- MemberTroops []*TeamMemberOutsideTroops `protobuf:"bytes,3,rep,name=memberTroops,proto3" json:"memberTroops,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *TeamOutsideTroopsInfo) Reset() {
- *x = TeamOutsideTroopsInfo{}
- mi := &file_team_proto_msgTypes[12]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *TeamOutsideTroopsInfo) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*TeamOutsideTroopsInfo) ProtoMessage() {}
- func (x *TeamOutsideTroopsInfo) ProtoReflect() protoreflect.Message {
- mi := &file_team_proto_msgTypes[12]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use TeamOutsideTroopsInfo.ProtoReflect.Descriptor instead.
- func (*TeamOutsideTroopsInfo) Descriptor() ([]byte, []int) {
- return file_team_proto_rawDescGZIP(), []int{12}
- }
- func (x *TeamOutsideTroopsInfo) GetTeamID() int32 {
- if x != nil {
- return x.TeamID
- }
- return 0
- }
- func (x *TeamOutsideTroopsInfo) GetAutoTroops() bool {
- if x != nil {
- return x.AutoTroops
- }
- return false
- }
- func (x *TeamOutsideTroopsInfo) GetMemberTroops() []*TeamMemberOutsideTroops {
- if x != nil {
- return x.MemberTroops
- }
- return nil
- }
- // 部队成员城外征兵信息
- type TeamMemberOutsideTroops struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- // 队伍位置 (1-3)
- TeamIndex int32 `protobuf:"varint,1,opt,name=teamIndex,proto3" json:"teamIndex,omitempty"`
- // 当前已征兵数量
- TroopsCount int32 `protobuf:"varint,2,opt,name=troopsCount,proto3" json:"troopsCount,omitempty"`
- // 总征兵数量
- TotalTroopsCount int32 `protobuf:"varint,3,opt,name=totalTroopsCount,proto3" json:"totalTroopsCount,omitempty"`
- // 征兵结束时间戳 单位秒
- EndTime int64 `protobuf:"varint,4,opt,name=endTime,proto3" json:"endTime,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *TeamMemberOutsideTroops) Reset() {
- *x = TeamMemberOutsideTroops{}
- mi := &file_team_proto_msgTypes[13]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *TeamMemberOutsideTroops) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*TeamMemberOutsideTroops) ProtoMessage() {}
- func (x *TeamMemberOutsideTroops) ProtoReflect() protoreflect.Message {
- mi := &file_team_proto_msgTypes[13]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use TeamMemberOutsideTroops.ProtoReflect.Descriptor instead.
- func (*TeamMemberOutsideTroops) Descriptor() ([]byte, []int) {
- return file_team_proto_rawDescGZIP(), []int{13}
- }
- func (x *TeamMemberOutsideTroops) GetTeamIndex() int32 {
- if x != nil {
- return x.TeamIndex
- }
- return 0
- }
- func (x *TeamMemberOutsideTroops) GetTroopsCount() int32 {
- if x != nil {
- return x.TroopsCount
- }
- return 0
- }
- func (x *TeamMemberOutsideTroops) GetTotalTroopsCount() int32 {
- if x != nil {
- return x.TotalTroopsCount
- }
- return 0
- }
- func (x *TeamMemberOutsideTroops) GetEndTime() int64 {
- if x != nil {
- return x.EndTime
- }
- return 0
- }
- var File_team_proto protoreflect.FileDescriptor
- const file_team_proto_rawDesc = "" +
- "\n" +
- "\n" +
- "team.proto\x12\x02pb\x1a\x0fbase_type.proto\"%\n" +
- "\x05Teams\x12\x1c\n" +
- "\x04list\x18\x01 \x03(\v2\b.pb.TeamR\x04list\"\xe0\x01\n" +
- "\x04Team\x12\x16\n" +
- "\x06teamID\x18\x01 \x01(\x05R\x06teamID\x12(\n" +
- "\amembers\x18\x02 \x03(\v2\x0e.pb.TeamMemberR\amembers\x12\x14\n" +
- "\x05state\x18\x03 \x01(\x05R\x05state\x12\x16\n" +
- "\x06weight\x18\x04 \x01(\x05R\x06weight\x12$\n" +
- "\rautoAddTroops\x18\x05 \x01(\bR\rautoAddTroops\x12\x1c\n" +
- "\tfetterIDs\x18\x06 \x03(\x05R\tfetterIDs\x12$\n" +
- "\rmarchObjectID\x18\a \x01(\x03R\rmarchObjectID\"\xb0\x01\n" +
- "\n" +
- "TeamMember\x12\x1c\n" +
- "\tteamIndex\x18\x01 \x01(\x05R\tteamIndex\x12\x14\n" +
- "\x05index\x18\x02 \x01(\x05R\x05index\x12\x1a\n" +
- "\bheroGUID\x18\x03 \x01(\x03R\bheroGUID\x12\x1a\n" +
- "\btroopsID\x18\x04 \x01(\x05R\btroopsID\x12\x1c\n" +
- "\ttroopsNum\x18\x05 \x01(\x05R\ttroopsNum\x12\x18\n" +
- "\awounded\x18\x06 \x01(\x05R\awounded\"w\n" +
- "\rTeamUpRequest\x12\x1a\n" +
- "\bheroGUID\x18\x01 \x01(\x03R\bheroGUID\x12\x16\n" +
- "\x06teamID\x18\x02 \x01(\x05R\x06teamID\x12\x1c\n" +
- "\tteamIndex\x18\x03 \x01(\x05R\tteamIndex\x12\x14\n" +
- "\x05index\x18\x04 \x01(\x05R\x05index\"\xb3\x01\n" +
- "\x11TeamChangeRequest\x12\x1c\n" +
- "\tsrcTeamID\x18\x01 \x01(\x05R\tsrcTeamID\x12\"\n" +
- "\fsrcTeamIndex\x18\x02 \x01(\x05R\fsrcTeamIndex\x12\x1c\n" +
- "\tdstTeamID\x18\x03 \x01(\x05R\tdstTeamID\x12\"\n" +
- "\fdstTeamIndex\x18\x04 \x01(\x05R\fdstTeamIndex\x12\x1a\n" +
- "\bdstIndex\x18\x05 \x01(\x05R\bdstIndex\"x\n" +
- "\x16TeamInnerChangeRequest\x12\x16\n" +
- "\x06teamID\x18\x01 \x01(\x05R\x06teamID\x12\"\n" +
- "\fsrcTeamIndex\x18\x02 \x01(\x05R\fsrcTeamIndex\x12\"\n" +
- "\fdstTeamIndex\x18\x03 \x01(\x05R\fdstTeamIndex\"[\n" +
- "\x11TeamLineupRequest\x12\x16\n" +
- "\x06teamID\x18\x01 \x01(\x05R\x06teamID\x12\x14\n" +
- "\x05index\x18\x02 \x01(\x05R\x05index\x12\x18\n" +
- "\atoIndex\x18\x03 \x01(\x05R\atoIndex\"e\n" +
- "\x11TeamTroopsRequest\x12\x16\n" +
- "\x06teamID\x18\x01 \x01(\x05R\x06teamID\x128\n" +
- "\fmemberTroops\x18\x03 \x03(\v2\x14.pb.TeamMemberTroopsR\fmemberTroops\"j\n" +
- "\x10TeamMemberTroops\x12\x1c\n" +
- "\tteamIndex\x18\x01 \x01(\x05R\tteamIndex\x12\x1a\n" +
- "\btroopsID\x18\x02 \x01(\x05R\btroopsID\x12\x1c\n" +
- "\ttroopsNum\x18\x03 \x01(\x05R\ttroopsNum\"W\n" +
- "\x11TeamOutsideTroops\x12\x16\n" +
- "\x06teamID\x18\x01 \x01(\x05R\x06teamID\x12*\n" +
- "\n" +
- "troopsNums\x18\x02 \x03(\v2\n" +
- ".pb.I32I32R\n" +
- "troopsNums\"Q\n" +
- "\x17TeamOutsideTroopsCancel\x12\x16\n" +
- "\x06teamID\x18\x01 \x01(\x05R\x06teamID\x12\x1e\n" +
- "\n" +
- "teamIndexs\x18\x02 \x03(\x05R\n" +
- "teamIndexs\"F\n" +
- "\x15TeamOutsideTroopsList\x12-\n" +
- "\x04list\x18\x01 \x03(\v2\x19.pb.TeamOutsideTroopsInfoR\x04list\"\x90\x01\n" +
- "\x15TeamOutsideTroopsInfo\x12\x16\n" +
- "\x06teamID\x18\x01 \x01(\x05R\x06teamID\x12\x1e\n" +
- "\n" +
- "autoTroops\x18\x02 \x01(\bR\n" +
- "autoTroops\x12?\n" +
- "\fmemberTroops\x18\x03 \x03(\v2\x1b.pb.TeamMemberOutsideTroopsR\fmemberTroops\"\x9f\x01\n" +
- "\x17TeamMemberOutsideTroops\x12\x1c\n" +
- "\tteamIndex\x18\x01 \x01(\x05R\tteamIndex\x12 \n" +
- "\vtroopsCount\x18\x02 \x01(\x05R\vtroopsCount\x12*\n" +
- "\x10totalTroopsCount\x18\x03 \x01(\x05R\x10totalTroopsCount\x12\x18\n" +
- "\aendTime\x18\x04 \x01(\x03R\aendTimeB\x05Z\x03/pbb\x06proto3"
- var (
- file_team_proto_rawDescOnce sync.Once
- file_team_proto_rawDescData []byte
- )
- func file_team_proto_rawDescGZIP() []byte {
- file_team_proto_rawDescOnce.Do(func() {
- file_team_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_team_proto_rawDesc), len(file_team_proto_rawDesc)))
- })
- return file_team_proto_rawDescData
- }
- var file_team_proto_msgTypes = make([]protoimpl.MessageInfo, 14)
- var file_team_proto_goTypes = []any{
- (*Teams)(nil), // 0: pb.Teams
- (*Team)(nil), // 1: pb.Team
- (*TeamMember)(nil), // 2: pb.TeamMember
- (*TeamUpRequest)(nil), // 3: pb.TeamUpRequest
- (*TeamChangeRequest)(nil), // 4: pb.TeamChangeRequest
- (*TeamInnerChangeRequest)(nil), // 5: pb.TeamInnerChangeRequest
- (*TeamLineupRequest)(nil), // 6: pb.TeamLineupRequest
- (*TeamTroopsRequest)(nil), // 7: pb.TeamTroopsRequest
- (*TeamMemberTroops)(nil), // 8: pb.TeamMemberTroops
- (*TeamOutsideTroops)(nil), // 9: pb.TeamOutsideTroops
- (*TeamOutsideTroopsCancel)(nil), // 10: pb.TeamOutsideTroopsCancel
- (*TeamOutsideTroopsList)(nil), // 11: pb.TeamOutsideTroopsList
- (*TeamOutsideTroopsInfo)(nil), // 12: pb.TeamOutsideTroopsInfo
- (*TeamMemberOutsideTroops)(nil), // 13: pb.TeamMemberOutsideTroops
- (*I32I32)(nil), // 14: pb.I32I32
- }
- var file_team_proto_depIdxs = []int32{
- 1, // 0: pb.Teams.list:type_name -> pb.Team
- 2, // 1: pb.Team.members:type_name -> pb.TeamMember
- 8, // 2: pb.TeamTroopsRequest.memberTroops:type_name -> pb.TeamMemberTroops
- 14, // 3: pb.TeamOutsideTroops.troopsNums:type_name -> pb.I32I32
- 12, // 4: pb.TeamOutsideTroopsList.list:type_name -> pb.TeamOutsideTroopsInfo
- 13, // 5: pb.TeamOutsideTroopsInfo.memberTroops:type_name -> pb.TeamMemberOutsideTroops
- 6, // [6:6] is the sub-list for method output_type
- 6, // [6:6] is the sub-list for method input_type
- 6, // [6:6] is the sub-list for extension type_name
- 6, // [6:6] is the sub-list for extension extendee
- 0, // [0:6] is the sub-list for field type_name
- }
- func init() { file_team_proto_init() }
- func file_team_proto_init() {
- if File_team_proto != nil {
- return
- }
- file_base_type_proto_init()
- type x struct{}
- out := protoimpl.TypeBuilder{
- File: protoimpl.DescBuilder{
- GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
- RawDescriptor: unsafe.Slice(unsafe.StringData(file_team_proto_rawDesc), len(file_team_proto_rawDesc)),
- NumEnums: 0,
- NumMessages: 14,
- NumExtensions: 0,
- NumServices: 0,
- },
- GoTypes: file_team_proto_goTypes,
- DependencyIndexes: file_team_proto_depIdxs,
- MessageInfos: file_team_proto_msgTypes,
- }.Build()
- File_team_proto = out.File
- file_team_proto_goTypes = nil
- file_team_proto_depIdxs = nil
- }
|