diff --git a/comm/const.go b/comm/const.go index 776795e1a..2e6451f67 100644 --- a/comm/const.go +++ b/comm/const.go @@ -247,6 +247,8 @@ const ( TableParkour = "parkour" ///捕羊大赛 队伍表 TableParkourTeam = "parkourteam" + ///捕羊大赛 匹配表 + TableParkourMatch = "parkourmatch" ) // RPC服务接口定义处 @@ -304,6 +306,10 @@ const ( //Rpc // RPC 通知来了邮件 Rpc_Mail core.Rpc_Key = "Rpc_Mail" + + //捕羊大赛加入匹配请求 + RPC_ParkourJoinMatch core.Rpc_Key = "RPC_ParkourJoinMatch" + RPC_ParkourMatchSucc core.Rpc_Key = "RPC_ParkourMatchSucc" ) // 事件类型定义处 diff --git a/modules/parkour/api_invite.go b/modules/parkour/api_invite.go index 04abc5506..61a5b2ced 100644 --- a/modules/parkour/api_invite.go +++ b/modules/parkour/api_invite.go @@ -3,6 +3,8 @@ package parkour import ( "go_dreamfactory/comm" "go_dreamfactory/pb" + "go_dreamfactory/sys/configure" + "time" ) //参数校验 @@ -15,6 +17,7 @@ func (this *apiComp) Invite(session comm.IUserSession, req *pb.ParkourInviteReq) var ( tean *pb.DBRaceTeam tuser *pb.DBUser + ok bool err error ) if code = this.InviteCheck(session, req); code != pb.ErrorCode_Success { @@ -35,11 +38,28 @@ func (this *apiComp) Invite(session comm.IUserSession, req *pb.ParkourInviteReq) } //目标是否在线 if !this.module.ModuleUser.IsOnline(req.Uid) { - tean.Member = append(tean.Member, &pb.DBMember{Uid: tean.Uid, Name: tuser.Name, Isai: true}) + tean.Member = append(tean.Member, &pb.DBRaceMember{Uid: tuser.Uid, Name: tuser.Name, Isai: true}) } else { + ok = false + for _, v := range tean.Invite { + if v.Uid == req.Uid { + v.Expired = configure.Now().Add(time.Second * 10).Unix() + ok = true + } + } + if !ok { + tean.Invite = append(tean.Invite, &pb.DBRaceInvite{Uid: tuser.Uid, Name: tuser.Name}) + } this.module.SendMsgToUser(string(this.module.GetType()), "invitenotice", &pb.ParkourInviteNoticePush{Team: tean, State: 1}, req.Uid) } - session.SendMsg(string(this.module.GetType()), "invite", &pb.ParkourInviteResp{Issucc: true}) + if err = this.module.teamComp.Change(session.GetUserId(), map[string]interface{}{ + "invite": tean.Invite, + "member": tean.Member, + }); err != nil { + code = pb.ErrorCode_DBError + return + } + session.SendMsg(string(this.module.GetType()), "invite", &pb.ParkourInviteResp{Issucc: true, Team: tean}) return } diff --git a/modules/parkour/api_invitehandle.go b/modules/parkour/api_invitehandle.go new file mode 100644 index 000000000..b70bdaa6d --- /dev/null +++ b/modules/parkour/api_invitehandle.go @@ -0,0 +1,70 @@ +package parkour + +import ( + "go_dreamfactory/comm" + "go_dreamfactory/pb" + "go_dreamfactory/sys/configure" + "time" +) + +//参数校验 +func (this *apiComp) InviteHandleCheck(session comm.IUserSession, req *pb.ParkourInviteHandleReq) (code pb.ErrorCode) { + return +} + +///邀请组队 +func (this *apiComp) InviteHandle(session comm.IUserSession, req *pb.ParkourInviteHandleReq) (code pb.ErrorCode, data *pb.ErrorData) { + var ( + tean *pb.DBRaceTeam + invite *pb.DBRaceInvite + member *pb.DBRaceMember + users []string + ok bool + err error + ) + if code = this.InviteHandleCheck(session, req); code != pb.ErrorCode_Success { + return + } + if tean, err = this.module.teamComp.queryteam(req.Captainid); err != nil { + code = pb.ErrorCode_DBError + return + } + if len(tean.Member) > 3 { + code = pb.ErrorCode_ParkourMemberFull + return + } + if req.State == 1 { + ok = false + for _, v := range tean.Invite { + if v.Uid == session.GetUserId() && configure.Now().Before(time.Unix(v.Expired, 0)) { //邀请未过期 + invite = v + ok = true + } + } + if !ok { + code = pb.ErrorCode_ParkourInviteOverdue + } + users = make([]string, len(tean.Member)) + for i, v := range tean.Member { + users[i] = v.Uid + } + member = &pb.DBRaceMember{Uid: invite.Uid, Name: invite.Name} + tean.Member = append(tean.Member, member) + if err = this.module.teamComp.Change(tean.Captainid, map[string]interface{}{ + "member": tean.Member, + }); err != nil { + code = pb.ErrorCode_DBError + return + } + this.module.SendMsgToUsers(string(this.module.GetType()), "teamjoinnotice", + &pb.ParkourTeamJoinNoticePush{Member: member}, users...) + this.module.SendMsgToUsers(string(this.module.GetType()), "teamchanage", + &pb.ParkourTeamChanagePush{Team: tean}, users...) + } else { + this.module.SendMsgToUser(string(this.module.GetType()), "invitenotice", + &pb.ParkourInviteNoticePush{Team: tean, State: 3}, tean.Captainid) + } + + session.SendMsg(string(this.module.GetType()), "invite", &pb.ParkourInviteHandleResp{IsSucc: true}) + return +} diff --git a/modules/parkour/api_quitteam.go b/modules/parkour/api_quitteam.go new file mode 100644 index 000000000..7e0353cf4 --- /dev/null +++ b/modules/parkour/api_quitteam.go @@ -0,0 +1,57 @@ +package parkour + +import ( + "go_dreamfactory/comm" + "go_dreamfactory/pb" +) + +//参数校验 +func (this *apiComp) QuitTeamCheck(session comm.IUserSession, req *pb.ParkourQuitTeamReq) (code pb.ErrorCode) { + return +} + +///退出队伍 +func (this *apiComp) QuitTeam(session comm.IUserSession, req *pb.ParkourQuitTeamReq) (code pb.ErrorCode, data *pb.ErrorData) { + var ( + tean *pb.DBRaceTeam + member *pb.DBRaceMember + users []string + ok bool + err error + ) + if code = this.QuitTeamCheck(session, req); code != pb.ErrorCode_Success { + return + } + if tean, err = this.module.teamComp.queryteam(req.Captainid); err != nil { + code = pb.ErrorCode_DBError + return + } + for i, v := range tean.Member { + if v.Uid == session.GetUserId() { + tean.Member = append(tean.Member[0:i], tean.Member[i+1:]...) + member = v + ok = true + } else { + users = append(users, v.Uid) + } + } + if !ok { + code = pb.ErrorCode_ReqParameterError + return + } + if err = this.module.teamComp.Change(req.Captainid, map[string]interface{}{ + "member": tean.Member, + }); err != nil { + code = pb.ErrorCode_DBError + return + } + + this.module.SendMsgToUsers(string(this.module.GetType()), "teamquitnotice", + &pb.ParkourTeamQuitNoticePush{Member: member}, users...) + + this.module.SendMsgToUsers(string(this.module.GetType()), "teamchanage", + &pb.ParkourTeamChanagePush{Team: tean}, users...) + + session.SendMsg(string(this.module.GetType()), "quitteam", &pb.ParkourQuitTeamResp{}) + return +} diff --git a/modules/parkour/api_racematch.go b/modules/parkour/api_racematch.go new file mode 100644 index 000000000..b9dd22091 --- /dev/null +++ b/modules/parkour/api_racematch.go @@ -0,0 +1,32 @@ +package parkour + +import ( + "go_dreamfactory/comm" + "go_dreamfactory/pb" +) + +//参数校验 +func (this *apiComp) RaceMatchCheck(session comm.IUserSession, req *pb.ParkourRaceMatchReq) (code pb.ErrorCode) { + return +} + +///匹配请求 +func (this *apiComp) RaceMatch(session comm.IUserSession, req *pb.ParkourRaceMatchReq) (code pb.ErrorCode, data *pb.ErrorData) { + var ( + team *pb.DBRaceTeam + err error + ) + if code = this.RaceMatchCheck(session, req); code != pb.ErrorCode_Success { + return + } + if team, err = this.module.teamComp.queryteam(session.GetUserId()); err != nil { + code = pb.ErrorCode_DBError + return + } + if err = this.module.matchComp.addteam(team); err != nil { + code = pb.ErrorCode_DBError + return + } + session.SendMsg(string(this.module.GetType()), "racematch", &pb.ParkourRaceMatchResp{}) + return +} diff --git a/modules/parkour/core.go b/modules/parkour/core.go new file mode 100644 index 000000000..ebc16dcf9 --- /dev/null +++ b/modules/parkour/core.go @@ -0,0 +1,15 @@ +package parkour + +import ( + "go_dreamfactory/comm" + "go_dreamfactory/pb" +) + +///捕羊大赛对象 +type RaceItem struct { + Id string //战斗id + RedMember []*pb.DBRaceMember //红方成员 + RedSession []comm.IUserSession //红方会话 + BuleMember []*pb.DBRaceMember //蓝方成员 + BuleSession []comm.IUserSession //蓝方会话 +} diff --git a/modules/parkour/model_match.go b/modules/parkour/model_match.go new file mode 100644 index 000000000..9ac6e8a2a --- /dev/null +++ b/modules/parkour/model_match.go @@ -0,0 +1,36 @@ +package parkour + +import ( + "go_dreamfactory/comm" + "go_dreamfactory/lego/core" + "go_dreamfactory/modules" + "go_dreamfactory/pb" +) + +///竞速数据模块 +type ModelMatchComp struct { + modules.MCompModel + module *Parkour +} + +//组件初始化接口 只是用redis 层 +func (this *ModelMatchComp) Init(service core.IService, module core.IModule, comp core.IModuleComp, opt core.IModuleOptions) (err error) { + this.TableName = comm.TableParkourMatch + this.MCompModel.Init(service, module, comp, opt) + this.module = module.(*Parkour) + return +} + +///添加匹配队伍 +func (this *ModelMatchComp) addteam(team *pb.DBRaceTeam) (err error) { + // var ( + // teams []*pb.DBRaceTeam = make([]*pb.DBRaceTeam, 0) + // ) + // if err = this.GetQueues(this.TableName, 1000, &teams); err == redis.RedisNil { + // if outkey, err = this.AddQueues(this.TableName, 1000, data); err != nil { + // this.module.Errorf("err:%v", err) + // return + // } + // } + return +} diff --git a/modules/parkour/model_parkour.go b/modules/parkour/model_parkour.go index 4450b5cb7..f20d08e4b 100644 --- a/modules/parkour/model_parkour.go +++ b/modules/parkour/model_parkour.go @@ -4,6 +4,8 @@ import ( "go_dreamfactory/comm" "go_dreamfactory/lego/core" "go_dreamfactory/modules" + "go_dreamfactory/pb" + "go_dreamfactory/sys/db" "go.mongodb.org/mongo-driver/mongo" "go.mongodb.org/mongo-driver/x/bsonx" @@ -26,3 +28,11 @@ func (this *ModelParkourComp) Init(service core.IService, module core.IModule, c }) return } + +//记录战斗信息 +func (this *ModelParkourComp) addrace(race *pb.DBRace) (err error) { + if err = this.AddList("", race.Id, race, db.SetDBMgoLog(false)); err != nil { + this.module.Errorln(err) + } + return +} diff --git a/modules/parkour/model_team.go b/modules/parkour/model_team.go index 5fdabbe8e..5125a9ee0 100644 --- a/modules/parkour/model_team.go +++ b/modules/parkour/model_team.go @@ -44,9 +44,11 @@ func (this *ModelTeamComp) queryteam(uid string) (result *pb.DBRaceTeam, err err return } result = &pb.DBRaceTeam{ - Id: primitive.NewObjectID().Hex(), - Uid: uid, - Member: []*pb.DBMember{{Uid: tuser.Uid, Name: tuser.Name}}, + Id: primitive.NewObjectID().Hex(), + Captainid: uid, + State: pb.RaceTeamState_teaming, + Invite: make([]*pb.DBRaceInvite, 0), + Member: []*pb.DBRaceMember{{Uid: tuser.Uid, Name: tuser.Name}}, } if err = this.Add(uid, result); err != nil { this.module.Errorln(err) @@ -56,3 +58,37 @@ func (this *ModelTeamComp) queryteam(uid string) (result *pb.DBRaceTeam, err err err = nil return } + +func (this *ModelTeamComp) queryteams(uids []string) (results []*pb.DBRaceTeam, err error) { + results = make([]*pb.DBRaceTeam, 0) + var ( + onfound []string + newdata map[string]interface{} = make(map[string]interface{}) + ) + if onfound, err = this.Gets(uids, &results); err != nil { + this.module.Errorln(err) + return + } + if len(onfound) > 0 { + for _, v := range onfound { + var tuser *pb.DBUser + if tuser = this.module.ModuleUser.GetUser(v); tuser == nil { + err = fmt.Errorf("no found udata:%s", v) + return + } + temp := &pb.DBRaceTeam{ + Id: primitive.NewObjectID().Hex(), + Captainid: v, + State: pb.RaceTeamState_teaming, + Invite: make([]*pb.DBRaceInvite, 0), + Member: []*pb.DBRaceMember{{Uid: tuser.Uid, Name: tuser.Name}}, + } + newdata[v] = temp + } + if err = this.Adds(newdata); err != nil { + this.module.Errorln(err) + return + } + } + return +} diff --git a/modules/parkour/module.go b/modules/parkour/module.go index 1c96460b2..ef9b21e62 100644 --- a/modules/parkour/module.go +++ b/modules/parkour/module.go @@ -1,10 +1,17 @@ package parkour import ( + "context" + "fmt" "go_dreamfactory/comm" "go_dreamfactory/lego/base" "go_dreamfactory/lego/core" + "go_dreamfactory/lego/sys/log" "go_dreamfactory/modules" + "go_dreamfactory/pb" + "sync" + + "go.mongodb.org/mongo-driver/bson/primitive" ) /* @@ -23,7 +30,10 @@ type Parkour struct { api *apiComp configure *configureComp teamComp *ModelTeamComp + matchComp *ModelMatchComp parkourComp *ModelParkourComp + lock sync.RWMutex + battles map[string]*RaceItem } //模块名 @@ -35,12 +45,13 @@ func (this *Parkour) GetType() core.M_Modules { func (this *Parkour) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) { err = this.ModuleBase.Init(service, module, options) this.service = service.(base.IRPCXService) + this.battles = map[string]*RaceItem{} return } func (this *Parkour) Start() (err error) { err = this.ModuleBase.Start() - + this.service.RegisterFunctionName(string(comm.RPC_ParkourMatchSucc), this.createbattle) return } @@ -50,5 +61,69 @@ func (this *Parkour) OnInstallComp() { this.api = this.RegisterComp(new(apiComp)).(*apiComp) this.configure = this.RegisterComp(new(configureComp)).(*configureComp) this.teamComp = this.RegisterComp(new(ModelTeamComp)).(*ModelTeamComp) + this.matchComp = this.RegisterComp(new(ModelMatchComp)).(*ModelMatchComp) this.parkourComp = this.RegisterComp(new(ModelParkourComp)).(*ModelParkourComp) } + +//匹配成功 创建战斗 +func (this *Parkour) createbattle(ctx context.Context, req *pb.RPCParkourMatchSuccReq, resp *pb.RPCParkourMatchSuccResp) (err error) { + var ( + race *pb.DBRace + battle *RaceItem + sessions []comm.IUserSession = make([]comm.IUserSession, 0) + teams []*pb.DBRaceTeam + users []string = make([]string, 0) + ) + this.Debug("createbattle", log.Field{Key: "req", Value: req.String()}) + + race = &pb.DBRace{ + Id: primitive.NewObjectID().Hex(), + ServicePath: fmt.Sprintf("%s/%s", this.service.GetType(), this.service.GetId()), + Redmember: req.Red, + Bulemember: req.Bule, + } + battle = &RaceItem{ + Id: race.Id, + RedSession: make([]comm.IUserSession, 0), + BuleSession: make([]comm.IUserSession, 0), + } + + for _, v := range req.Red { + users = append(users, v.Uid) + session, online := this.GetUserSession(v.Uid) + v.Isoff = !online + if online { + battle.RedSession = append(battle.RedSession, session) + } + } + battle.RedMember = req.Red + for _, v := range req.Bule { + users = append(users, v.Uid) + session, online := this.GetUserSession(v.Uid) + v.Isoff = !online + if online { + battle.BuleSession = append(battle.BuleSession, session) + } + } + battle.BuleMember = req.Bule + if teams, err = this.teamComp.queryteams(users); err != nil { + return + } + for _, v := range teams { + v.State = pb.RaceTeamState_raceing + } + if err = this.parkourComp.addrace(race); err != nil { + return + } + this.lock.Lock() + this.battles[race.Id] = battle + this.lock.Unlock() + if err = this.SendMsgToSession(string(comm.ModulePvp), "racematchsucc", &pb.ParkourRaceMatchSuccPush{ + Race: race, + }, sessions...); err != nil { + this.Errorln(err) + } + return +} + + diff --git a/modules/timer/parkour.go b/modules/timer/parkour.go new file mode 100644 index 000000000..91bc463e2 --- /dev/null +++ b/modules/timer/parkour.go @@ -0,0 +1,141 @@ +package timer + +import ( + "context" + "go_dreamfactory/comm" + "go_dreamfactory/modules" + "go_dreamfactory/pb" + "go_dreamfactory/sys/db" + "sync" + "time" + + "go_dreamfactory/lego/base" + "go_dreamfactory/lego/core" + "go_dreamfactory/lego/sys/cron" +) + +/* +捕羊大赛 维护服务 +*/ +type ParkourComp struct { + modules.MCompConfigure + service base.IRPCXService + module *Timer + lock sync.RWMutex + teams map[string][]*pb.DBRaceMember + total int32 +} + +//组件初始化接口 +func (this *ParkourComp) Init(service core.IService, module core.IModule, comp core.IModuleComp, options core.IModuleOptions) (err error) { + this.MCompConfigure.Init(service, module, comp, options) + this.service = service.(base.IRPCXService) + this.module = module.(*Timer) + this.teams = make(map[string][]*pb.DBRaceMember) + return +} + +//自由跨服环境下开启此功能 +func (this *ParkourComp) Start() (err error) { + err = this.MCompConfigure.Start() + if db.IsCross() { + this.service.RegisterFunctionName(string(comm.RPC_ParkourJoinMatch), this.join) + if _, err = cron.AddFunc("0 59 23 ? * SAT", this.timer); err != nil { + this.module.Errorf("cron.AddFunc err:%v", err) + } + } + return +} + +//加入匹配中 +func (this *ParkourComp) join(ctx context.Context, req *pb.RPCParkourJoinMatchReq, resp *pb.RPCParkourJoinMatchResp) (err error) { + this.lock.Lock() + defer this.lock.Unlock() + this.teams[req.Captainid] = req.Member + this.total += int32(len(req.Member)) + if this.total >= 6 { + var ( + teams1 []string = make([]string, 0) + teams2 []string = make([]string, 0) + teams3 []string = make([]string, 0) + red []string = make([]string, 0) + reduser []*pb.DBRaceMember = make([]*pb.DBRaceMember, 0) + bule []string = make([]string, 0) + buleuser []*pb.DBRaceMember = make([]*pb.DBRaceMember, 0) + ) + for k, v := range this.teams { + if len(v) == 1 { + teams1 = append(teams1, k) + } else if len(v) == 2 { + teams2 = append(teams2, k) + } else { + teams3 = append(teams3, k) + } + } + + //找红队 + if len(teams3) > 0 { + red = append(red, teams3[0]) + teams3 = teams3[1:] + } else if len(teams2) > 0 && len(teams1) > 0 { + red = append(red, teams2[0], teams1[0]) + teams2 = teams2[1:] + teams1 = teams1[1:] + } else if len(teams1) >= 3 { + red = append(red, teams1[0], teams1[1], teams1[2]) + teams1 = teams1[3:] + } + + if len(red) == 0 { + return + } + + //找蓝队 + if len(teams3) > 0 { + bule = append(bule, teams3[0]) + teams3 = teams3[1:] + } else if len(teams2) > 0 && len(teams1) > 0 { + bule = append(bule, teams2[0], teams1[0]) + teams2 = teams2[1:] + teams1 = teams1[1:] + } else if len(teams1) >= 3 { + bule = append(bule, teams1[0], teams1[1], teams1[2]) + teams1 = teams1[3:] + } + + if len(bule) == 0 { + return + } + for _, v := range red { + reduser = append(reduser, this.teams[v]...) + } + for _, v := range bule { + buleuser = append(reduser, this.teams[v]...) + } + + ctx, _ := context.WithTimeout(context.Background(), time.Second*2) + if err = this.service.RpcCall(ctx, + comm.Service_Worker, + string(comm.RPC_ParkourMatchSucc), + &pb.RPCParkourMatchSuccReq{Red: reduser, Bule: buleuser}, + &pb.RPCParkourMatchSuccResp{}, + ); err != nil { + this.module.Errorln(err) + return + } + + for _, v := range red { + delete(this.teams, v) + } + for _, v := range bule { + delete(this.teams, v) + } + this.total -= 6 + } + return +} + +//定时匹配处理 +func (this *ParkourComp) timer() { + +} diff --git a/pb/errorcode.pb.go b/pb/errorcode.pb.go index e447b4b65..705762dfd 100644 --- a/pb/errorcode.pb.go +++ b/pb/errorcode.pb.go @@ -364,6 +364,9 @@ const ( ErrorCode_PracticePillarMaxLv ErrorCode = 4304 //木桩已到满级 ErrorCode_PracticeYouQiecuoing ErrorCode = 4305 //你有切磋未完成 ErrorCode_PracticeTargetQiecuoing ErrorCode = 4306 //目标正在切磋中 + //parkour + ErrorCode_ParkourMemberFull ErrorCode = 4401 //队伍成员已满 + ErrorCode_ParkourInviteOverdue ErrorCode = 4402 //邀请已过期 ) // Enum value maps for ErrorCode. @@ -676,6 +679,8 @@ var ( 4304: "PracticePillarMaxLv", 4305: "PracticeYouQiecuoing", 4306: "PracticeTargetQiecuoing", + 4401: "ParkourMemberFull", + 4402: "ParkourInviteOverdue", } ErrorCode_value = map[string]int32{ "Success": 0, @@ -985,6 +990,8 @@ var ( "PracticePillarMaxLv": 4304, "PracticeYouQiecuoing": 4305, "PracticeTargetQiecuoing": 4306, + "ParkourMemberFull": 4401, + "ParkourInviteOverdue": 4402, } ) @@ -1019,7 +1026,7 @@ var File_errorcode_proto protoreflect.FileDescriptor var file_errorcode_proto_rawDesc = []byte{ 0x0a, 0x0f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x63, 0x6f, 0x64, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x2a, 0xf5, 0x37, 0x0a, 0x09, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, + 0x6f, 0x2a, 0xa8, 0x38, 0x0a, 0x09, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x10, 0x00, 0x12, 0x14, 0x0a, 0x10, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x45, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x10, 0x01, 0x12, 0x11, 0x0a, 0x0d, 0x4e, 0x6f, 0x46, 0x69, 0x6e, 0x64, 0x53, 0x65, 0x72, 0x76, @@ -1466,8 +1473,11 @@ var file_errorcode_proto_rawDesc = []byte{ 0x12, 0x19, 0x0a, 0x14, 0x50, 0x72, 0x61, 0x63, 0x74, 0x69, 0x63, 0x65, 0x59, 0x6f, 0x75, 0x51, 0x69, 0x65, 0x63, 0x75, 0x6f, 0x69, 0x6e, 0x67, 0x10, 0xd1, 0x21, 0x12, 0x1c, 0x0a, 0x17, 0x50, 0x72, 0x61, 0x63, 0x74, 0x69, 0x63, 0x65, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x51, 0x69, 0x65, - 0x63, 0x75, 0x6f, 0x69, 0x6e, 0x67, 0x10, 0xd2, 0x21, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, - 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x63, 0x75, 0x6f, 0x69, 0x6e, 0x67, 0x10, 0xd2, 0x21, 0x12, 0x16, 0x0a, 0x11, 0x50, 0x61, 0x72, + 0x6b, 0x6f, 0x75, 0x72, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x46, 0x75, 0x6c, 0x6c, 0x10, 0xb1, + 0x22, 0x12, 0x19, 0x0a, 0x14, 0x50, 0x61, 0x72, 0x6b, 0x6f, 0x75, 0x72, 0x49, 0x6e, 0x76, 0x69, + 0x74, 0x65, 0x4f, 0x76, 0x65, 0x72, 0x64, 0x75, 0x65, 0x10, 0xb2, 0x22, 0x42, 0x06, 0x5a, 0x04, + 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/pb/parkour_db.pb.go b/pb/parkour_db.pb.go index 446edc7dd..c3a179b7f 100644 --- a/pb/parkour_db.pb.go +++ b/pb/parkour_db.pb.go @@ -66,6 +66,56 @@ func (RaceType) EnumDescriptor() ([]byte, []int) { return file_parkour_parkour_db_proto_rawDescGZIP(), []int{0} } +//队伍状态 +type RaceTeamState int32 + +const ( + RaceTeamState_teaming RaceTeamState = 0 //组队中 + RaceTeamState_matching RaceTeamState = 1 //匹配中 + RaceTeamState_raceing RaceTeamState = 2 //比赛中 +) + +// Enum value maps for RaceTeamState. +var ( + RaceTeamState_name = map[int32]string{ + 0: "teaming", + 1: "matching", + 2: "raceing", + } + RaceTeamState_value = map[string]int32{ + "teaming": 0, + "matching": 1, + "raceing": 2, + } +) + +func (x RaceTeamState) Enum() *RaceTeamState { + p := new(RaceTeamState) + *p = x + return p +} + +func (x RaceTeamState) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (RaceTeamState) Descriptor() protoreflect.EnumDescriptor { + return file_parkour_parkour_db_proto_enumTypes[1].Descriptor() +} + +func (RaceTeamState) Type() protoreflect.EnumType { + return &file_parkour_parkour_db_proto_enumTypes[1] +} + +func (x RaceTeamState) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use RaceTeamState.Descriptor instead. +func (RaceTeamState) EnumDescriptor() ([]byte, []int) { + return file_parkour_parkour_db_proto_rawDescGZIP(), []int{1} +} + //坐骑 type DBMounts struct { state protoimpl.MessageState @@ -286,10 +336,11 @@ type DBRaceTeam struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id" bson:"_id"` // 队伍id - Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid"` //队长id - Invite []*DBRaceInvite `protobuf:"bytes,3,rep,name=invite,proto3" json:"invite"` //邀请列表 - Member []*DBRaceMember `protobuf:"bytes,4,rep,name=member,proto3" json:"member"` //成员列表 + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id" bson:"_id"` // 队伍id + State RaceTeamState `protobuf:"varint,2,opt,name=state,proto3,enum=RaceTeamState" json:"state"` //队伍状态 + Captainid string `protobuf:"bytes,3,opt,name=captainid,proto3" json:"captainid"` //队长id + Invite []*DBRaceInvite `protobuf:"bytes,4,rep,name=invite,proto3" json:"invite"` //邀请列表 + Member []*DBRaceMember `protobuf:"bytes,5,rep,name=member,proto3" json:"member"` //成员列表 } func (x *DBRaceTeam) Reset() { @@ -331,9 +382,16 @@ func (x *DBRaceTeam) GetId() string { return "" } -func (x *DBRaceTeam) GetUid() string { +func (x *DBRaceTeam) GetState() RaceTeamState { if x != nil { - return x.Uid + return x.State + } + return RaceTeamState_teaming +} + +func (x *DBRaceTeam) GetCaptainid() string { + if x != nil { + return x.Captainid } return "" } @@ -358,12 +416,13 @@ type DBRace struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id" bson:"_id"` // 比赛唯一id - Rtype RaceType `protobuf:"varint,2,opt,name=rtype,proto3,enum=RaceType" json:"rtype"` //比赛类型 - Trackid int32 `protobuf:"varint,3,opt,name=trackid,proto3" json:"trackid"` //赛道id - Innermost int32 `protobuf:"varint,4,opt,name=innermost,proto3" json:"innermost"` //里程数 - Redteam *DBRaceTeam `protobuf:"bytes,5,opt,name=redteam,proto3" json:"redteam"` //红方队伍 - Buleteam *DBRaceTeam `protobuf:"bytes,6,opt,name=buleteam,proto3" json:"buleteam"` //蓝方队伍 + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id" bson:"_id"` // 比赛唯一id + ServicePath string `protobuf:"bytes,2,opt,name=servicePath,proto3" json:"servicePath"` //比赛所在服务 + Rtype RaceType `protobuf:"varint,3,opt,name=rtype,proto3,enum=RaceType" json:"rtype"` //比赛类型 + Trackid int32 `protobuf:"varint,4,opt,name=trackid,proto3" json:"trackid"` //赛道id + Innermost int32 `protobuf:"varint,5,opt,name=innermost,proto3" json:"innermost"` //里程数 + Redmember []*DBRaceMember `protobuf:"bytes,6,rep,name=redmember,proto3" json:"redmember"` //红方队伍 + Bulemember []*DBRaceMember `protobuf:"bytes,7,rep,name=bulemember,proto3" json:"bulemember"` //蓝方队伍 } func (x *DBRace) Reset() { @@ -405,6 +464,13 @@ func (x *DBRace) GetId() string { return "" } +func (x *DBRace) GetServicePath() string { + if x != nil { + return x.ServicePath + } + return "" +} + func (x *DBRace) GetRtype() RaceType { if x != nil { return x.Rtype @@ -426,16 +492,16 @@ func (x *DBRace) GetInnermost() int32 { return 0 } -func (x *DBRace) GetRedteam() *DBRaceTeam { +func (x *DBRace) GetRedmember() []*DBRaceMember { if x != nil { - return x.Redteam + return x.Redmember } return nil } -func (x *DBRace) GetBuleteam() *DBRaceTeam { +func (x *DBRace) GetBulemember() []*DBRaceMember { if x != nil { - return x.Buleteam + return x.Bulemember } return nil } @@ -463,30 +529,40 @@ var file_parkour_parkour_db_proto_rawDesc = []byte{ 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, - 0x07, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x64, 0x22, 0x7c, 0x0a, 0x0a, 0x44, 0x42, 0x52, 0x61, - 0x63, 0x65, 0x54, 0x65, 0x61, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x25, 0x0a, 0x06, 0x69, 0x6e, 0x76, 0x69, - 0x74, 0x65, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x44, 0x42, 0x52, 0x61, 0x63, - 0x65, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x52, 0x06, 0x69, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x12, - 0x25, 0x0a, 0x06, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x0d, 0x2e, 0x44, 0x42, 0x52, 0x61, 0x63, 0x65, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x06, - 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x22, 0xc1, 0x01, 0x0a, 0x06, 0x44, 0x42, 0x52, 0x61, 0x63, - 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, - 0x64, 0x12, 0x1f, 0x0a, 0x05, 0x72, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, - 0x32, 0x09, 0x2e, 0x52, 0x61, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x05, 0x72, 0x74, 0x79, - 0x70, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x74, 0x72, 0x61, 0x63, 0x6b, 0x69, 0x64, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x05, 0x52, 0x07, 0x74, 0x72, 0x61, 0x63, 0x6b, 0x69, 0x64, 0x12, 0x1c, 0x0a, 0x09, - 0x69, 0x6e, 0x6e, 0x65, 0x72, 0x6d, 0x6f, 0x73, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, - 0x09, 0x69, 0x6e, 0x6e, 0x65, 0x72, 0x6d, 0x6f, 0x73, 0x74, 0x12, 0x25, 0x0a, 0x07, 0x72, 0x65, - 0x64, 0x74, 0x65, 0x61, 0x6d, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x44, 0x42, - 0x52, 0x61, 0x63, 0x65, 0x54, 0x65, 0x61, 0x6d, 0x52, 0x07, 0x72, 0x65, 0x64, 0x74, 0x65, 0x61, - 0x6d, 0x12, 0x27, 0x0a, 0x08, 0x62, 0x75, 0x6c, 0x65, 0x74, 0x65, 0x61, 0x6d, 0x18, 0x06, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x44, 0x42, 0x52, 0x61, 0x63, 0x65, 0x54, 0x65, 0x61, 0x6d, - 0x52, 0x08, 0x62, 0x75, 0x6c, 0x65, 0x74, 0x65, 0x61, 0x6d, 0x2a, 0x22, 0x0a, 0x08, 0x52, 0x61, - 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0c, 0x0a, 0x08, 0x6f, 0x72, 0x64, 0x69, 0x6e, 0x61, - 0x72, 0x79, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x70, 0x72, 0x6f, 0x70, 0x10, 0x01, 0x42, 0x06, - 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x07, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x64, 0x22, 0xae, 0x01, 0x0a, 0x0a, 0x44, 0x42, 0x52, + 0x61, 0x63, 0x65, 0x54, 0x65, 0x61, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x24, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0e, 0x2e, 0x52, 0x61, 0x63, 0x65, 0x54, 0x65, 0x61, + 0x6d, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x1c, 0x0a, + 0x09, 0x63, 0x61, 0x70, 0x74, 0x61, 0x69, 0x6e, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x09, 0x63, 0x61, 0x70, 0x74, 0x61, 0x69, 0x6e, 0x69, 0x64, 0x12, 0x25, 0x0a, 0x06, 0x69, + 0x6e, 0x76, 0x69, 0x74, 0x65, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x44, 0x42, + 0x52, 0x61, 0x63, 0x65, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x52, 0x06, 0x69, 0x6e, 0x76, 0x69, + 0x74, 0x65, 0x12, 0x25, 0x0a, 0x06, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x05, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x44, 0x42, 0x52, 0x61, 0x63, 0x65, 0x4d, 0x65, 0x6d, 0x62, 0x65, + 0x72, 0x52, 0x06, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x22, 0xef, 0x01, 0x0a, 0x06, 0x44, 0x42, + 0x52, 0x61, 0x63, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x02, 0x69, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, + 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x50, 0x61, 0x74, 0x68, 0x12, 0x1f, 0x0a, 0x05, 0x72, 0x74, 0x79, 0x70, 0x65, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x09, 0x2e, 0x52, 0x61, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, + 0x52, 0x05, 0x72, 0x74, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x74, 0x72, 0x61, 0x63, 0x6b, + 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x74, 0x72, 0x61, 0x63, 0x6b, 0x69, + 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x69, 0x6e, 0x6e, 0x65, 0x72, 0x6d, 0x6f, 0x73, 0x74, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x69, 0x6e, 0x6e, 0x65, 0x72, 0x6d, 0x6f, 0x73, 0x74, 0x12, + 0x2b, 0x0a, 0x09, 0x72, 0x65, 0x64, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x06, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x44, 0x42, 0x52, 0x61, 0x63, 0x65, 0x4d, 0x65, 0x6d, 0x62, 0x65, + 0x72, 0x52, 0x09, 0x72, 0x65, 0x64, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x2d, 0x0a, 0x0a, + 0x62, 0x75, 0x6c, 0x65, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x0d, 0x2e, 0x44, 0x42, 0x52, 0x61, 0x63, 0x65, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, + 0x0a, 0x62, 0x75, 0x6c, 0x65, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x2a, 0x22, 0x0a, 0x08, 0x52, + 0x61, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0c, 0x0a, 0x08, 0x6f, 0x72, 0x64, 0x69, 0x6e, + 0x61, 0x72, 0x79, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x70, 0x72, 0x6f, 0x70, 0x10, 0x01, 0x2a, + 0x37, 0x0a, 0x0d, 0x52, 0x61, 0x63, 0x65, 0x54, 0x65, 0x61, 0x6d, 0x53, 0x74, 0x61, 0x74, 0x65, + 0x12, 0x0b, 0x0a, 0x07, 0x74, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x10, 0x00, 0x12, 0x0c, 0x0a, + 0x08, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x72, + 0x61, 0x63, 0x65, 0x69, 0x6e, 0x67, 0x10, 0x02, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, + 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -501,28 +577,30 @@ func file_parkour_parkour_db_proto_rawDescGZIP() []byte { return file_parkour_parkour_db_proto_rawDescData } -var file_parkour_parkour_db_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_parkour_parkour_db_proto_enumTypes = make([]protoimpl.EnumInfo, 2) var file_parkour_parkour_db_proto_msgTypes = make([]protoimpl.MessageInfo, 5) var file_parkour_parkour_db_proto_goTypes = []interface{}{ (RaceType)(0), // 0: RaceType - (*DBMounts)(nil), // 1: DBMounts - (*DBRaceMember)(nil), // 2: DBRaceMember - (*DBRaceInvite)(nil), // 3: DBRaceInvite - (*DBRaceTeam)(nil), // 4: DBRaceTeam - (*DBRace)(nil), // 5: DBRace + (RaceTeamState)(0), // 1: RaceTeamState + (*DBMounts)(nil), // 2: DBMounts + (*DBRaceMember)(nil), // 3: DBRaceMember + (*DBRaceInvite)(nil), // 4: DBRaceInvite + (*DBRaceTeam)(nil), // 5: DBRaceTeam + (*DBRace)(nil), // 6: DBRace } var file_parkour_parkour_db_proto_depIdxs = []int32{ - 1, // 0: DBRaceMember.mount:type_name -> DBMounts - 3, // 1: DBRaceTeam.invite:type_name -> DBRaceInvite - 2, // 2: DBRaceTeam.member:type_name -> DBRaceMember - 0, // 3: DBRace.rtype:type_name -> RaceType - 4, // 4: DBRace.redteam:type_name -> DBRaceTeam - 4, // 5: DBRace.buleteam:type_name -> DBRaceTeam - 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 + 2, // 0: DBRaceMember.mount:type_name -> DBMounts + 1, // 1: DBRaceTeam.state:type_name -> RaceTeamState + 4, // 2: DBRaceTeam.invite:type_name -> DBRaceInvite + 3, // 3: DBRaceTeam.member:type_name -> DBRaceMember + 0, // 4: DBRace.rtype:type_name -> RaceType + 3, // 5: DBRace.redmember:type_name -> DBRaceMember + 3, // 6: DBRace.bulemember:type_name -> DBRaceMember + 7, // [7:7] is the sub-list for method output_type + 7, // [7:7] is the sub-list for method input_type + 7, // [7:7] is the sub-list for extension type_name + 7, // [7:7] is the sub-list for extension extendee + 0, // [0:7] is the sub-list for field type_name } func init() { file_parkour_parkour_db_proto_init() } @@ -597,7 +675,7 @@ func file_parkour_parkour_db_proto_init() { File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_parkour_parkour_db_proto_rawDesc, - NumEnums: 1, + NumEnums: 2, NumMessages: 5, NumExtensions: 0, NumServices: 0, diff --git a/pb/parkour_msg.pb.go b/pb/parkour_msg.pb.go index 279580ec6..71c197f77 100644 --- a/pb/parkour_msg.pb.go +++ b/pb/parkour_msg.pb.go @@ -74,7 +74,8 @@ type ParkourInviteResp struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Issucc bool `protobuf:"varint,1,opt,name=issucc,proto3" json:"issucc"` + Issucc bool `protobuf:"varint,1,opt,name=issucc,proto3" json:"issucc"` + Team *DBRaceTeam `protobuf:"bytes,2,opt,name=team,proto3" json:"team"` } func (x *ParkourInviteResp) Reset() { @@ -116,6 +117,13 @@ func (x *ParkourInviteResp) GetIssucc() bool { return false } +func (x *ParkourInviteResp) GetTeam() *DBRaceTeam { + if x != nil { + return x.Team + } + return nil +} + //组队邀请通知推送 type ParkourInviteNoticePush struct { state protoimpl.MessageState @@ -172,6 +180,340 @@ func (x *ParkourInviteNoticePush) GetState() int32 { return 0 } +//推送队伍对变化通知 +type ParkourTeamChanagePush struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Team *DBRaceTeam `protobuf:"bytes,1,opt,name=team,proto3" json:"team"` +} + +func (x *ParkourTeamChanagePush) Reset() { + *x = ParkourTeamChanagePush{} + if protoimpl.UnsafeEnabled { + mi := &file_parkour_parkour_msg_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ParkourTeamChanagePush) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ParkourTeamChanagePush) ProtoMessage() {} + +func (x *ParkourTeamChanagePush) ProtoReflect() protoreflect.Message { + mi := &file_parkour_parkour_msg_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ParkourTeamChanagePush.ProtoReflect.Descriptor instead. +func (*ParkourTeamChanagePush) Descriptor() ([]byte, []int) { + return file_parkour_parkour_msg_proto_rawDescGZIP(), []int{3} +} + +func (x *ParkourTeamChanagePush) GetTeam() *DBRaceTeam { + if x != nil { + return x.Team + } + return nil +} + +//邀请处理请求 +type ParkourInviteHandleReq struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Captainid string `protobuf:"bytes,1,opt,name=captainid,proto3" json:"captainid"` //队长id + State int32 `protobuf:"varint,2,opt,name=state,proto3" json:"state"` //2拒绝请求 3接收请求 +} + +func (x *ParkourInviteHandleReq) Reset() { + *x = ParkourInviteHandleReq{} + if protoimpl.UnsafeEnabled { + mi := &file_parkour_parkour_msg_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ParkourInviteHandleReq) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ParkourInviteHandleReq) ProtoMessage() {} + +func (x *ParkourInviteHandleReq) ProtoReflect() protoreflect.Message { + mi := &file_parkour_parkour_msg_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ParkourInviteHandleReq.ProtoReflect.Descriptor instead. +func (*ParkourInviteHandleReq) Descriptor() ([]byte, []int) { + return file_parkour_parkour_msg_proto_rawDescGZIP(), []int{4} +} + +func (x *ParkourInviteHandleReq) GetCaptainid() string { + if x != nil { + return x.Captainid + } + return "" +} + +func (x *ParkourInviteHandleReq) GetState() int32 { + if x != nil { + return x.State + } + return 0 +} + +type ParkourInviteHandleResp struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + IsSucc bool `protobuf:"varint,1,opt,name=isSucc,proto3" json:"isSucc"` +} + +func (x *ParkourInviteHandleResp) Reset() { + *x = ParkourInviteHandleResp{} + if protoimpl.UnsafeEnabled { + mi := &file_parkour_parkour_msg_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ParkourInviteHandleResp) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ParkourInviteHandleResp) ProtoMessage() {} + +func (x *ParkourInviteHandleResp) ProtoReflect() protoreflect.Message { + mi := &file_parkour_parkour_msg_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ParkourInviteHandleResp.ProtoReflect.Descriptor instead. +func (*ParkourInviteHandleResp) Descriptor() ([]byte, []int) { + return file_parkour_parkour_msg_proto_rawDescGZIP(), []int{5} +} + +func (x *ParkourInviteHandleResp) GetIsSucc() bool { + if x != nil { + return x.IsSucc + } + return false +} + +//退出 请求 +type ParkourQuitTeamReq struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Captainid string `protobuf:"bytes,1,opt,name=captainid,proto3" json:"captainid"` //队长id +} + +func (x *ParkourQuitTeamReq) Reset() { + *x = ParkourQuitTeamReq{} + if protoimpl.UnsafeEnabled { + mi := &file_parkour_parkour_msg_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ParkourQuitTeamReq) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ParkourQuitTeamReq) ProtoMessage() {} + +func (x *ParkourQuitTeamReq) ProtoReflect() protoreflect.Message { + mi := &file_parkour_parkour_msg_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ParkourQuitTeamReq.ProtoReflect.Descriptor instead. +func (*ParkourQuitTeamReq) Descriptor() ([]byte, []int) { + return file_parkour_parkour_msg_proto_rawDescGZIP(), []int{6} +} + +func (x *ParkourQuitTeamReq) GetCaptainid() string { + if x != nil { + return x.Captainid + } + return "" +} + +//退出 回应 +type ParkourQuitTeamResp struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *ParkourQuitTeamResp) Reset() { + *x = ParkourQuitTeamResp{} + if protoimpl.UnsafeEnabled { + mi := &file_parkour_parkour_msg_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ParkourQuitTeamResp) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ParkourQuitTeamResp) ProtoMessage() {} + +func (x *ParkourQuitTeamResp) ProtoReflect() protoreflect.Message { + mi := &file_parkour_parkour_msg_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ParkourQuitTeamResp.ProtoReflect.Descriptor instead. +func (*ParkourQuitTeamResp) Descriptor() ([]byte, []int) { + return file_parkour_parkour_msg_proto_rawDescGZIP(), []int{7} +} + +//队伍成员加入推送 +type ParkourTeamJoinNoticePush struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Member *DBRaceMember `protobuf:"bytes,1,opt,name=member,proto3" json:"member"` +} + +func (x *ParkourTeamJoinNoticePush) Reset() { + *x = ParkourTeamJoinNoticePush{} + if protoimpl.UnsafeEnabled { + mi := &file_parkour_parkour_msg_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ParkourTeamJoinNoticePush) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ParkourTeamJoinNoticePush) ProtoMessage() {} + +func (x *ParkourTeamJoinNoticePush) ProtoReflect() protoreflect.Message { + mi := &file_parkour_parkour_msg_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ParkourTeamJoinNoticePush.ProtoReflect.Descriptor instead. +func (*ParkourTeamJoinNoticePush) Descriptor() ([]byte, []int) { + return file_parkour_parkour_msg_proto_rawDescGZIP(), []int{8} +} + +func (x *ParkourTeamJoinNoticePush) GetMember() *DBRaceMember { + if x != nil { + return x.Member + } + return nil +} + +//队伍成员退出推送 +type ParkourTeamQuitNoticePush struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Member *DBRaceMember `protobuf:"bytes,1,opt,name=member,proto3" json:"member"` +} + +func (x *ParkourTeamQuitNoticePush) Reset() { + *x = ParkourTeamQuitNoticePush{} + if protoimpl.UnsafeEnabled { + mi := &file_parkour_parkour_msg_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ParkourTeamQuitNoticePush) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ParkourTeamQuitNoticePush) ProtoMessage() {} + +func (x *ParkourTeamQuitNoticePush) ProtoReflect() protoreflect.Message { + mi := &file_parkour_parkour_msg_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ParkourTeamQuitNoticePush.ProtoReflect.Descriptor instead. +func (*ParkourTeamQuitNoticePush) Descriptor() ([]byte, []int) { + return file_parkour_parkour_msg_proto_rawDescGZIP(), []int{9} +} + +func (x *ParkourTeamQuitNoticePush) GetMember() *DBRaceMember { + if x != nil { + return x.Member + } + return nil +} + //队伍解散通知推送 type ParkourTeamDisbandNoticePush struct { state protoimpl.MessageState @@ -182,7 +524,7 @@ type ParkourTeamDisbandNoticePush struct { func (x *ParkourTeamDisbandNoticePush) Reset() { *x = ParkourTeamDisbandNoticePush{} if protoimpl.UnsafeEnabled { - mi := &file_parkour_parkour_msg_proto_msgTypes[3] + mi := &file_parkour_parkour_msg_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -195,7 +537,7 @@ func (x *ParkourTeamDisbandNoticePush) String() string { func (*ParkourTeamDisbandNoticePush) ProtoMessage() {} func (x *ParkourTeamDisbandNoticePush) ProtoReflect() protoreflect.Message { - mi := &file_parkour_parkour_msg_proto_msgTypes[3] + mi := &file_parkour_parkour_msg_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -208,159 +550,33 @@ func (x *ParkourTeamDisbandNoticePush) ProtoReflect() protoreflect.Message { // Deprecated: Use ParkourTeamDisbandNoticePush.ProtoReflect.Descriptor instead. func (*ParkourTeamDisbandNoticePush) Descriptor() ([]byte, []int) { - return file_parkour_parkour_msg_proto_rawDescGZIP(), []int{3} -} - -//退出 请求 -type ParkourQuitReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *ParkourQuitReq) Reset() { - *x = ParkourQuitReq{} - if protoimpl.UnsafeEnabled { - mi := &file_parkour_parkour_msg_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ParkourQuitReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ParkourQuitReq) ProtoMessage() {} - -func (x *ParkourQuitReq) ProtoReflect() protoreflect.Message { - mi := &file_parkour_parkour_msg_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ParkourQuitReq.ProtoReflect.Descriptor instead. -func (*ParkourQuitReq) Descriptor() ([]byte, []int) { - return file_parkour_parkour_msg_proto_rawDescGZIP(), []int{4} -} - -//退出 回应 -type ParkourQuitResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *ParkourQuitResp) Reset() { - *x = ParkourQuitResp{} - if protoimpl.UnsafeEnabled { - mi := &file_parkour_parkour_msg_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ParkourQuitResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ParkourQuitResp) ProtoMessage() {} - -func (x *ParkourQuitResp) ProtoReflect() protoreflect.Message { - mi := &file_parkour_parkour_msg_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ParkourQuitResp.ProtoReflect.Descriptor instead. -func (*ParkourQuitResp) Descriptor() ([]byte, []int) { - return file_parkour_parkour_msg_proto_rawDescGZIP(), []int{5} -} - -//队伍成员退出推送 -type ParkourQuitNoticePush struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Team *DBRaceTeam `protobuf:"bytes,1,opt,name=team,proto3" json:"team"` -} - -func (x *ParkourQuitNoticePush) Reset() { - *x = ParkourQuitNoticePush{} - if protoimpl.UnsafeEnabled { - mi := &file_parkour_parkour_msg_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ParkourQuitNoticePush) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ParkourQuitNoticePush) ProtoMessage() {} - -func (x *ParkourQuitNoticePush) ProtoReflect() protoreflect.Message { - mi := &file_parkour_parkour_msg_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ParkourQuitNoticePush.ProtoReflect.Descriptor instead. -func (*ParkourQuitNoticePush) Descriptor() ([]byte, []int) { - return file_parkour_parkour_msg_proto_rawDescGZIP(), []int{6} -} - -func (x *ParkourQuitNoticePush) GetTeam() *DBRaceTeam { - if x != nil { - return x.Team - } - return nil + return file_parkour_parkour_msg_proto_rawDescGZIP(), []int{10} } //匹配请求 -type ParkourMatchReq struct { +type ParkourRaceMatchReq struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields } -func (x *ParkourMatchReq) Reset() { - *x = ParkourMatchReq{} +func (x *ParkourRaceMatchReq) Reset() { + *x = ParkourRaceMatchReq{} if protoimpl.UnsafeEnabled { - mi := &file_parkour_parkour_msg_proto_msgTypes[7] + mi := &file_parkour_parkour_msg_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *ParkourMatchReq) String() string { +func (x *ParkourRaceMatchReq) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ParkourMatchReq) ProtoMessage() {} +func (*ParkourRaceMatchReq) ProtoMessage() {} -func (x *ParkourMatchReq) ProtoReflect() protoreflect.Message { - mi := &file_parkour_parkour_msg_proto_msgTypes[7] +func (x *ParkourRaceMatchReq) ProtoReflect() protoreflect.Message { + mi := &file_parkour_parkour_msg_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -371,35 +587,35 @@ func (x *ParkourMatchReq) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ParkourMatchReq.ProtoReflect.Descriptor instead. -func (*ParkourMatchReq) Descriptor() ([]byte, []int) { - return file_parkour_parkour_msg_proto_rawDescGZIP(), []int{7} +// Deprecated: Use ParkourRaceMatchReq.ProtoReflect.Descriptor instead. +func (*ParkourRaceMatchReq) Descriptor() ([]byte, []int) { + return file_parkour_parkour_msg_proto_rawDescGZIP(), []int{11} } //匹配请求 -type ParkourMatchResp struct { +type ParkourRaceMatchResp struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields } -func (x *ParkourMatchResp) Reset() { - *x = ParkourMatchResp{} +func (x *ParkourRaceMatchResp) Reset() { + *x = ParkourRaceMatchResp{} if protoimpl.UnsafeEnabled { - mi := &file_parkour_parkour_msg_proto_msgTypes[8] + mi := &file_parkour_parkour_msg_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *ParkourMatchResp) String() string { +func (x *ParkourRaceMatchResp) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ParkourMatchResp) ProtoMessage() {} +func (*ParkourRaceMatchResp) ProtoMessage() {} -func (x *ParkourMatchResp) ProtoReflect() protoreflect.Message { - mi := &file_parkour_parkour_msg_proto_msgTypes[8] +func (x *ParkourRaceMatchResp) ProtoReflect() protoreflect.Message { + mi := &file_parkour_parkour_msg_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -410,13 +626,13 @@ func (x *ParkourMatchResp) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ParkourMatchResp.ProtoReflect.Descriptor instead. -func (*ParkourMatchResp) Descriptor() ([]byte, []int) { - return file_parkour_parkour_msg_proto_rawDescGZIP(), []int{8} +// Deprecated: Use ParkourRaceMatchResp.ProtoReflect.Descriptor instead. +func (*ParkourRaceMatchResp) Descriptor() ([]byte, []int) { + return file_parkour_parkour_msg_proto_rawDescGZIP(), []int{12} } //匹配成功 -type ParkourMatchSuccPush struct { +type ParkourRaceMatchSuccPush struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -424,23 +640,23 @@ type ParkourMatchSuccPush struct { Race *DBRace `protobuf:"bytes,1,opt,name=race,proto3" json:"race"` } -func (x *ParkourMatchSuccPush) Reset() { - *x = ParkourMatchSuccPush{} +func (x *ParkourRaceMatchSuccPush) Reset() { + *x = ParkourRaceMatchSuccPush{} if protoimpl.UnsafeEnabled { - mi := &file_parkour_parkour_msg_proto_msgTypes[9] + mi := &file_parkour_parkour_msg_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *ParkourMatchSuccPush) String() string { +func (x *ParkourRaceMatchSuccPush) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ParkourMatchSuccPush) ProtoMessage() {} +func (*ParkourRaceMatchSuccPush) ProtoMessage() {} -func (x *ParkourMatchSuccPush) ProtoReflect() protoreflect.Message { - mi := &file_parkour_parkour_msg_proto_msgTypes[9] +func (x *ParkourRaceMatchSuccPush) ProtoReflect() protoreflect.Message { + mi := &file_parkour_parkour_msg_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -451,12 +667,12 @@ func (x *ParkourMatchSuccPush) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ParkourMatchSuccPush.ProtoReflect.Descriptor instead. -func (*ParkourMatchSuccPush) Descriptor() ([]byte, []int) { - return file_parkour_parkour_msg_proto_rawDescGZIP(), []int{9} +// Deprecated: Use ParkourRaceMatchSuccPush.ProtoReflect.Descriptor instead. +func (*ParkourRaceMatchSuccPush) Descriptor() ([]byte, []int) { + return file_parkour_parkour_msg_proto_rawDescGZIP(), []int{13} } -func (x *ParkourMatchSuccPush) GetRace() *DBRace { +func (x *ParkourRaceMatchSuccPush) GetRace() *DBRace { if x != nil { return x.Race } @@ -473,7 +689,7 @@ type ParkourReadyReq struct { func (x *ParkourReadyReq) Reset() { *x = ParkourReadyReq{} if protoimpl.UnsafeEnabled { - mi := &file_parkour_parkour_msg_proto_msgTypes[10] + mi := &file_parkour_parkour_msg_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -486,7 +702,7 @@ func (x *ParkourReadyReq) String() string { func (*ParkourReadyReq) ProtoMessage() {} func (x *ParkourReadyReq) ProtoReflect() protoreflect.Message { - mi := &file_parkour_parkour_msg_proto_msgTypes[10] + mi := &file_parkour_parkour_msg_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -499,7 +715,7 @@ func (x *ParkourReadyReq) ProtoReflect() protoreflect.Message { // Deprecated: Use ParkourReadyReq.ProtoReflect.Descriptor instead. func (*ParkourReadyReq) Descriptor() ([]byte, []int) { - return file_parkour_parkour_msg_proto_rawDescGZIP(), []int{10} + return file_parkour_parkour_msg_proto_rawDescGZIP(), []int{14} } //准备完毕 @@ -512,7 +728,7 @@ type ParkourReadyResp struct { func (x *ParkourReadyResp) Reset() { *x = ParkourReadyResp{} if protoimpl.UnsafeEnabled { - mi := &file_parkour_parkour_msg_proto_msgTypes[11] + mi := &file_parkour_parkour_msg_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -525,7 +741,7 @@ func (x *ParkourReadyResp) String() string { func (*ParkourReadyResp) ProtoMessage() {} func (x *ParkourReadyResp) ProtoReflect() protoreflect.Message { - mi := &file_parkour_parkour_msg_proto_msgTypes[11] + mi := &file_parkour_parkour_msg_proto_msgTypes[15] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -538,7 +754,7 @@ func (x *ParkourReadyResp) ProtoReflect() protoreflect.Message { // Deprecated: Use ParkourReadyResp.ProtoReflect.Descriptor instead. func (*ParkourReadyResp) Descriptor() ([]byte, []int) { - return file_parkour_parkour_msg_proto_rawDescGZIP(), []int{11} + return file_parkour_parkour_msg_proto_rawDescGZIP(), []int{15} } //竞速开始推送 @@ -553,7 +769,7 @@ type ParkourRaceStartPush struct { func (x *ParkourRaceStartPush) Reset() { *x = ParkourRaceStartPush{} if protoimpl.UnsafeEnabled { - mi := &file_parkour_parkour_msg_proto_msgTypes[12] + mi := &file_parkour_parkour_msg_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -566,7 +782,7 @@ func (x *ParkourRaceStartPush) String() string { func (*ParkourRaceStartPush) ProtoMessage() {} func (x *ParkourRaceStartPush) ProtoReflect() protoreflect.Message { - mi := &file_parkour_parkour_msg_proto_msgTypes[12] + mi := &file_parkour_parkour_msg_proto_msgTypes[16] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -579,7 +795,7 @@ func (x *ParkourRaceStartPush) ProtoReflect() protoreflect.Message { // Deprecated: Use ParkourRaceStartPush.ProtoReflect.Descriptor instead. func (*ParkourRaceStartPush) Descriptor() ([]byte, []int) { - return file_parkour_parkour_msg_proto_rawDescGZIP(), []int{12} + return file_parkour_parkour_msg_proto_rawDescGZIP(), []int{16} } func (x *ParkourRaceStartPush) GetCountdown() int32 { @@ -599,7 +815,7 @@ type ParkourShotReq struct { func (x *ParkourShotReq) Reset() { *x = ParkourShotReq{} if protoimpl.UnsafeEnabled { - mi := &file_parkour_parkour_msg_proto_msgTypes[13] + mi := &file_parkour_parkour_msg_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -612,7 +828,7 @@ func (x *ParkourShotReq) String() string { func (*ParkourShotReq) ProtoMessage() {} func (x *ParkourShotReq) ProtoReflect() protoreflect.Message { - mi := &file_parkour_parkour_msg_proto_msgTypes[13] + mi := &file_parkour_parkour_msg_proto_msgTypes[17] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -625,7 +841,7 @@ func (x *ParkourShotReq) ProtoReflect() protoreflect.Message { // Deprecated: Use ParkourShotReq.ProtoReflect.Descriptor instead. func (*ParkourShotReq) Descriptor() ([]byte, []int) { - return file_parkour_parkour_msg_proto_rawDescGZIP(), []int{13} + return file_parkour_parkour_msg_proto_rawDescGZIP(), []int{17} } //射门请求 @@ -638,7 +854,7 @@ type ParkourShotResp struct { func (x *ParkourShotResp) Reset() { *x = ParkourShotResp{} if protoimpl.UnsafeEnabled { - mi := &file_parkour_parkour_msg_proto_msgTypes[14] + mi := &file_parkour_parkour_msg_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -651,7 +867,7 @@ func (x *ParkourShotResp) String() string { func (*ParkourShotResp) ProtoMessage() {} func (x *ParkourShotResp) ProtoReflect() protoreflect.Message { - mi := &file_parkour_parkour_msg_proto_msgTypes[14] + mi := &file_parkour_parkour_msg_proto_msgTypes[18] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -664,7 +880,7 @@ func (x *ParkourShotResp) ProtoReflect() protoreflect.Message { // Deprecated: Use ParkourShotResp.ProtoReflect.Descriptor instead. func (*ParkourShotResp) Descriptor() ([]byte, []int) { - return file_parkour_parkour_msg_proto_rawDescGZIP(), []int{14} + return file_parkour_parkour_msg_proto_rawDescGZIP(), []int{18} } //躲避障碍请求 @@ -679,7 +895,7 @@ type ParkourAvoidReq struct { func (x *ParkourAvoidReq) Reset() { *x = ParkourAvoidReq{} if protoimpl.UnsafeEnabled { - mi := &file_parkour_parkour_msg_proto_msgTypes[15] + mi := &file_parkour_parkour_msg_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -692,7 +908,7 @@ func (x *ParkourAvoidReq) String() string { func (*ParkourAvoidReq) ProtoMessage() {} func (x *ParkourAvoidReq) ProtoReflect() protoreflect.Message { - mi := &file_parkour_parkour_msg_proto_msgTypes[15] + mi := &file_parkour_parkour_msg_proto_msgTypes[19] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -705,7 +921,7 @@ func (x *ParkourAvoidReq) ProtoReflect() protoreflect.Message { // Deprecated: Use ParkourAvoidReq.ProtoReflect.Descriptor instead. func (*ParkourAvoidReq) Descriptor() ([]byte, []int) { - return file_parkour_parkour_msg_proto_rawDescGZIP(), []int{15} + return file_parkour_parkour_msg_proto_rawDescGZIP(), []int{19} } func (x *ParkourAvoidReq) GetDistance() int32 { @@ -725,7 +941,7 @@ type ParkourAvoidResp struct { func (x *ParkourAvoidResp) Reset() { *x = ParkourAvoidResp{} if protoimpl.UnsafeEnabled { - mi := &file_parkour_parkour_msg_proto_msgTypes[16] + mi := &file_parkour_parkour_msg_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -738,7 +954,7 @@ func (x *ParkourAvoidResp) String() string { func (*ParkourAvoidResp) ProtoMessage() {} func (x *ParkourAvoidResp) ProtoReflect() protoreflect.Message { - mi := &file_parkour_parkour_msg_proto_msgTypes[16] + mi := &file_parkour_parkour_msg_proto_msgTypes[20] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -751,7 +967,7 @@ func (x *ParkourAvoidResp) ProtoReflect() protoreflect.Message { // Deprecated: Use ParkourAvoidResp.ProtoReflect.Descriptor instead. func (*ParkourAvoidResp) Descriptor() ([]byte, []int) { - return file_parkour_parkour_msg_proto_rawDescGZIP(), []int{16} + return file_parkour_parkour_msg_proto_rawDescGZIP(), []int{20} } //比赛数值变化推送 @@ -766,7 +982,7 @@ type ParkourRaceChanagePush struct { func (x *ParkourRaceChanagePush) Reset() { *x = ParkourRaceChanagePush{} if protoimpl.UnsafeEnabled { - mi := &file_parkour_parkour_msg_proto_msgTypes[17] + mi := &file_parkour_parkour_msg_proto_msgTypes[21] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -779,7 +995,7 @@ func (x *ParkourRaceChanagePush) String() string { func (*ParkourRaceChanagePush) ProtoMessage() {} func (x *ParkourRaceChanagePush) ProtoReflect() protoreflect.Message { - mi := &file_parkour_parkour_msg_proto_msgTypes[17] + mi := &file_parkour_parkour_msg_proto_msgTypes[21] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -792,7 +1008,7 @@ func (x *ParkourRaceChanagePush) ProtoReflect() protoreflect.Message { // Deprecated: Use ParkourRaceChanagePush.ProtoReflect.Descriptor instead. func (*ParkourRaceChanagePush) Descriptor() ([]byte, []int) { - return file_parkour_parkour_msg_proto_rawDescGZIP(), []int{17} + return file_parkour_parkour_msg_proto_rawDescGZIP(), []int{21} } func (x *ParkourRaceChanagePush) GetRace() *DBRace { @@ -814,7 +1030,7 @@ type ParkourRaceOverPush struct { func (x *ParkourRaceOverPush) Reset() { *x = ParkourRaceOverPush{} if protoimpl.UnsafeEnabled { - mi := &file_parkour_parkour_msg_proto_msgTypes[18] + mi := &file_parkour_parkour_msg_proto_msgTypes[22] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -827,7 +1043,7 @@ func (x *ParkourRaceOverPush) String() string { func (*ParkourRaceOverPush) ProtoMessage() {} func (x *ParkourRaceOverPush) ProtoReflect() protoreflect.Message { - mi := &file_parkour_parkour_msg_proto_msgTypes[18] + mi := &file_parkour_parkour_msg_proto_msgTypes[22] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -840,7 +1056,7 @@ func (x *ParkourRaceOverPush) ProtoReflect() protoreflect.Message { // Deprecated: Use ParkourRaceOverPush.ProtoReflect.Descriptor instead. func (*ParkourRaceOverPush) Descriptor() ([]byte, []int) { - return file_parkour_parkour_msg_proto_rawDescGZIP(), []int{18} + return file_parkour_parkour_msg_proto_rawDescGZIP(), []int{22} } func (x *ParkourRaceOverPush) GetRace() *DBRace { @@ -850,6 +1066,196 @@ func (x *ParkourRaceOverPush) GetRace() *DBRace { return nil } +///匹配请求 RPC消息定义 服务器自用 客户端不用理会 +type RPCParkourJoinMatchReq struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Captainid string `protobuf:"bytes,1,opt,name=captainid,proto3" json:"captainid"` //队长id + Member []*DBRaceMember `protobuf:"bytes,2,rep,name=member,proto3" json:"member"` //成员数 +} + +func (x *RPCParkourJoinMatchReq) Reset() { + *x = RPCParkourJoinMatchReq{} + if protoimpl.UnsafeEnabled { + mi := &file_parkour_parkour_msg_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RPCParkourJoinMatchReq) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RPCParkourJoinMatchReq) ProtoMessage() {} + +func (x *RPCParkourJoinMatchReq) ProtoReflect() protoreflect.Message { + mi := &file_parkour_parkour_msg_proto_msgTypes[23] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use RPCParkourJoinMatchReq.ProtoReflect.Descriptor instead. +func (*RPCParkourJoinMatchReq) Descriptor() ([]byte, []int) { + return file_parkour_parkour_msg_proto_rawDescGZIP(), []int{23} +} + +func (x *RPCParkourJoinMatchReq) GetCaptainid() string { + if x != nil { + return x.Captainid + } + return "" +} + +func (x *RPCParkourJoinMatchReq) GetMember() []*DBRaceMember { + if x != nil { + return x.Member + } + return nil +} + +///RPC消息定义 服务器自用 客户端不用理会 +type RPCParkourJoinMatchResp struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *RPCParkourJoinMatchResp) Reset() { + *x = RPCParkourJoinMatchResp{} + if protoimpl.UnsafeEnabled { + mi := &file_parkour_parkour_msg_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RPCParkourJoinMatchResp) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RPCParkourJoinMatchResp) ProtoMessage() {} + +func (x *RPCParkourJoinMatchResp) ProtoReflect() protoreflect.Message { + mi := &file_parkour_parkour_msg_proto_msgTypes[24] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use RPCParkourJoinMatchResp.ProtoReflect.Descriptor instead. +func (*RPCParkourJoinMatchResp) Descriptor() ([]byte, []int) { + return file_parkour_parkour_msg_proto_rawDescGZIP(), []int{24} +} + +///匹配成功通知请求 +type RPCParkourMatchSuccReq struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Red []*DBRaceMember `protobuf:"bytes,2,rep,name=red,proto3" json:"red"` //临时红队 + Bule []*DBRaceMember `protobuf:"bytes,3,rep,name=bule,proto3" json:"bule"` //临时蓝队 +} + +func (x *RPCParkourMatchSuccReq) Reset() { + *x = RPCParkourMatchSuccReq{} + if protoimpl.UnsafeEnabled { + mi := &file_parkour_parkour_msg_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RPCParkourMatchSuccReq) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RPCParkourMatchSuccReq) ProtoMessage() {} + +func (x *RPCParkourMatchSuccReq) ProtoReflect() protoreflect.Message { + mi := &file_parkour_parkour_msg_proto_msgTypes[25] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use RPCParkourMatchSuccReq.ProtoReflect.Descriptor instead. +func (*RPCParkourMatchSuccReq) Descriptor() ([]byte, []int) { + return file_parkour_parkour_msg_proto_rawDescGZIP(), []int{25} +} + +func (x *RPCParkourMatchSuccReq) GetRed() []*DBRaceMember { + if x != nil { + return x.Red + } + return nil +} + +func (x *RPCParkourMatchSuccReq) GetBule() []*DBRaceMember { + if x != nil { + return x.Bule + } + return nil +} + +///匹配成功通知请求 +type RPCParkourMatchSuccResp struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *RPCParkourMatchSuccResp) Reset() { + *x = RPCParkourMatchSuccResp{} + if protoimpl.UnsafeEnabled { + mi := &file_parkour_parkour_msg_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RPCParkourMatchSuccResp) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RPCParkourMatchSuccResp) ProtoMessage() {} + +func (x *RPCParkourMatchSuccResp) ProtoReflect() protoreflect.Message { + mi := &file_parkour_parkour_msg_proto_msgTypes[26] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use RPCParkourMatchSuccResp.ProtoReflect.Descriptor instead. +func (*RPCParkourMatchSuccResp) Descriptor() ([]byte, []int) { + return file_parkour_parkour_msg_proto_rawDescGZIP(), []int{26} +} + var File_parkour_parkour_msg_proto protoreflect.FileDescriptor var file_parkour_parkour_msg_proto_rawDesc = []byte{ @@ -858,48 +1264,85 @@ var file_parkour_parkour_msg_proto_rawDesc = []byte{ 0x6b, 0x6f, 0x75, 0x72, 0x2f, 0x70, 0x61, 0x72, 0x6b, 0x6f, 0x75, 0x72, 0x5f, 0x64, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x24, 0x0a, 0x10, 0x50, 0x61, 0x72, 0x6b, 0x6f, 0x75, 0x72, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x52, 0x65, 0x71, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x22, 0x2b, 0x0a, 0x11, 0x50, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x22, 0x4c, 0x0a, 0x11, 0x50, 0x61, 0x72, 0x6b, 0x6f, 0x75, 0x72, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x16, 0x0a, 0x06, 0x69, 0x73, 0x73, 0x75, 0x63, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, - 0x52, 0x06, 0x69, 0x73, 0x73, 0x75, 0x63, 0x63, 0x22, 0x50, 0x0a, 0x17, 0x50, 0x61, 0x72, 0x6b, - 0x6f, 0x75, 0x72, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x4e, 0x6f, 0x74, 0x69, 0x63, 0x65, 0x50, - 0x75, 0x73, 0x68, 0x12, 0x1f, 0x0a, 0x04, 0x74, 0x65, 0x61, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x0b, 0x2e, 0x44, 0x42, 0x52, 0x61, 0x63, 0x65, 0x54, 0x65, 0x61, 0x6d, 0x52, 0x04, - 0x74, 0x65, 0x61, 0x6d, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x05, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0x1e, 0x0a, 0x1c, 0x50, 0x61, + 0x52, 0x06, 0x69, 0x73, 0x73, 0x75, 0x63, 0x63, 0x12, 0x1f, 0x0a, 0x04, 0x74, 0x65, 0x61, 0x6d, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x44, 0x42, 0x52, 0x61, 0x63, 0x65, 0x54, + 0x65, 0x61, 0x6d, 0x52, 0x04, 0x74, 0x65, 0x61, 0x6d, 0x22, 0x50, 0x0a, 0x17, 0x50, 0x61, 0x72, + 0x6b, 0x6f, 0x75, 0x72, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x4e, 0x6f, 0x74, 0x69, 0x63, 0x65, + 0x50, 0x75, 0x73, 0x68, 0x12, 0x1f, 0x0a, 0x04, 0x74, 0x65, 0x61, 0x6d, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x44, 0x42, 0x52, 0x61, 0x63, 0x65, 0x54, 0x65, 0x61, 0x6d, 0x52, + 0x04, 0x74, 0x65, 0x61, 0x6d, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0x39, 0x0a, 0x16, 0x50, + 0x61, 0x72, 0x6b, 0x6f, 0x75, 0x72, 0x54, 0x65, 0x61, 0x6d, 0x43, 0x68, 0x61, 0x6e, 0x61, 0x67, + 0x65, 0x50, 0x75, 0x73, 0x68, 0x12, 0x1f, 0x0a, 0x04, 0x74, 0x65, 0x61, 0x6d, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x44, 0x42, 0x52, 0x61, 0x63, 0x65, 0x54, 0x65, 0x61, 0x6d, + 0x52, 0x04, 0x74, 0x65, 0x61, 0x6d, 0x22, 0x4c, 0x0a, 0x16, 0x50, 0x61, 0x72, 0x6b, 0x6f, 0x75, + 0x72, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x52, 0x65, 0x71, + 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x61, 0x70, 0x74, 0x61, 0x69, 0x6e, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x61, 0x70, 0x74, 0x61, 0x69, 0x6e, 0x69, 0x64, 0x12, 0x14, + 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x73, + 0x74, 0x61, 0x74, 0x65, 0x22, 0x31, 0x0a, 0x17, 0x50, 0x61, 0x72, 0x6b, 0x6f, 0x75, 0x72, 0x49, + 0x6e, 0x76, 0x69, 0x74, 0x65, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, + 0x16, 0x0a, 0x06, 0x69, 0x73, 0x53, 0x75, 0x63, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, + 0x06, 0x69, 0x73, 0x53, 0x75, 0x63, 0x63, 0x22, 0x32, 0x0a, 0x12, 0x50, 0x61, 0x72, 0x6b, 0x6f, + 0x75, 0x72, 0x51, 0x75, 0x69, 0x74, 0x54, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x71, 0x12, 0x1c, 0x0a, + 0x09, 0x63, 0x61, 0x70, 0x74, 0x61, 0x69, 0x6e, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x09, 0x63, 0x61, 0x70, 0x74, 0x61, 0x69, 0x6e, 0x69, 0x64, 0x22, 0x15, 0x0a, 0x13, 0x50, + 0x61, 0x72, 0x6b, 0x6f, 0x75, 0x72, 0x51, 0x75, 0x69, 0x74, 0x54, 0x65, 0x61, 0x6d, 0x52, 0x65, + 0x73, 0x70, 0x22, 0x42, 0x0a, 0x19, 0x50, 0x61, 0x72, 0x6b, 0x6f, 0x75, 0x72, 0x54, 0x65, 0x61, + 0x6d, 0x4a, 0x6f, 0x69, 0x6e, 0x4e, 0x6f, 0x74, 0x69, 0x63, 0x65, 0x50, 0x75, 0x73, 0x68, 0x12, + 0x25, 0x0a, 0x06, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x0d, 0x2e, 0x44, 0x42, 0x52, 0x61, 0x63, 0x65, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x06, + 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x22, 0x42, 0x0a, 0x19, 0x50, 0x61, 0x72, 0x6b, 0x6f, 0x75, + 0x72, 0x54, 0x65, 0x61, 0x6d, 0x51, 0x75, 0x69, 0x74, 0x4e, 0x6f, 0x74, 0x69, 0x63, 0x65, 0x50, + 0x75, 0x73, 0x68, 0x12, 0x25, 0x0a, 0x06, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x44, 0x42, 0x52, 0x61, 0x63, 0x65, 0x4d, 0x65, 0x6d, 0x62, + 0x65, 0x72, 0x52, 0x06, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x22, 0x1e, 0x0a, 0x1c, 0x50, 0x61, 0x72, 0x6b, 0x6f, 0x75, 0x72, 0x54, 0x65, 0x61, 0x6d, 0x44, 0x69, 0x73, 0x62, 0x61, 0x6e, 0x64, - 0x4e, 0x6f, 0x74, 0x69, 0x63, 0x65, 0x50, 0x75, 0x73, 0x68, 0x22, 0x10, 0x0a, 0x0e, 0x50, 0x61, - 0x72, 0x6b, 0x6f, 0x75, 0x72, 0x51, 0x75, 0x69, 0x74, 0x52, 0x65, 0x71, 0x22, 0x11, 0x0a, 0x0f, - 0x50, 0x61, 0x72, 0x6b, 0x6f, 0x75, 0x72, 0x51, 0x75, 0x69, 0x74, 0x52, 0x65, 0x73, 0x70, 0x22, - 0x38, 0x0a, 0x15, 0x50, 0x61, 0x72, 0x6b, 0x6f, 0x75, 0x72, 0x51, 0x75, 0x69, 0x74, 0x4e, 0x6f, - 0x74, 0x69, 0x63, 0x65, 0x50, 0x75, 0x73, 0x68, 0x12, 0x1f, 0x0a, 0x04, 0x74, 0x65, 0x61, 0x6d, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x44, 0x42, 0x52, 0x61, 0x63, 0x65, 0x54, - 0x65, 0x61, 0x6d, 0x52, 0x04, 0x74, 0x65, 0x61, 0x6d, 0x22, 0x11, 0x0a, 0x0f, 0x50, 0x61, 0x72, - 0x6b, 0x6f, 0x75, 0x72, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x71, 0x22, 0x12, 0x0a, 0x10, - 0x50, 0x61, 0x72, 0x6b, 0x6f, 0x75, 0x72, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, - 0x22, 0x33, 0x0a, 0x14, 0x50, 0x61, 0x72, 0x6b, 0x6f, 0x75, 0x72, 0x4d, 0x61, 0x74, 0x63, 0x68, - 0x53, 0x75, 0x63, 0x63, 0x50, 0x75, 0x73, 0x68, 0x12, 0x1b, 0x0a, 0x04, 0x72, 0x61, 0x63, 0x65, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x07, 0x2e, 0x44, 0x42, 0x52, 0x61, 0x63, 0x65, 0x52, - 0x04, 0x72, 0x61, 0x63, 0x65, 0x22, 0x11, 0x0a, 0x0f, 0x50, 0x61, 0x72, 0x6b, 0x6f, 0x75, 0x72, - 0x52, 0x65, 0x61, 0x64, 0x79, 0x52, 0x65, 0x71, 0x22, 0x12, 0x0a, 0x10, 0x50, 0x61, 0x72, 0x6b, - 0x6f, 0x75, 0x72, 0x52, 0x65, 0x61, 0x64, 0x79, 0x52, 0x65, 0x73, 0x70, 0x22, 0x34, 0x0a, 0x14, - 0x50, 0x61, 0x72, 0x6b, 0x6f, 0x75, 0x72, 0x52, 0x61, 0x63, 0x65, 0x53, 0x74, 0x61, 0x72, 0x74, - 0x50, 0x75, 0x73, 0x68, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x64, 0x6f, 0x77, - 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x64, 0x6f, - 0x77, 0x6e, 0x22, 0x10, 0x0a, 0x0e, 0x50, 0x61, 0x72, 0x6b, 0x6f, 0x75, 0x72, 0x53, 0x68, 0x6f, - 0x74, 0x52, 0x65, 0x71, 0x22, 0x11, 0x0a, 0x0f, 0x50, 0x61, 0x72, 0x6b, 0x6f, 0x75, 0x72, 0x53, - 0x68, 0x6f, 0x74, 0x52, 0x65, 0x73, 0x70, 0x22, 0x2d, 0x0a, 0x0f, 0x50, 0x61, 0x72, 0x6b, 0x6f, - 0x75, 0x72, 0x41, 0x76, 0x6f, 0x69, 0x64, 0x52, 0x65, 0x71, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x69, - 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x64, 0x69, - 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x22, 0x12, 0x0a, 0x10, 0x50, 0x61, 0x72, 0x6b, 0x6f, 0x75, - 0x72, 0x41, 0x76, 0x6f, 0x69, 0x64, 0x52, 0x65, 0x73, 0x70, 0x22, 0x35, 0x0a, 0x16, 0x50, 0x61, - 0x72, 0x6b, 0x6f, 0x75, 0x72, 0x52, 0x61, 0x63, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x61, 0x67, 0x65, - 0x50, 0x75, 0x73, 0x68, 0x12, 0x1b, 0x0a, 0x04, 0x72, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x07, 0x2e, 0x44, 0x42, 0x52, 0x61, 0x63, 0x65, 0x52, 0x04, 0x72, 0x61, 0x63, - 0x65, 0x22, 0x32, 0x0a, 0x13, 0x50, 0x61, 0x72, 0x6b, 0x6f, 0x75, 0x72, 0x52, 0x61, 0x63, 0x65, - 0x4f, 0x76, 0x65, 0x72, 0x50, 0x75, 0x73, 0x68, 0x12, 0x1b, 0x0a, 0x04, 0x72, 0x61, 0x63, 0x65, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x07, 0x2e, 0x44, 0x42, 0x52, 0x61, 0x63, 0x65, 0x52, - 0x04, 0x72, 0x61, 0x63, 0x65, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, + 0x4e, 0x6f, 0x74, 0x69, 0x63, 0x65, 0x50, 0x75, 0x73, 0x68, 0x22, 0x15, 0x0a, 0x13, 0x50, 0x61, + 0x72, 0x6b, 0x6f, 0x75, 0x72, 0x52, 0x61, 0x63, 0x65, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, + 0x71, 0x22, 0x16, 0x0a, 0x14, 0x50, 0x61, 0x72, 0x6b, 0x6f, 0x75, 0x72, 0x52, 0x61, 0x63, 0x65, + 0x4d, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x22, 0x37, 0x0a, 0x18, 0x50, 0x61, 0x72, + 0x6b, 0x6f, 0x75, 0x72, 0x52, 0x61, 0x63, 0x65, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x53, 0x75, 0x63, + 0x63, 0x50, 0x75, 0x73, 0x68, 0x12, 0x1b, 0x0a, 0x04, 0x72, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x07, 0x2e, 0x44, 0x42, 0x52, 0x61, 0x63, 0x65, 0x52, 0x04, 0x72, 0x61, + 0x63, 0x65, 0x22, 0x11, 0x0a, 0x0f, 0x50, 0x61, 0x72, 0x6b, 0x6f, 0x75, 0x72, 0x52, 0x65, 0x61, + 0x64, 0x79, 0x52, 0x65, 0x71, 0x22, 0x12, 0x0a, 0x10, 0x50, 0x61, 0x72, 0x6b, 0x6f, 0x75, 0x72, + 0x52, 0x65, 0x61, 0x64, 0x79, 0x52, 0x65, 0x73, 0x70, 0x22, 0x34, 0x0a, 0x14, 0x50, 0x61, 0x72, + 0x6b, 0x6f, 0x75, 0x72, 0x52, 0x61, 0x63, 0x65, 0x53, 0x74, 0x61, 0x72, 0x74, 0x50, 0x75, 0x73, + 0x68, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x64, 0x6f, 0x77, 0x6e, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x64, 0x6f, 0x77, 0x6e, 0x22, + 0x10, 0x0a, 0x0e, 0x50, 0x61, 0x72, 0x6b, 0x6f, 0x75, 0x72, 0x53, 0x68, 0x6f, 0x74, 0x52, 0x65, + 0x71, 0x22, 0x11, 0x0a, 0x0f, 0x50, 0x61, 0x72, 0x6b, 0x6f, 0x75, 0x72, 0x53, 0x68, 0x6f, 0x74, + 0x52, 0x65, 0x73, 0x70, 0x22, 0x2d, 0x0a, 0x0f, 0x50, 0x61, 0x72, 0x6b, 0x6f, 0x75, 0x72, 0x41, + 0x76, 0x6f, 0x69, 0x64, 0x52, 0x65, 0x71, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x69, 0x73, 0x74, 0x61, + 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x64, 0x69, 0x73, 0x74, 0x61, + 0x6e, 0x63, 0x65, 0x22, 0x12, 0x0a, 0x10, 0x50, 0x61, 0x72, 0x6b, 0x6f, 0x75, 0x72, 0x41, 0x76, + 0x6f, 0x69, 0x64, 0x52, 0x65, 0x73, 0x70, 0x22, 0x35, 0x0a, 0x16, 0x50, 0x61, 0x72, 0x6b, 0x6f, + 0x75, 0x72, 0x52, 0x61, 0x63, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x50, 0x75, 0x73, + 0x68, 0x12, 0x1b, 0x0a, 0x04, 0x72, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x07, 0x2e, 0x44, 0x42, 0x52, 0x61, 0x63, 0x65, 0x52, 0x04, 0x72, 0x61, 0x63, 0x65, 0x22, 0x32, + 0x0a, 0x13, 0x50, 0x61, 0x72, 0x6b, 0x6f, 0x75, 0x72, 0x52, 0x61, 0x63, 0x65, 0x4f, 0x76, 0x65, + 0x72, 0x50, 0x75, 0x73, 0x68, 0x12, 0x1b, 0x0a, 0x04, 0x72, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x07, 0x2e, 0x44, 0x42, 0x52, 0x61, 0x63, 0x65, 0x52, 0x04, 0x72, 0x61, + 0x63, 0x65, 0x22, 0x5d, 0x0a, 0x16, 0x52, 0x50, 0x43, 0x50, 0x61, 0x72, 0x6b, 0x6f, 0x75, 0x72, + 0x4a, 0x6f, 0x69, 0x6e, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x71, 0x12, 0x1c, 0x0a, 0x09, + 0x63, 0x61, 0x70, 0x74, 0x61, 0x69, 0x6e, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x09, 0x63, 0x61, 0x70, 0x74, 0x61, 0x69, 0x6e, 0x69, 0x64, 0x12, 0x25, 0x0a, 0x06, 0x6d, 0x65, + 0x6d, 0x62, 0x65, 0x72, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x44, 0x42, 0x52, + 0x61, 0x63, 0x65, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x06, 0x6d, 0x65, 0x6d, 0x62, 0x65, + 0x72, 0x22, 0x19, 0x0a, 0x17, 0x52, 0x50, 0x43, 0x50, 0x61, 0x72, 0x6b, 0x6f, 0x75, 0x72, 0x4a, + 0x6f, 0x69, 0x6e, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x22, 0x5c, 0x0a, 0x16, + 0x52, 0x50, 0x43, 0x50, 0x61, 0x72, 0x6b, 0x6f, 0x75, 0x72, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x53, + 0x75, 0x63, 0x63, 0x52, 0x65, 0x71, 0x12, 0x1f, 0x0a, 0x03, 0x72, 0x65, 0x64, 0x18, 0x02, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x44, 0x42, 0x52, 0x61, 0x63, 0x65, 0x4d, 0x65, 0x6d, 0x62, + 0x65, 0x72, 0x52, 0x03, 0x72, 0x65, 0x64, 0x12, 0x21, 0x0a, 0x04, 0x62, 0x75, 0x6c, 0x65, 0x18, + 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x44, 0x42, 0x52, 0x61, 0x63, 0x65, 0x4d, 0x65, + 0x6d, 0x62, 0x65, 0x72, 0x52, 0x04, 0x62, 0x75, 0x6c, 0x65, 0x22, 0x19, 0x0a, 0x17, 0x52, 0x50, + 0x43, 0x50, 0x61, 0x72, 0x6b, 0x6f, 0x75, 0x72, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x53, 0x75, 0x63, + 0x63, 0x52, 0x65, 0x73, 0x70, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } @@ -915,41 +1358,56 @@ func file_parkour_parkour_msg_proto_rawDescGZIP() []byte { return file_parkour_parkour_msg_proto_rawDescData } -var file_parkour_parkour_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 19) +var file_parkour_parkour_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 27) var file_parkour_parkour_msg_proto_goTypes = []interface{}{ (*ParkourInviteReq)(nil), // 0: ParkourInviteReq (*ParkourInviteResp)(nil), // 1: ParkourInviteResp (*ParkourInviteNoticePush)(nil), // 2: ParkourInviteNoticePush - (*ParkourTeamDisbandNoticePush)(nil), // 3: ParkourTeamDisbandNoticePush - (*ParkourQuitReq)(nil), // 4: ParkourQuitReq - (*ParkourQuitResp)(nil), // 5: ParkourQuitResp - (*ParkourQuitNoticePush)(nil), // 6: ParkourQuitNoticePush - (*ParkourMatchReq)(nil), // 7: ParkourMatchReq - (*ParkourMatchResp)(nil), // 8: ParkourMatchResp - (*ParkourMatchSuccPush)(nil), // 9: ParkourMatchSuccPush - (*ParkourReadyReq)(nil), // 10: ParkourReadyReq - (*ParkourReadyResp)(nil), // 11: ParkourReadyResp - (*ParkourRaceStartPush)(nil), // 12: ParkourRaceStartPush - (*ParkourShotReq)(nil), // 13: ParkourShotReq - (*ParkourShotResp)(nil), // 14: ParkourShotResp - (*ParkourAvoidReq)(nil), // 15: ParkourAvoidReq - (*ParkourAvoidResp)(nil), // 16: ParkourAvoidResp - (*ParkourRaceChanagePush)(nil), // 17: ParkourRaceChanagePush - (*ParkourRaceOverPush)(nil), // 18: ParkourRaceOverPush - (*DBRaceTeam)(nil), // 19: DBRaceTeam - (*DBRace)(nil), // 20: DBRace + (*ParkourTeamChanagePush)(nil), // 3: ParkourTeamChanagePush + (*ParkourInviteHandleReq)(nil), // 4: ParkourInviteHandleReq + (*ParkourInviteHandleResp)(nil), // 5: ParkourInviteHandleResp + (*ParkourQuitTeamReq)(nil), // 6: ParkourQuitTeamReq + (*ParkourQuitTeamResp)(nil), // 7: ParkourQuitTeamResp + (*ParkourTeamJoinNoticePush)(nil), // 8: ParkourTeamJoinNoticePush + (*ParkourTeamQuitNoticePush)(nil), // 9: ParkourTeamQuitNoticePush + (*ParkourTeamDisbandNoticePush)(nil), // 10: ParkourTeamDisbandNoticePush + (*ParkourRaceMatchReq)(nil), // 11: ParkourRaceMatchReq + (*ParkourRaceMatchResp)(nil), // 12: ParkourRaceMatchResp + (*ParkourRaceMatchSuccPush)(nil), // 13: ParkourRaceMatchSuccPush + (*ParkourReadyReq)(nil), // 14: ParkourReadyReq + (*ParkourReadyResp)(nil), // 15: ParkourReadyResp + (*ParkourRaceStartPush)(nil), // 16: ParkourRaceStartPush + (*ParkourShotReq)(nil), // 17: ParkourShotReq + (*ParkourShotResp)(nil), // 18: ParkourShotResp + (*ParkourAvoidReq)(nil), // 19: ParkourAvoidReq + (*ParkourAvoidResp)(nil), // 20: ParkourAvoidResp + (*ParkourRaceChanagePush)(nil), // 21: ParkourRaceChanagePush + (*ParkourRaceOverPush)(nil), // 22: ParkourRaceOverPush + (*RPCParkourJoinMatchReq)(nil), // 23: RPCParkourJoinMatchReq + (*RPCParkourJoinMatchResp)(nil), // 24: RPCParkourJoinMatchResp + (*RPCParkourMatchSuccReq)(nil), // 25: RPCParkourMatchSuccReq + (*RPCParkourMatchSuccResp)(nil), // 26: RPCParkourMatchSuccResp + (*DBRaceTeam)(nil), // 27: DBRaceTeam + (*DBRaceMember)(nil), // 28: DBRaceMember + (*DBRace)(nil), // 29: DBRace } var file_parkour_parkour_msg_proto_depIdxs = []int32{ - 19, // 0: ParkourInviteNoticePush.team:type_name -> DBRaceTeam - 19, // 1: ParkourQuitNoticePush.team:type_name -> DBRaceTeam - 20, // 2: ParkourMatchSuccPush.race:type_name -> DBRace - 20, // 3: ParkourRaceChanagePush.race:type_name -> DBRace - 20, // 4: ParkourRaceOverPush.race:type_name -> DBRace - 5, // [5:5] is the sub-list for method output_type - 5, // [5:5] is the sub-list for method input_type - 5, // [5:5] is the sub-list for extension type_name - 5, // [5:5] is the sub-list for extension extendee - 0, // [0:5] is the sub-list for field type_name + 27, // 0: ParkourInviteResp.team:type_name -> DBRaceTeam + 27, // 1: ParkourInviteNoticePush.team:type_name -> DBRaceTeam + 27, // 2: ParkourTeamChanagePush.team:type_name -> DBRaceTeam + 28, // 3: ParkourTeamJoinNoticePush.member:type_name -> DBRaceMember + 28, // 4: ParkourTeamQuitNoticePush.member:type_name -> DBRaceMember + 29, // 5: ParkourRaceMatchSuccPush.race:type_name -> DBRace + 29, // 6: ParkourRaceChanagePush.race:type_name -> DBRace + 29, // 7: ParkourRaceOverPush.race:type_name -> DBRace + 28, // 8: RPCParkourJoinMatchReq.member:type_name -> DBRaceMember + 28, // 9: RPCParkourMatchSuccReq.red:type_name -> DBRaceMember + 28, // 10: RPCParkourMatchSuccReq.bule:type_name -> DBRaceMember + 11, // [11:11] is the sub-list for method output_type + 11, // [11:11] is the sub-list for method input_type + 11, // [11:11] is the sub-list for extension type_name + 11, // [11:11] is the sub-list for extension extendee + 0, // [0:11] is the sub-list for field type_name } func init() { file_parkour_parkour_msg_proto_init() } @@ -996,7 +1454,7 @@ func file_parkour_parkour_msg_proto_init() { } } file_parkour_parkour_msg_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ParkourTeamDisbandNoticePush); i { + switch v := v.(*ParkourTeamChanagePush); i { case 0: return &v.state case 1: @@ -1008,7 +1466,7 @@ func file_parkour_parkour_msg_proto_init() { } } file_parkour_parkour_msg_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ParkourQuitReq); i { + switch v := v.(*ParkourInviteHandleReq); i { case 0: return &v.state case 1: @@ -1020,7 +1478,7 @@ func file_parkour_parkour_msg_proto_init() { } } file_parkour_parkour_msg_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ParkourQuitResp); i { + switch v := v.(*ParkourInviteHandleResp); i { case 0: return &v.state case 1: @@ -1032,7 +1490,7 @@ func file_parkour_parkour_msg_proto_init() { } } file_parkour_parkour_msg_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ParkourQuitNoticePush); i { + switch v := v.(*ParkourQuitTeamReq); i { case 0: return &v.state case 1: @@ -1044,7 +1502,7 @@ func file_parkour_parkour_msg_proto_init() { } } file_parkour_parkour_msg_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ParkourMatchReq); i { + switch v := v.(*ParkourQuitTeamResp); i { case 0: return &v.state case 1: @@ -1056,7 +1514,7 @@ func file_parkour_parkour_msg_proto_init() { } } file_parkour_parkour_msg_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ParkourMatchResp); i { + switch v := v.(*ParkourTeamJoinNoticePush); i { case 0: return &v.state case 1: @@ -1068,7 +1526,7 @@ func file_parkour_parkour_msg_proto_init() { } } file_parkour_parkour_msg_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ParkourMatchSuccPush); i { + switch v := v.(*ParkourTeamQuitNoticePush); i { case 0: return &v.state case 1: @@ -1080,7 +1538,7 @@ func file_parkour_parkour_msg_proto_init() { } } file_parkour_parkour_msg_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ParkourReadyReq); i { + switch v := v.(*ParkourTeamDisbandNoticePush); i { case 0: return &v.state case 1: @@ -1092,7 +1550,7 @@ func file_parkour_parkour_msg_proto_init() { } } file_parkour_parkour_msg_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ParkourReadyResp); i { + switch v := v.(*ParkourRaceMatchReq); i { case 0: return &v.state case 1: @@ -1104,7 +1562,7 @@ func file_parkour_parkour_msg_proto_init() { } } file_parkour_parkour_msg_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ParkourRaceStartPush); i { + switch v := v.(*ParkourRaceMatchResp); i { case 0: return &v.state case 1: @@ -1116,7 +1574,7 @@ func file_parkour_parkour_msg_proto_init() { } } file_parkour_parkour_msg_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ParkourShotReq); i { + switch v := v.(*ParkourRaceMatchSuccPush); i { case 0: return &v.state case 1: @@ -1128,7 +1586,7 @@ func file_parkour_parkour_msg_proto_init() { } } file_parkour_parkour_msg_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ParkourShotResp); i { + switch v := v.(*ParkourReadyReq); i { case 0: return &v.state case 1: @@ -1140,7 +1598,7 @@ func file_parkour_parkour_msg_proto_init() { } } file_parkour_parkour_msg_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ParkourAvoidReq); i { + switch v := v.(*ParkourReadyResp); i { case 0: return &v.state case 1: @@ -1152,7 +1610,7 @@ func file_parkour_parkour_msg_proto_init() { } } file_parkour_parkour_msg_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ParkourAvoidResp); i { + switch v := v.(*ParkourRaceStartPush); i { case 0: return &v.state case 1: @@ -1164,7 +1622,7 @@ func file_parkour_parkour_msg_proto_init() { } } file_parkour_parkour_msg_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ParkourRaceChanagePush); i { + switch v := v.(*ParkourShotReq); i { case 0: return &v.state case 1: @@ -1176,6 +1634,54 @@ func file_parkour_parkour_msg_proto_init() { } } file_parkour_parkour_msg_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ParkourShotResp); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_parkour_parkour_msg_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ParkourAvoidReq); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_parkour_parkour_msg_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ParkourAvoidResp); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_parkour_parkour_msg_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ParkourRaceChanagePush); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_parkour_parkour_msg_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ParkourRaceOverPush); i { case 0: return &v.state @@ -1187,6 +1693,54 @@ func file_parkour_parkour_msg_proto_init() { return nil } } + file_parkour_parkour_msg_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RPCParkourJoinMatchReq); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_parkour_parkour_msg_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RPCParkourJoinMatchResp); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_parkour_parkour_msg_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RPCParkourMatchSuccReq); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_parkour_parkour_msg_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RPCParkourMatchSuccResp); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } } type x struct{} out := protoimpl.TypeBuilder{ @@ -1194,7 +1748,7 @@ func file_parkour_parkour_msg_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_parkour_parkour_msg_proto_rawDesc, NumEnums: 0, - NumMessages: 19, + NumMessages: 27, NumExtensions: 0, NumServices: 0, },