上传补羊大赛游戏优化
This commit is contained in:
parent
07865f3eb9
commit
fad9238c32
@ -50,7 +50,6 @@ func (this *apiComp) WeekReward(session comm.IUserSession, req *pb.CapturesheepW
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
if info.Weekintegral < conf.Point {
|
||||
errdata = &pb.ErrorData{
|
||||
Code: pb.ErrorCode_ReqParameterError,
|
||||
|
74
modules/parkour/api_allweekreward.go
Normal file
74
modules/parkour/api_allweekreward.go
Normal file
@ -0,0 +1,74 @@
|
||||
package parkour
|
||||
|
||||
import (
|
||||
"go_dreamfactory/comm"
|
||||
"go_dreamfactory/lego/sys/mgo"
|
||||
"go_dreamfactory/pb"
|
||||
cfg "go_dreamfactory/sys/configure/structs"
|
||||
)
|
||||
|
||||
// 参数校验
|
||||
func (this *apiComp) AllWeekRewardCheck(session comm.IUserSession, req *pb.ParkourAllWeekRewardReq) (errdata *pb.ErrorData) {
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// /获取自己的排行榜信息
|
||||
func (this *apiComp) AllWeekReward(session comm.IUserSession, req *pb.ParkourAllWeekRewardReq) (errdata *pb.ErrorData) {
|
||||
var (
|
||||
conf []*cfg.GameDragonWeeklyrewardData
|
||||
info *pb.DBParkour
|
||||
award []*pb.UserAtno
|
||||
temp []*pb.UserAtno
|
||||
ok bool
|
||||
err error
|
||||
)
|
||||
|
||||
if errdata = this.AllWeekRewardCheck(session, req); errdata != nil {
|
||||
return
|
||||
}
|
||||
if conf, err = this.module.configure.getGameDragonWeeklyrewards(); err != nil {
|
||||
errdata = &pb.ErrorData{
|
||||
Code: pb.ErrorCode_ConfigNoFound,
|
||||
Title: pb.ErrorCode_ConfigNoFound.ToString(),
|
||||
Message: err.Error(),
|
||||
}
|
||||
return
|
||||
}
|
||||
if info, err = this.module.parkourComp.queryinfo(session.GetUserId()); err != nil && err != mgo.MongodbNil {
|
||||
errdata = &pb.ErrorData{
|
||||
Code: pb.ErrorCode_DBError,
|
||||
Title: pb.ErrorCode_DBError.ToString(),
|
||||
Message: err.Error(),
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
for _, v := range conf {
|
||||
if ok = info.Weekreward[v.Id]; ok {
|
||||
continue
|
||||
}
|
||||
|
||||
if info.Weekintegral < v.Point {
|
||||
continue
|
||||
}
|
||||
if errdata, temp = this.module.DispenseAtno(session, v.Rewarditem, true); errdata != nil {
|
||||
return
|
||||
}
|
||||
award = append(award, temp...)
|
||||
info.Weekreward[v.Id] = true
|
||||
}
|
||||
|
||||
if err = this.module.parkourComp.Change(session.GetUserId(), map[string]interface{}{
|
||||
"weekreward": info.Weekreward,
|
||||
}); err != nil {
|
||||
errdata = &pb.ErrorData{
|
||||
Code: pb.ErrorCode_DBError,
|
||||
Title: pb.ErrorCode_DBError.ToString(),
|
||||
Message: err.Error(),
|
||||
}
|
||||
return
|
||||
}
|
||||
session.SendMsg(string(this.module.GetType()), "allweekreward", &pb.CapturesheepAllWeekRewardResp{Weekreward: info.Weekreward, Award: award})
|
||||
return
|
||||
}
|
@ -1,56 +0,0 @@
|
||||
package parkour
|
||||
|
||||
import (
|
||||
"go_dreamfactory/comm"
|
||||
"go_dreamfactory/pb"
|
||||
)
|
||||
|
||||
//参数校验
|
||||
func (this *apiComp) GetRewardCheck(session comm.IUserSession, req *pb.ParkourGetRewardReq) (errdata *pb.ErrorData) {
|
||||
return
|
||||
}
|
||||
|
||||
///积分领奖
|
||||
func (this *apiComp) GetReward(session comm.IUserSession, req *pb.ParkourGetRewardReq) (errdata *pb.ErrorData) {
|
||||
var (
|
||||
info *pb.DBParkour
|
||||
err error
|
||||
)
|
||||
if errdata = this.GetRewardCheck(session, req); errdata != nil {
|
||||
return
|
||||
}
|
||||
if info, err = this.module.parkourComp.queryinfo(session.GetUserId()); err != nil {
|
||||
errdata = &pb.ErrorData{
|
||||
Code: pb.ErrorCode_DBError,
|
||||
Title: pb.ErrorCode_DBError.ToString(),
|
||||
Message: err.Error(),
|
||||
}
|
||||
return
|
||||
}
|
||||
// _conf := this.module.configure.getGameBuzkashiReward(req.Rid)
|
||||
// if _conf == nil {
|
||||
// errdata = &pb.ErrorData{
|
||||
// Code: pb.ErrorCode_ConfigNoFound,
|
||||
// Title: pb.ErrorCode_ConfigNoFound.ToString(),
|
||||
// Message: err.Error(),
|
||||
// }
|
||||
// return
|
||||
// }
|
||||
// if _conf.Schedule <= info.Integral && (info.Reward+1 == req.Rid) {
|
||||
// info.Reward += 1
|
||||
// if err = this.module.parkourComp.Change(session.GetUserId(), map[string]interface{}{
|
||||
// "reward": info.Reward,
|
||||
// }); err != nil {
|
||||
// errdata = &pb.ErrorData{
|
||||
// Code: pb.ErrorCode_DBError,
|
||||
// Title: pb.ErrorCode_DBError.ToString(),
|
||||
// Message: err.Error(),
|
||||
// }
|
||||
// return
|
||||
// }
|
||||
// }
|
||||
session.SendMsg(string(this.module.GetType()), "getreward", &pb.ParkourGetRewardResp{
|
||||
Info: info,
|
||||
})
|
||||
return
|
||||
}
|
@ -1,141 +0,0 @@
|
||||
package parkour
|
||||
|
||||
// import (
|
||||
// "go_dreamfactory/comm"
|
||||
// "go_dreamfactory/pb"
|
||||
// "go_dreamfactory/sys/configure"
|
||||
// "time"
|
||||
// )
|
||||
|
||||
// //参数校验
|
||||
// func (this *apiComp) InviteCheck(session comm.IUserSession, req *pb.ParkourInviteReq) (errdata *pb.ErrorData) {
|
||||
// if req.Uid == session.GetUserId() {
|
||||
// errdata = &pb.ErrorData{
|
||||
// Code: pb.ErrorCode_ReqParameterError,
|
||||
// Title: pb.ErrorCode_ReqParameterError.ToString(),
|
||||
// }
|
||||
// }
|
||||
// return
|
||||
// }
|
||||
|
||||
// ///邀请组队
|
||||
// func (this *apiComp) Invite(session comm.IUserSession, req *pb.ParkourInviteReq) (errdata *pb.ErrorData) {
|
||||
// var (
|
||||
// info *pb.DBParkour
|
||||
// tinfo *pb.DBParkour
|
||||
// tuser *pb.DBUser
|
||||
// member *pb.DBRaceMember
|
||||
// users []string
|
||||
// ok bool
|
||||
// err error
|
||||
// )
|
||||
// if errdata = this.InviteCheck(session, req); errdata != nil {
|
||||
// return
|
||||
// }
|
||||
// if info, err = this.module.parkourComp.queryinfo(session.GetUserId()); err != nil {
|
||||
// errdata = &pb.ErrorData{
|
||||
// Code: pb.ErrorCode_DBError,
|
||||
// Title: pb.ErrorCode_DBError.ToString(),
|
||||
// Message: err.Error(),
|
||||
// }
|
||||
// return
|
||||
// }
|
||||
// if info.Captainid != "" && info.Captainid != session.GetUserId() { //自己不是队长 无权邀请他人
|
||||
// errdata = &pb.ErrorData{
|
||||
// Code: pb.ErrorCode_ParkourInviteNoPermissions,
|
||||
// Title: pb.ErrorCode_ParkourInviteNoPermissions.ToString(),
|
||||
// Message: err.Error(),
|
||||
// }
|
||||
// return
|
||||
// }
|
||||
// if len(info.Member) > 3 {
|
||||
// errdata = &pb.ErrorData{
|
||||
// Code: pb.ErrorCode_ReqParameterError,
|
||||
// Title: pb.ErrorCode_ReqParameterError.ToString(),
|
||||
// }
|
||||
// return
|
||||
// }
|
||||
// if tuser, err = this.module.ModuleUser.GetUser(session.GetUserId()); err != nil {
|
||||
// errdata = &pb.ErrorData{
|
||||
// Code: pb.ErrorCode_SystemError,
|
||||
// Title: pb.ErrorCode_SystemError.ToString(),
|
||||
// }
|
||||
// return
|
||||
// }
|
||||
|
||||
// ok = false
|
||||
// for _, v := range info.Member {
|
||||
// if v.Uid == session.GetUserId() {
|
||||
// ok = true
|
||||
// }
|
||||
// }
|
||||
// if !ok {
|
||||
// info.Member = append(info.Member, &pb.DBRaceMember{Uid: tuser.Uid, Name: tuser.Name, Avatar: tuser.Avatar, Lv: tuser.Lv, Mount: info.Dfmount, Maxhp: 10})
|
||||
// }
|
||||
|
||||
// if tinfo, err = this.module.parkourComp.queryinfo(req.Uid); err != nil {
|
||||
// errdata = &pb.ErrorData{
|
||||
// Code: pb.ErrorCode_DBError,
|
||||
// Title: pb.ErrorCode_DBError.ToString(),
|
||||
// Message: err.Error(),
|
||||
// }
|
||||
// return
|
||||
// }
|
||||
// if tuser, err = this.module.ModuleUser.GetUser(req.Uid); err != nil {
|
||||
// errdata = &pb.ErrorData{
|
||||
// Code: pb.ErrorCode_SystemError,
|
||||
// Title: pb.ErrorCode_SystemError.ToString(),
|
||||
// Message: err.Error(),
|
||||
// }
|
||||
// return
|
||||
// }
|
||||
|
||||
// //目标是否在线
|
||||
// if !this.module.ModuleUser.IsOnline(req.Uid) {
|
||||
// member = &pb.DBRaceMember{Uid: tuser.Uid, Name: tuser.Name, Avatar: tuser.Avatar, Lv: tuser.Lv, Mount: tinfo.Dfmount, Maxhp: 10, Isai: true}
|
||||
// info.Captainid = session.GetUserId()
|
||||
// info.Member = append(info.Member, member)
|
||||
// users = make([]string, len(info.Member))
|
||||
// for i, v := range info.Member {
|
||||
// users[i] = v.Uid
|
||||
// }
|
||||
// this.module.SendMsgToUsers(string(this.module.GetType()), "teamjoinnotice",
|
||||
// &pb.ParkourTeamJoinNoticePush{Member: member}, users...)
|
||||
// this.module.SendMsgToUsers(string(this.module.GetType()), "teamchanage",
|
||||
// &pb.ParkourTeamChanagePush{Team: info}, users...)
|
||||
// } else {
|
||||
// if tinfo.Captainid != "" {
|
||||
// errdata = &pb.ErrorData{
|
||||
// Code: pb.ErrorCode_ParkourTargetTeamed,
|
||||
// Title: pb.ErrorCode_ParkourTargetTeamed.ToString(),
|
||||
// }
|
||||
// return
|
||||
// }
|
||||
// ok = false
|
||||
// for _, v := range info.Invite {
|
||||
// if v.Uid == req.Uid {
|
||||
// v.Expired = configure.Now().Add(time.Second * 10).Unix()
|
||||
// ok = true
|
||||
// }
|
||||
// }
|
||||
// if !ok {
|
||||
// info.Invite = append(info.Invite, &pb.DBRaceInvite{Uid: tuser.Uid, Name: tuser.Name, Avatar: tuser.Avatar, Lv: tuser.Lv, Expired: configure.Now().Add(time.Second * 10).Unix()})
|
||||
// }
|
||||
// this.module.SendMsgToUser(string(this.module.GetType()), "invitenotice",
|
||||
// &pb.ParkourInviteNoticePush{Team: info, State: 1}, req.Uid)
|
||||
// }
|
||||
// if err = this.module.parkourComp.Change(session.GetUserId(), map[string]interface{}{
|
||||
// "captainid": info.Captainid,
|
||||
// "invite": info.Invite,
|
||||
// "member": info.Member,
|
||||
// }); err != nil {
|
||||
// errdata = &pb.ErrorData{
|
||||
// Code: pb.ErrorCode_DBError,
|
||||
// Title: pb.ErrorCode_DBError.ToString(),
|
||||
// Message: err.Error(),
|
||||
// }
|
||||
// return
|
||||
// }
|
||||
// session.SendMsg(string(this.module.GetType()), "invite", &pb.ParkourInviteResp{Issucc: true, Team: info})
|
||||
// return
|
||||
// }
|
@ -1,115 +0,0 @@
|
||||
package parkour
|
||||
|
||||
// import (
|
||||
// "go_dreamfactory/comm"
|
||||
// "go_dreamfactory/pb"
|
||||
// "go_dreamfactory/sys/configure"
|
||||
// "time"
|
||||
// )
|
||||
|
||||
// //参数校验
|
||||
// func (this *apiComp) InviteHandleCheck(session comm.IUserSession, req *pb.ParkourInviteHandleReq) (errdata *pb.ErrorData) {
|
||||
// return
|
||||
// }
|
||||
|
||||
// ///邀请组队
|
||||
// func (this *apiComp) InviteHandle(session comm.IUserSession, req *pb.ParkourInviteHandleReq) (errdata *pb.ErrorData) {
|
||||
// var (
|
||||
// info *pb.DBParkour
|
||||
// tean *pb.DBParkour
|
||||
// invite *pb.DBRaceInvite
|
||||
// member *pb.DBRaceMember
|
||||
// users []string
|
||||
// ok bool
|
||||
// index int32
|
||||
// err error
|
||||
// )
|
||||
// if errdata = this.InviteHandleCheck(session, req); errdata != nil {
|
||||
// return
|
||||
// }
|
||||
// if info, err = this.module.parkourComp.queryinfo(session.GetUserId()); err != nil {
|
||||
// errdata = &pb.ErrorData{
|
||||
// Code: pb.ErrorCode_DBError,
|
||||
// Title: pb.ErrorCode_DBError.ToString(),
|
||||
// Message: err.Error(),
|
||||
// }
|
||||
// return
|
||||
// }
|
||||
|
||||
// if tean, err = this.module.parkourComp.queryinfo(req.Captainid); err != nil {
|
||||
// errdata = &pb.ErrorData{
|
||||
// Code: pb.ErrorCode_DBError,
|
||||
// Title: pb.ErrorCode_DBError.ToString(),
|
||||
// Message: err.Error(),
|
||||
// }
|
||||
// return
|
||||
// }
|
||||
// if len(tean.Member) >= 3 {
|
||||
// errdata = &pb.ErrorData{
|
||||
// Code: pb.ErrorCode_ParkourMemberFull,
|
||||
// Title: pb.ErrorCode_ParkourMemberFull.ToString(),
|
||||
// }
|
||||
// return
|
||||
// }
|
||||
// if req.State == 3 {
|
||||
// ok = false
|
||||
// for i, v := range tean.Invite {
|
||||
// if v.Uid == session.GetUserId() && configure.Now().Before(time.Unix(v.Expired, 0)) { //邀请未过期
|
||||
// invite = v
|
||||
// index = int32(i)
|
||||
// ok = true
|
||||
// }
|
||||
// }
|
||||
// if !ok {
|
||||
// errdata = &pb.ErrorData{
|
||||
// Code: pb.ErrorCode_ParkourInviteOverdue,
|
||||
// Title: pb.ErrorCode_ParkourInviteOverdue.ToString(),
|
||||
// }
|
||||
// return
|
||||
// }
|
||||
// tean.Invite = append(tean.Invite[0:index], tean.Invite[index+1:]...)
|
||||
// users = make([]string, len(tean.Member))
|
||||
// for i, v := range tean.Member {
|
||||
// users[i] = v.Uid
|
||||
// }
|
||||
// users = append(users, invite.Uid)
|
||||
// member = &pb.DBRaceMember{Uid: invite.Uid, Name: invite.Name, Avatar: invite.Avatar, Lv: invite.Lv, Mount: info.Dfmount, Maxhp: 10}
|
||||
// tean.Captainid = tean.Uid
|
||||
// tean.State = pb.RaceTeamState_teaming
|
||||
// tean.Member = append(tean.Member, member)
|
||||
// if err = this.module.parkourComp.Change(session.GetUserId(), map[string]interface{}{
|
||||
// "captainid": tean.Captainid,
|
||||
// "state": tean.State,
|
||||
// }); err != nil {
|
||||
// errdata = &pb.ErrorData{
|
||||
// Code: pb.ErrorCode_DBError,
|
||||
// Title: pb.ErrorCode_DBError.ToString(),
|
||||
// Message: err.Error(),
|
||||
// }
|
||||
// return
|
||||
// }
|
||||
// if err = this.module.parkourComp.Change(tean.Captainid, map[string]interface{}{
|
||||
// "state": tean.State,
|
||||
// "invite": tean.Invite,
|
||||
// "captainid": tean.Captainid,
|
||||
// "member": tean.Member,
|
||||
// }); err != nil {
|
||||
// errdata = &pb.ErrorData{
|
||||
// Code: pb.ErrorCode_DBError,
|
||||
// Title: pb.ErrorCode_DBError.ToString(),
|
||||
// Message: err.Error(),
|
||||
// }
|
||||
// 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()), "invitehandle", &pb.ParkourInviteHandleResp{IsSucc: true})
|
||||
// return
|
||||
// }
|
@ -1,134 +0,0 @@
|
||||
package parkour
|
||||
|
||||
// import (
|
||||
// "go_dreamfactory/comm"
|
||||
// "go_dreamfactory/pb"
|
||||
// )
|
||||
|
||||
// //参数校验
|
||||
// func (this *apiComp) JoinTeamCheck(session comm.IUserSession, req *pb.ParkourJoinTeamReq) (errdata *pb.ErrorData) {
|
||||
// if session.GetUserId() == req.Uid {
|
||||
// errdata = &pb.ErrorData{
|
||||
// Code: pb.ErrorCode_ReqParameterError,
|
||||
// Title: pb.ErrorCode_ReqParameterError.ToString(),
|
||||
// }
|
||||
// }
|
||||
|
||||
// return
|
||||
// }
|
||||
|
||||
// ///请求进入队伍
|
||||
// func (this *apiComp) JoinTeam(session comm.IUserSession, req *pb.ParkourJoinTeamReq) (errdata *pb.ErrorData) {
|
||||
// var (
|
||||
// info *pb.DBParkour
|
||||
// tean *pb.DBParkour
|
||||
// member *pb.DBRaceMember
|
||||
// users []string
|
||||
|
||||
// err error
|
||||
// )
|
||||
// if errdata = this.JoinTeamCheck(session, req); errdata != nil {
|
||||
// return
|
||||
// }
|
||||
// if info, err = this.module.parkourComp.queryinfo(session.GetUserId()); err != nil {
|
||||
// errdata = &pb.ErrorData{
|
||||
// Code: pb.ErrorCode_DBError,
|
||||
// Title: pb.ErrorCode_DBError.ToString(),
|
||||
// Message: err.Error(),
|
||||
// }
|
||||
// return
|
||||
// }
|
||||
// // 状态校验
|
||||
// if info.State != pb.RaceTeamState_resting { // 不是休息中不能参加
|
||||
// errdata = &pb.ErrorData{
|
||||
// Code: pb.ErrorCode_StateInvalid,
|
||||
// Title: pb.ErrorCode_StateInvalid.ToString(),
|
||||
// Message: err.Error(),
|
||||
// }
|
||||
// return
|
||||
// }
|
||||
|
||||
// if len(info.Member) > 3 {
|
||||
// errdata = &pb.ErrorData{
|
||||
// Code: pb.ErrorCode_ParkourMemberFull,
|
||||
// Title: pb.ErrorCode_ParkourMemberFull.ToString(),
|
||||
// Message: err.Error(),
|
||||
// }
|
||||
// return
|
||||
// }
|
||||
// if tean, err = this.module.parkourComp.queryinfo(req.Uid); err != nil {
|
||||
// errdata = &pb.ErrorData{
|
||||
// Code: pb.ErrorCode_DBError,
|
||||
// Title: pb.ErrorCode_DBError.ToString(),
|
||||
// Message: err.Error(),
|
||||
// }
|
||||
// return
|
||||
// }
|
||||
|
||||
// users = make([]string, len(tean.Member))
|
||||
// for i, v := range tean.Member {
|
||||
// if v.Uid == session.GetUserId() {
|
||||
// // 自己已经在队伍中
|
||||
// errdata = &pb.ErrorData{
|
||||
// Code: pb.ErrorCode_ParkourTargetTeamed,
|
||||
// Title: pb.ErrorCode_ParkourTargetTeamed.ToString(),
|
||||
// Message: err.Error(),
|
||||
// }
|
||||
// return
|
||||
// }
|
||||
// users[i] = v.Uid
|
||||
// }
|
||||
// user, err := this.module.ModuleUser.GetUser(session.GetUserId())
|
||||
// if err != nil {
|
||||
// errdata = &pb.ErrorData{
|
||||
// Code: pb.ErrorCode_SystemError,
|
||||
// Title: pb.ErrorCode_SystemError.ToString(),
|
||||
// Message: err.Error(),
|
||||
// }
|
||||
// return
|
||||
// }
|
||||
// if tean.Captainid == "" {
|
||||
|
||||
// member = &pb.DBRaceMember{Uid: user.Uid, Name: user.Name, Avatar: user.Avatar, Lv: user.Lv, Mount: tean.Dfmount, Maxhp: 10}
|
||||
// tean.Captainid = tean.Uid
|
||||
// tean.State = pb.RaceTeamState_teaming
|
||||
// tean.Member = append(tean.Member, member)
|
||||
// users = append(users, tean.Uid)
|
||||
// }
|
||||
|
||||
// users = append(users, session.GetUserId())
|
||||
|
||||
// member = &pb.DBRaceMember{Uid: user.Uid, Name: user.Name, Avatar: user.Avatar, Lv: user.Lv, Mount: info.Dfmount, Maxhp: 10}
|
||||
// tean.Member = append(tean.Member, member)
|
||||
// if err = this.module.parkourComp.Change(session.GetUserId(), map[string]interface{}{
|
||||
// "state": tean.State,
|
||||
// "captainid": tean.Captainid,
|
||||
// }); err != nil {
|
||||
// errdata = &pb.ErrorData{
|
||||
// Code: pb.ErrorCode_DBError,
|
||||
// Title: pb.ErrorCode_DBError.ToString(),
|
||||
// Message: err.Error(),
|
||||
// }
|
||||
// return
|
||||
// }
|
||||
// if err = this.module.parkourComp.Change(tean.Captainid, map[string]interface{}{
|
||||
// "state": tean.State,
|
||||
// "captainid": tean.Captainid,
|
||||
// "member": tean.Member,
|
||||
// }); err != nil {
|
||||
// errdata = &pb.ErrorData{
|
||||
// Code: pb.ErrorCode_DBError,
|
||||
// Title: pb.ErrorCode_DBError.ToString(),
|
||||
// Message: err.Error(),
|
||||
// }
|
||||
// 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...)
|
||||
// session.SendMsg(string(this.module.GetType()), "jointeam", &pb.ParkourJoinTeamResp{
|
||||
// Team: tean,
|
||||
// })
|
||||
// return
|
||||
// }
|
@ -1,142 +0,0 @@
|
||||
package parkour
|
||||
|
||||
// import (
|
||||
// "go_dreamfactory/comm"
|
||||
// "go_dreamfactory/pb"
|
||||
// )
|
||||
|
||||
// //参数校验
|
||||
// func (this *apiComp) QuitTeamCheck(session comm.IUserSession, req *pb.ParkourQuitTeamReq) (errdata *pb.ErrorData) {
|
||||
// return
|
||||
// }
|
||||
|
||||
// ///退出队伍
|
||||
// func (this *apiComp) QuitTeam(session comm.IUserSession, req *pb.ParkourQuitTeamReq) (errdata *pb.ErrorData) {
|
||||
// var (
|
||||
// tean *pb.DBParkour
|
||||
// ntean *pb.DBParkour
|
||||
// member *pb.DBRaceMember
|
||||
// users []string
|
||||
// ok bool
|
||||
// err error
|
||||
// )
|
||||
// if errdata = this.QuitTeamCheck(session, req); errdata != nil {
|
||||
// return
|
||||
// }
|
||||
// if tean, err = this.module.parkourComp.queryinfo(req.Captainid); err != nil {
|
||||
// errdata = &pb.ErrorData{
|
||||
// Code: pb.ErrorCode_DBError,
|
||||
// Title: pb.ErrorCode_DBError.ToString(),
|
||||
// Message: err.Error(),
|
||||
// }
|
||||
// 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 if !v.Isai {
|
||||
// users = append(users, v.Uid)
|
||||
// }
|
||||
// }
|
||||
// if !ok {
|
||||
// errdata = &pb.ErrorData{
|
||||
// Code: pb.ErrorCode_ReqParameterError,
|
||||
// Title: pb.ErrorCode_ReqParameterError.ToString(),
|
||||
// }
|
||||
// return
|
||||
// }
|
||||
// if req.Captainid == session.GetUserId() { //自己是队长
|
||||
// if len(users) > 0 {
|
||||
// for i, v := range users {
|
||||
// if i == 0 {
|
||||
// if ntean, err = this.module.parkourComp.queryinfo(v); err != nil {
|
||||
// errdata = &pb.ErrorData{
|
||||
// Code: pb.ErrorCode_DBError,
|
||||
// Title: pb.ErrorCode_DBError.ToString(),
|
||||
// Message: err.Error(),
|
||||
// }
|
||||
// return
|
||||
// } else {
|
||||
// ntean.Captainid = users[0]
|
||||
// ntean.Member = tean.Member
|
||||
// if err = this.module.parkourComp.Change(v, map[string]interface{}{
|
||||
// "captainid": v,
|
||||
// "member": tean.Member,
|
||||
// }); err != nil {
|
||||
// errdata = &pb.ErrorData{
|
||||
// Code: pb.ErrorCode_DBError,
|
||||
// Title: pb.ErrorCode_DBError.ToString(),
|
||||
// Message: err.Error(),
|
||||
// }
|
||||
// return
|
||||
// }
|
||||
// }
|
||||
// } else {
|
||||
// if err = this.module.parkourComp.Change(v, map[string]interface{}{
|
||||
// "captainid": users[0],
|
||||
// }); err != nil {
|
||||
// errdata = &pb.ErrorData{
|
||||
// Code: pb.ErrorCode_DBError,
|
||||
// Title: pb.ErrorCode_DBError.ToString(),
|
||||
// Message: err.Error(),
|
||||
// }
|
||||
// return
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// this.module.SendMsgToUsers(string(this.module.GetType()), "teamchanage",
|
||||
// &pb.ParkourTeamChanagePush{Team: ntean}, users...)
|
||||
// }
|
||||
|
||||
// tean.Invite = make([]*pb.DBRaceInvite, 0)
|
||||
// tean.Member = make([]*pb.DBRaceMember, 0)
|
||||
// if err = this.module.parkourComp.Change(session.GetUserId(), map[string]interface{}{
|
||||
// "state": pb.RaceTeamState_resting,
|
||||
// "captainid": "",
|
||||
// "invite": tean.Invite,
|
||||
// "member": tean.Member,
|
||||
// }); err != nil {
|
||||
// errdata = &pb.ErrorData{
|
||||
// Code: pb.ErrorCode_DBError,
|
||||
// Title: pb.ErrorCode_DBError.ToString(),
|
||||
// Message: err.Error(),
|
||||
// }
|
||||
// return
|
||||
// }
|
||||
|
||||
// } else {
|
||||
// if err = this.module.parkourComp.Change(session.GetUserId(), map[string]interface{}{
|
||||
// "state": pb.RaceTeamState_resting,
|
||||
// "captainid": "",
|
||||
// }); err != nil {
|
||||
// errdata = &pb.ErrorData{
|
||||
// Code: pb.ErrorCode_DBError,
|
||||
// Title: pb.ErrorCode_DBError.ToString(),
|
||||
// Message: err.Error(),
|
||||
// }
|
||||
// return
|
||||
// }
|
||||
// if err = this.module.parkourComp.Change(req.Captainid, map[string]interface{}{
|
||||
// "member": tean.Member,
|
||||
// }); err != nil {
|
||||
// errdata = &pb.ErrorData{
|
||||
// Code: pb.ErrorCode_DBError,
|
||||
// Title: pb.ErrorCode_DBError.ToString(),
|
||||
// Message: err.Error(),
|
||||
// }
|
||||
// return
|
||||
// }
|
||||
// if len(users) > 0 {
|
||||
// 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
|
||||
// }
|
@ -28,26 +28,16 @@ func (this *apiComp) RaceMatch(session comm.IUserSession, req *pb.ParkourRaceMat
|
||||
}
|
||||
return
|
||||
}
|
||||
info.Captainid = session.GetUserId()
|
||||
info.State = pb.RaceTeamState_teaming
|
||||
info.Member = []*pb.DBRaceMember{
|
||||
{
|
||||
User: info.User,
|
||||
Dan: info.Dan,
|
||||
Integral: info.Integral,
|
||||
Mount: info.Mount,
|
||||
Property: info.Property,
|
||||
Currhp: info.Property[comm.Dhp],
|
||||
},
|
||||
}
|
||||
if req.Rtype == pb.RaceType_ordinary {
|
||||
if err = this.module.matchTrain.MatchReq(&pb.DBMatchPlayer{
|
||||
Suser: info.User,
|
||||
Dan: info.Dan,
|
||||
Integral: info.Integral,
|
||||
Mount: info.Mount,
|
||||
Property: info.Property,
|
||||
Mlv: info.Mlv,
|
||||
Suser: info.User,
|
||||
Dan: info.Dan,
|
||||
Integral: info.Integral,
|
||||
Weekintegral: info.Weekintegral,
|
||||
Mount: info.Mount,
|
||||
Property: info.Property,
|
||||
Mlv: info.Mlv,
|
||||
}); err != nil {
|
||||
errdata = &pb.ErrorData{
|
||||
Code: pb.ErrorCode_DBError,
|
||||
@ -58,12 +48,13 @@ func (this *apiComp) RaceMatch(session comm.IUserSession, req *pb.ParkourRaceMat
|
||||
}
|
||||
} else {
|
||||
if err = this.module.matchrank.MatchReq(&pb.DBMatchPlayer{
|
||||
Suser: info.User,
|
||||
Dan: info.Dan,
|
||||
Integral: info.Integral,
|
||||
Mount: info.Mount,
|
||||
Property: info.Property,
|
||||
Mlv: info.Mlv,
|
||||
Suser: info.User,
|
||||
Dan: info.Dan,
|
||||
Integral: info.Integral,
|
||||
Weekintegral: info.Weekintegral,
|
||||
Mount: info.Mount,
|
||||
Property: info.Property,
|
||||
Mlv: info.Mlv,
|
||||
}); err != nil {
|
||||
errdata = &pb.ErrorData{
|
||||
Code: pb.ErrorCode_DBError,
|
||||
@ -75,10 +66,8 @@ func (this *apiComp) RaceMatch(session comm.IUserSession, req *pb.ParkourRaceMat
|
||||
}
|
||||
|
||||
if err = this.module.parkourComp.Change(session.GetUserId(), map[string]interface{}{
|
||||
"state": pb.RaceTeamState_matching,
|
||||
"captainid": info.Captainid,
|
||||
"member": info.Member,
|
||||
"rtype": info.Rtype,
|
||||
"state": pb.RaceTeamState_matching,
|
||||
"rtype": info.Rtype,
|
||||
}); err != nil {
|
||||
errdata = &pb.ErrorData{
|
||||
Code: pb.ErrorCode_DBError,
|
||||
|
@ -13,13 +13,13 @@ func (this *apiComp) RaceMatchCancelCheck(session comm.IUserSession, req *pb.Par
|
||||
///取消匹配
|
||||
func (this *apiComp) RaceMatchCancel(session comm.IUserSession, req *pb.ParkourRaceMatchCancelReq) (errdata *pb.ErrorData) {
|
||||
var (
|
||||
team *pb.DBParkour
|
||||
info *pb.DBParkour
|
||||
err error
|
||||
)
|
||||
if errdata = this.RaceMatchCancelCheck(session, req); errdata != nil {
|
||||
return
|
||||
}
|
||||
if team, err = this.module.parkourComp.queryinfo(session.GetUserId()); err != nil {
|
||||
if info, err = this.module.parkourComp.queryinfo(session.GetUserId()); err != nil {
|
||||
errdata = &pb.ErrorData{
|
||||
Code: pb.ErrorCode_DBError,
|
||||
Title: pb.ErrorCode_DBError.ToString(),
|
||||
@ -27,13 +27,16 @@ func (this *apiComp) RaceMatchCancel(session comm.IUserSession, req *pb.ParkourR
|
||||
}
|
||||
return
|
||||
}
|
||||
if team.Captainid != session.GetUserId() {
|
||||
|
||||
if info.State != pb.RaceTeamState_matching {
|
||||
errdata = &pb.ErrorData{
|
||||
Code: pb.ErrorCode_ReqParameterError,
|
||||
Title: pb.ErrorCode_ReqParameterError.ToString(),
|
||||
Code: pb.ErrorCode_ReqParameterError,
|
||||
Title: pb.ErrorCode_ReqParameterError.ToString(),
|
||||
Message: "no matching!",
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
if req.Rtype == pb.RaceType_ordinary {
|
||||
if err = this.module.matchTrain.CancelMatch(session.GetUserId()); err != nil {
|
||||
errdata = &pb.ErrorData{
|
||||
|
@ -1,49 +0,0 @@
|
||||
package parkour
|
||||
|
||||
// import (
|
||||
// "go_dreamfactory/comm"
|
||||
// "go_dreamfactory/pb"
|
||||
// )
|
||||
|
||||
// //参数校验
|
||||
// func (this *apiComp) ViewPlayerCheck(session comm.IUserSession, req *pb.ParkourViewPlayerReq) (errdata *pb.ErrorData) {
|
||||
// return
|
||||
// }
|
||||
|
||||
// ///游戏
|
||||
// func (this *apiComp) ViewPlayer(session comm.IUserSession, req *pb.ParkourViewPlayerReq) (errdata *pb.ErrorData) {
|
||||
// var (
|
||||
// resp *pb.ParkourViewPlayerResp
|
||||
// )
|
||||
// if errdata = this.ViewPlayerCheck(session, req); errdata != nil {
|
||||
// return
|
||||
// }
|
||||
// resp = &pb.ParkourViewPlayerResp{
|
||||
// Player: make([]*pb.ParkourData, 0),
|
||||
// }
|
||||
// for _, uid := range req.Uid {
|
||||
// if u, err := this.module.ModuleUser.GetUser(uid); err == nil {
|
||||
// {
|
||||
// var time int64
|
||||
// if this.module.ModuleUser.IsOnline(uid) {
|
||||
// //if user := this.module.ModuleUser.GetUser(uid); user != nil {
|
||||
// time = u.Offlinetime
|
||||
// // }
|
||||
// } else {
|
||||
// time = -1
|
||||
// }
|
||||
|
||||
// resp.Player = append(resp.Player, &pb.ParkourData{
|
||||
// Uid: uid,
|
||||
// Name: u.Name,
|
||||
// Avatar: u.Avatar,
|
||||
// Lv: u.Lv,
|
||||
// OfflineTime: time, // 检查是否在线
|
||||
// })
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
// session.SendMsg(string(this.module.GetType()), "viewplayer", resp)
|
||||
// return
|
||||
// }
|
77
modules/parkour/api_weekreward.go
Normal file
77
modules/parkour/api_weekreward.go
Normal file
@ -0,0 +1,77 @@
|
||||
package parkour
|
||||
|
||||
import (
|
||||
"go_dreamfactory/comm"
|
||||
"go_dreamfactory/lego/sys/mgo"
|
||||
"go_dreamfactory/pb"
|
||||
cfg "go_dreamfactory/sys/configure/structs"
|
||||
)
|
||||
|
||||
// 参数校验
|
||||
func (this *apiComp) WeekRewardCheck(session comm.IUserSession, req *pb.ParkourWeekRewardReq) (errdata *pb.ErrorData) {
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// /获取自己的排行榜信息
|
||||
func (this *apiComp) WeekReward(session comm.IUserSession, req *pb.ParkourWeekRewardReq) (errdata *pb.ErrorData) {
|
||||
var (
|
||||
conf *cfg.GameDragonWeeklyrewardData
|
||||
info *pb.DBParkour
|
||||
award []*pb.UserAtno
|
||||
ok bool
|
||||
err error
|
||||
)
|
||||
|
||||
if errdata = this.WeekRewardCheck(session, req); errdata != nil {
|
||||
return
|
||||
}
|
||||
if conf, err = this.module.configure.getGameDragonWeeklyreward(req.Id); err != nil {
|
||||
errdata = &pb.ErrorData{
|
||||
Code: pb.ErrorCode_ConfigNoFound,
|
||||
Title: pb.ErrorCode_ConfigNoFound.ToString(),
|
||||
Message: err.Error(),
|
||||
}
|
||||
return
|
||||
}
|
||||
if info, err = this.module.parkourComp.queryinfo(session.GetUserId()); err != nil && err != mgo.MongodbNil {
|
||||
errdata = &pb.ErrorData{
|
||||
Code: pb.ErrorCode_DBError,
|
||||
Title: pb.ErrorCode_DBError.ToString(),
|
||||
Message: err.Error(),
|
||||
}
|
||||
return
|
||||
}
|
||||
if ok = info.Weekreward[req.Id]; ok {
|
||||
errdata = &pb.ErrorData{
|
||||
Code: pb.ErrorCode_ReqParameterError,
|
||||
Title: pb.ErrorCode_ReqParameterError.ToString(),
|
||||
Message: "Already claimed !",
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
if info.Weekintegral < conf.Point {
|
||||
errdata = &pb.ErrorData{
|
||||
Code: pb.ErrorCode_ReqParameterError,
|
||||
Title: pb.ErrorCode_ReqParameterError.ToString(),
|
||||
Message: "Not enough points !",
|
||||
}
|
||||
}
|
||||
if errdata, award = this.module.DispenseAtno(session, conf.Rewarditem, true); errdata != nil {
|
||||
return
|
||||
}
|
||||
info.Weekreward[req.Id] = true
|
||||
if err = this.module.parkourComp.Change(session.GetUserId(), map[string]interface{}{
|
||||
"weekreward": info.Weekreward,
|
||||
}); err != nil {
|
||||
errdata = &pb.ErrorData{
|
||||
Code: pb.ErrorCode_DBError,
|
||||
Title: pb.ErrorCode_DBError.ToString(),
|
||||
Message: err.Error(),
|
||||
}
|
||||
return
|
||||
}
|
||||
session.SendMsg(string(this.module.GetType()), "weekreward", &pb.CapturesheepWeekRewardResp{Id: req.Id, Award: award})
|
||||
return
|
||||
}
|
@ -10,14 +10,15 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
game_bukashiai = "game_bukashiai.json"
|
||||
game_buzkashiopen = "game_buzkashiopen.json"
|
||||
game_buzkashigrade = "game_buzkashigrade.json"
|
||||
game_buzkashilv = "game_buzkashilv.json"
|
||||
game_buzkashiqtelv = "game_buzkashiqtelv.json"
|
||||
game_buzkashimount = "game_buzkashimount.json"
|
||||
game_buzkashireward = "game_buzkashireward.json"
|
||||
game_qualifying = "game_qualifying.json" //段位
|
||||
game_bukashiai = "game_bukashiai.json"
|
||||
game_buzkashiopen = "game_buzkashiopen.json"
|
||||
game_buzkashigrade = "game_buzkashigrade.json"
|
||||
game_buzkashiqtelv = "game_buzkashiqtelv.json"
|
||||
game_buzkashimount = "game_buzkashimount.json"
|
||||
game_buzkashireward = "game_buzkashireward.json"
|
||||
game_buzkashilv = "game_buzkashilv.json" //评级表
|
||||
game_qualifying = "game_qualifying.json" //段位
|
||||
game_dragonweeklyreward = "game_dragonweeklyreward.json" //周长
|
||||
)
|
||||
|
||||
// /背包配置管理组件
|
||||
@ -37,7 +38,7 @@ func (this *configureComp) Init(service core.IService, module core.IModule, comp
|
||||
this.LoadConfigure(game_buzkashiqtelv, cfg.NewGameBuzkashiQteLv)
|
||||
this.LoadConfigure(game_buzkashimount, cfg.NewGameBuzkashiMount)
|
||||
this.LoadConfigure(game_qualifying, cfg.NewGameQualifying)
|
||||
// this.LoadConfigure(game_buzkashireward, cfg.NewGameBuzkashiReward)
|
||||
this.LoadConfigure(game_dragonweeklyreward, cfg.NewGameDragonWeeklyreward)
|
||||
return
|
||||
}
|
||||
|
||||
@ -171,18 +172,26 @@ func (this *configureComp) getgameBukashiAiDataByDan(btype, dan int32) (conf *cf
|
||||
return
|
||||
}
|
||||
|
||||
// func (this *configureComp) getGameBuzkashiReward(id int32) (configure *cfg.GameBuzkashiRewardData) {
|
||||
// if v, err := this.GetConfigure(game_buzkashireward); err == nil {
|
||||
// var ok bool
|
||||
// if configure, ok = v.(*cfg.GameBuzkashiReward).GetDataMap()[id]; !ok {
|
||||
// // err = fmt.Errorf("not found:%d ", id)
|
||||
// err = comm.NewNotFoundConfErr(string(this.module.GetType()), game_buzkashireward, id)
|
||||
// this.module.Errorln(err)
|
||||
// return
|
||||
// }
|
||||
// }
|
||||
// return nil
|
||||
// }
|
||||
//查询积分段位信息
|
||||
func (this *configureComp) getGameBuzkashiLv(scores int32) (conf *cfg.GameBuzkashiLvData, err error) {
|
||||
var (
|
||||
v interface{}
|
||||
)
|
||||
if v, err = this.GetConfigure(game_buzkashilv); err != nil {
|
||||
this.module.Errorln(err)
|
||||
} else {
|
||||
for i, v := range v.(*cfg.GameBuzkashiLv).GetDataList() {
|
||||
if i == 0 && scores < v.Value {
|
||||
conf = v
|
||||
return
|
||||
}
|
||||
if scores >= v.Value {
|
||||
conf = v
|
||||
}
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
//查询积分段位信息
|
||||
func (this *configureComp) getActiveRewardById(lv int32) (result *cfg.GameQualifyingData, err error) {
|
||||
@ -200,3 +209,33 @@ func (this *configureComp) getActiveRewardById(lv int32) (result *cfg.GameQualif
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
//查询积分段位信息
|
||||
func (this *configureComp) getGameDragonWeeklyrewards() (confs []*cfg.GameDragonWeeklyrewardData, err error) {
|
||||
var (
|
||||
v interface{}
|
||||
)
|
||||
if v, err = this.GetConfigure(game_dragonweeklyreward); err != nil {
|
||||
this.module.Errorln(err)
|
||||
} else {
|
||||
confs = v.(*cfg.GameDragonWeeklyreward).GetDataList()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
//查询积分段位信息
|
||||
func (this *configureComp) getGameDragonWeeklyreward(id int32) (result *cfg.GameDragonWeeklyrewardData, err error) {
|
||||
var (
|
||||
v interface{}
|
||||
ok bool
|
||||
)
|
||||
if v, err = this.GetConfigure(game_dragonweeklyreward); err != nil {
|
||||
this.module.Errorln(err)
|
||||
} else {
|
||||
if result, ok = v.(*cfg.GameDragonWeeklyreward).GetDataMap()[id]; !ok {
|
||||
err = comm.NewNotFoundConfErr(string(this.module.GetType()), game_dragonweeklyreward, id)
|
||||
this.module.Errorln(err)
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
|
@ -75,13 +75,14 @@ func (this *matchrankComp) MatchNotic(players map[string]interface{}) (err error
|
||||
for i, v := range playerSlice {
|
||||
if i%2 == 0 {
|
||||
red = append(red, &pb.DBRaceMember{
|
||||
User: v.Suser,
|
||||
Dan: v.Dan,
|
||||
Integral: v.Integral,
|
||||
Mlv: v.Mlv,
|
||||
Mount: v.Mount,
|
||||
Property: v.Property,
|
||||
Currhp: v.Property[comm.Dhp],
|
||||
User: v.Suser,
|
||||
Dan: v.Dan,
|
||||
Integral: v.Integral,
|
||||
Weekintegral: v.Weekintegral,
|
||||
Mlv: v.Mlv,
|
||||
Mount: v.Mount,
|
||||
Property: v.Property,
|
||||
Currhp: v.Property[comm.Dhp],
|
||||
})
|
||||
dan = v.Dan
|
||||
} else {
|
||||
@ -113,7 +114,7 @@ func (this *matchrankComp) MatchNotic(players map[string]interface{}) (err error
|
||||
bule = append(bule, ais[0:3-len(bule)]...)
|
||||
}
|
||||
}
|
||||
if err = this.module.createbattle(red, bule); err != nil {
|
||||
if err = this.module.createbattle(pb.RaceType_ordinary, red, bule); err != nil {
|
||||
this.module.Error("createbattle err!", log.Field{Key: "key", Value: err.Error()})
|
||||
}
|
||||
return
|
||||
|
@ -86,13 +86,14 @@ func (this *matchTrainComp) MatchNotic(players map[string]interface{}) (err erro
|
||||
dan = v.Dan
|
||||
} else {
|
||||
bule = append(bule, &pb.DBRaceMember{
|
||||
User: v.Suser,
|
||||
Dan: v.Dan,
|
||||
Integral: v.Integral,
|
||||
Mlv: v.Mlv,
|
||||
Mount: v.Mount,
|
||||
Property: v.Property,
|
||||
Currhp: v.Property[comm.Dhp],
|
||||
User: v.Suser,
|
||||
Dan: v.Dan,
|
||||
Integral: v.Integral,
|
||||
Weekintegral: v.Weekintegral,
|
||||
Mlv: v.Mlv,
|
||||
Mount: v.Mount,
|
||||
Property: v.Property,
|
||||
Currhp: v.Property[comm.Dhp],
|
||||
})
|
||||
dan = v.Dan
|
||||
}
|
||||
@ -113,7 +114,7 @@ func (this *matchTrainComp) MatchNotic(players map[string]interface{}) (err erro
|
||||
bule = append(bule, ais[0:3-len(bule)]...)
|
||||
}
|
||||
}
|
||||
if err = this.module.createbattle(red, bule); err != nil {
|
||||
if err = this.module.createbattle(pb.RaceType_prop, red, bule); err != nil {
|
||||
this.module.Error("createbattle err!", log.Field{Key: "key", Value: err.Error()})
|
||||
}
|
||||
return
|
||||
|
@ -172,8 +172,6 @@ func (this *ModelParkourComp) queryinfo(uid string) (result *pb.DBParkour, err e
|
||||
State: pb.RaceTeamState_resting,
|
||||
Dan: 1,
|
||||
Property: make(map[string]int32),
|
||||
Invite: make([]*pb.DBRaceInvite, 0),
|
||||
Member: []*pb.DBRaceMember{},
|
||||
Weekreward: make(map[int32]bool),
|
||||
}
|
||||
if err = this.Add(uid, result); err != nil {
|
||||
@ -206,8 +204,6 @@ func (this *ModelParkourComp) queryinfos(uids []string) (results []*pb.DBParkour
|
||||
Id: primitive.NewObjectID().Hex(),
|
||||
User: comm.GetUserBaseInfo(user),
|
||||
State: pb.RaceTeamState_resting,
|
||||
Invite: make([]*pb.DBRaceInvite, 0),
|
||||
Member: []*pb.DBRaceMember{},
|
||||
Weekreward: make(map[int32]bool),
|
||||
}
|
||||
newdata[v] = temp
|
||||
|
@ -1,52 +0,0 @@
|
||||
package parkour
|
||||
|
||||
import (
|
||||
"go_dreamfactory/comm"
|
||||
"go_dreamfactory/lego/core"
|
||||
"go_dreamfactory/lego/sys/mgo"
|
||||
"go_dreamfactory/modules"
|
||||
"go_dreamfactory/pb"
|
||||
"go_dreamfactory/sys/db"
|
||||
)
|
||||
|
||||
///竞速数据模块
|
||||
type ModelRaceComp struct {
|
||||
modules.MCompModel
|
||||
module *Parkour
|
||||
}
|
||||
|
||||
//组件初始化接口
|
||||
func (this *ModelRaceComp) Init(service core.IService, module core.IModule, comp core.IModuleComp, opt core.IModuleOptions) (err error) {
|
||||
this.TableName = comm.TableParkourRace
|
||||
this.MCompModel.Init(service, module, comp, opt)
|
||||
this.module = module.(*Parkour)
|
||||
return
|
||||
}
|
||||
|
||||
//记录战斗信息
|
||||
func (this *ModelRaceComp) addrace(race *pb.DBRace) (err error) {
|
||||
if err = this.AddList("", race.Id, race, db.SetDBMgoLog(false)); err != nil {
|
||||
this.module.Errorln(err)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
//移除战斗记录
|
||||
func (this *ModelRaceComp) delrace(id string) (err error) {
|
||||
if err = this.DelListlds("", []string{id}, db.SetDBMgoLog(false)); err != nil {
|
||||
this.module.Errorln(err)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
//查询用户重置数据
|
||||
func (this *ModelRaceComp) queryraces() (result []*pb.DBRace, err error) {
|
||||
result = make([]*pb.DBRace, 0)
|
||||
if err = this.GetList("", &result); err != nil && err != mgo.MongodbNil {
|
||||
this.module.Errorf("err:%v", err)
|
||||
}
|
||||
if err == mgo.MongodbNil {
|
||||
err = nil
|
||||
}
|
||||
return
|
||||
}
|
@ -43,7 +43,6 @@ type Parkour struct {
|
||||
matchrank *matchrankComp
|
||||
configure *configureComp
|
||||
parkourComp *ModelParkourComp
|
||||
raceComp *ModelRaceComp
|
||||
lock sync.RWMutex
|
||||
battles map[string]*RaceItem
|
||||
}
|
||||
@ -87,11 +86,10 @@ func (this *Parkour) OnInstallComp() {
|
||||
this.matchrank = this.RegisterComp(new(matchrankComp)).(*matchrankComp)
|
||||
this.configure = this.RegisterComp(new(configureComp)).(*configureComp)
|
||||
this.parkourComp = this.RegisterComp(new(ModelParkourComp)).(*ModelParkourComp)
|
||||
this.raceComp = this.RegisterComp(new(ModelRaceComp)).(*ModelRaceComp)
|
||||
}
|
||||
|
||||
// 匹配成功 创建战斗
|
||||
func (this *Parkour) createbattle(red []*pb.DBRaceMember, bule []*pb.DBRaceMember) (err error) {
|
||||
func (this *Parkour) createbattle(rtype pb.RaceType, red []*pb.DBRaceMember, bule []*pb.DBRaceMember) (err error) {
|
||||
var (
|
||||
race *pb.DBRace
|
||||
battle *RaceItem
|
||||
@ -106,6 +104,7 @@ func (this *Parkour) createbattle(red []*pb.DBRaceMember, bule []*pb.DBRaceMembe
|
||||
}
|
||||
battle = &RaceItem{
|
||||
Id: race.Id,
|
||||
Rtype: rtype,
|
||||
Session: make(map[string]comm.IUserSession),
|
||||
}
|
||||
|
||||
@ -117,6 +116,15 @@ func (this *Parkour) createbattle(red []*pb.DBRaceMember, bule []*pb.DBRaceMembe
|
||||
if online {
|
||||
battle.Session[v.User.Uid] = session
|
||||
}
|
||||
if err = this.parkourComp.Change(v.User.Uid, map[string]interface{}{
|
||||
"state": pb.RaceTeamState_raceing,
|
||||
"rtype": rtype,
|
||||
"roomid": battle.Id,
|
||||
"roompath": race.ServicePath,
|
||||
}); err != nil {
|
||||
this.Errorln(err)
|
||||
return
|
||||
}
|
||||
} else {
|
||||
v.Ready = true
|
||||
}
|
||||
@ -141,9 +149,6 @@ func (this *Parkour) createbattle(red []*pb.DBRaceMember, bule []*pb.DBRaceMembe
|
||||
sessions = append(sessions, v)
|
||||
}
|
||||
|
||||
if err = this.raceComp.addrace(race); err != nil {
|
||||
return
|
||||
}
|
||||
this.lock.Lock()
|
||||
this.battles[race.Id] = battle
|
||||
this.lock.Unlock()
|
||||
@ -450,13 +455,14 @@ func (this *Parkour) recoverhp(id string, uid string, hp int32) {
|
||||
|
||||
// 战斗结束
|
||||
func (this *Parkour) overtimer(task *timewheel.Task, args ...interface{}) {
|
||||
this.Debug("shot", log.Field{Key: "id", Value: args})
|
||||
this.Debug("overtimer", log.Field{Key: "id", Value: args})
|
||||
var (
|
||||
battle *RaceItem
|
||||
ok bool
|
||||
side int32
|
||||
sessions []comm.IUserSession = make([]comm.IUserSession, 0)
|
||||
conf *cfg.GameQualifyingData
|
||||
lvconf *cfg.GameBuzkashiLvData
|
||||
awards map[string][]*cfg.Gameatn = make(map[string][]*cfg.Gameatn)
|
||||
award map[string][]*pb.UserAtno = make(map[string][]*pb.UserAtno)
|
||||
errdata *pb.ErrorData
|
||||
@ -470,7 +476,6 @@ func (this *Parkour) overtimer(task *timewheel.Task, args ...interface{}) {
|
||||
this.lock.Lock()
|
||||
delete(this.battles, id)
|
||||
this.lock.Unlock()
|
||||
this.raceComp.delrace(id)
|
||||
this.ai.removeAi(id)
|
||||
if battle.RedScore > battle.BuleScore {
|
||||
side = 1
|
||||
@ -480,6 +485,12 @@ func (this *Parkour) overtimer(task *timewheel.Task, args ...interface{}) {
|
||||
return
|
||||
}
|
||||
v.Integral += conf.WinValue
|
||||
if lvconf, err = this.configure.getGameBuzkashiLv(v.Scores); err != nil {
|
||||
this.Errorln(err)
|
||||
return
|
||||
}
|
||||
v.Rating = lvconf.Num
|
||||
v.Weekintegral += lvconf.Point
|
||||
if !v.Isai {
|
||||
if battle.Rtype == pb.RaceType_ordinary {
|
||||
awards[v.User.Uid] = conf.MatewinReward
|
||||
@ -495,6 +506,12 @@ func (this *Parkour) overtimer(task *timewheel.Task, args ...interface{}) {
|
||||
return
|
||||
}
|
||||
v.Integral += conf.FailValue
|
||||
if lvconf, err = this.configure.getGameBuzkashiLv(v.Scores); err != nil {
|
||||
this.Errorln(err)
|
||||
return
|
||||
}
|
||||
v.Rating = lvconf.Num
|
||||
v.Weekintegral += lvconf.Point
|
||||
if !v.Isai {
|
||||
if battle.Rtype == pb.RaceType_ordinary {
|
||||
awards[v.User.Uid] = conf.MatefailReward
|
||||
@ -511,6 +528,12 @@ func (this *Parkour) overtimer(task *timewheel.Task, args ...interface{}) {
|
||||
return
|
||||
}
|
||||
v.Integral += conf.FailValue
|
||||
if lvconf, err = this.configure.getGameBuzkashiLv(v.Scores); err != nil {
|
||||
this.Errorln(err)
|
||||
return
|
||||
}
|
||||
v.Rating = lvconf.Num
|
||||
v.Weekintegral += lvconf.Point
|
||||
if !v.Isai {
|
||||
if battle.Rtype == pb.RaceType_ordinary {
|
||||
awards[v.User.Uid] = conf.MatefailReward
|
||||
@ -518,7 +541,6 @@ func (this *Parkour) overtimer(task *timewheel.Task, args ...interface{}) {
|
||||
awards[v.User.Uid] = conf.RankfailReward
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
for _, v := range battle.BuleMember {
|
||||
if conf, err = this.configure.getActiveRewardById(v.Dan); err != nil {
|
||||
@ -526,6 +548,12 @@ func (this *Parkour) overtimer(task *timewheel.Task, args ...interface{}) {
|
||||
return
|
||||
}
|
||||
v.Integral += conf.WinValue
|
||||
if lvconf, err = this.configure.getGameBuzkashiLv(v.Scores); err != nil {
|
||||
this.Errorln(err)
|
||||
return
|
||||
}
|
||||
v.Rating = lvconf.Num
|
||||
v.Weekintegral += lvconf.Point
|
||||
if !v.Isai {
|
||||
if battle.Rtype == pb.RaceType_ordinary {
|
||||
awards[v.User.Uid] = conf.MatewinReward
|
||||
@ -555,11 +583,11 @@ func (this *Parkour) overtimer(task *timewheel.Task, args ...interface{}) {
|
||||
for _, v := range battle.RedMember {
|
||||
if !v.Isai {
|
||||
if err = this.parkourComp.Change(v.User.Uid, map[string]interface{}{
|
||||
"integral": v.Integral,
|
||||
"captainid": "",
|
||||
"state": 0,
|
||||
"invite": []*pb.DBRaceInvite{},
|
||||
"member": []*pb.DBRaceMember{},
|
||||
"integral": v.Integral,
|
||||
"weekintegral": v.Weekintegral,
|
||||
"state": 0,
|
||||
"roomid": "",
|
||||
"roompath": "",
|
||||
}); err != nil {
|
||||
this.Errorln(err)
|
||||
return
|
||||
@ -569,11 +597,11 @@ func (this *Parkour) overtimer(task *timewheel.Task, args ...interface{}) {
|
||||
for _, v := range battle.BuleMember {
|
||||
if !v.Isai {
|
||||
if err = this.parkourComp.Change(v.User.Uid, map[string]interface{}{
|
||||
"integral": v.Integral,
|
||||
"captainid": "",
|
||||
"state": 0,
|
||||
"invite": []*pb.DBRaceInvite{},
|
||||
"member": []*pb.DBRaceMember{},
|
||||
"integral": v.Integral,
|
||||
"weekintegral": v.Weekintegral,
|
||||
"state": 0,
|
||||
"roomid": "",
|
||||
"roompath": "",
|
||||
}); err != nil {
|
||||
this.Errorln(err)
|
||||
return
|
||||
@ -591,130 +619,42 @@ func (this *Parkour) overtimer(task *timewheel.Task, args ...interface{}) {
|
||||
// 用户离线处理
|
||||
func (this *Parkour) useroffline(uid, sessionid string) {
|
||||
var (
|
||||
info *pb.DBParkour
|
||||
users []string
|
||||
err error
|
||||
info *pb.DBParkour
|
||||
err error
|
||||
)
|
||||
if info, err = this.parkourComp.queryinfo(uid); err != nil {
|
||||
this.Error("用户离线!", log.Field{Key: "err", Value: err.Error()})
|
||||
return
|
||||
}
|
||||
if info.State == pb.RaceTeamState_teaming {
|
||||
if info.Captainid == uid {
|
||||
users = make([]string, 0)
|
||||
for _, v := range info.Member {
|
||||
if v.User.Uid != uid && !v.Isai {
|
||||
users = append(users, v.User.Uid)
|
||||
if err = this.parkourComp.Change(v.User.Uid, map[string]interface{}{
|
||||
"captainid": "",
|
||||
"state": 0,
|
||||
}); err != nil {
|
||||
this.Error("用户离线! 解散队伍处理", log.Field{Key: "uid", Value: v.User.Uid}, log.Field{Key: "err", Value: err.Error()})
|
||||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
info.Invite = info.Invite[:0]
|
||||
info.Member = info.Member[:0]
|
||||
if err = this.parkourComp.Change(uid, map[string]interface{}{
|
||||
"captainid": "",
|
||||
"state": 0,
|
||||
"Invite": info.Invite,
|
||||
"member": info.Member,
|
||||
}); err != nil {
|
||||
this.Error("用户离线! 处理数据", log.Field{Key: "uid", Value: uid}, log.Field{Key: "err", Value: err.Error()})
|
||||
return
|
||||
}
|
||||
if info.State == pb.RaceTeamState_matching {
|
||||
if info.Rtype == pb.RaceType_ordinary {
|
||||
this.matchTrain.CancelMatch(uid)
|
||||
} else {
|
||||
|
||||
this.matchrank.CancelMatch(uid)
|
||||
}
|
||||
} else if info.State == pb.RaceTeamState_matching {
|
||||
if info.Captainid == uid {
|
||||
if info.Rtype == pb.RaceType_ordinary {
|
||||
this.matchTrain.CancelMatch(info.Currbattid)
|
||||
} else {
|
||||
this.matchrank.CancelMatch(info.Currbattid)
|
||||
}
|
||||
if err = this.parkourComp.Change(uid, map[string]interface{}{
|
||||
"captainid": "",
|
||||
"state": 0,
|
||||
"Invite": info.Invite,
|
||||
"member": info.Member,
|
||||
}); err != nil {
|
||||
this.Error("用户离线! 处理数据", log.Field{Key: "uid", Value: uid}, log.Field{Key: "err", Value: err.Error()})
|
||||
return
|
||||
}
|
||||
users = make([]string, 0)
|
||||
for _, v := range info.Member {
|
||||
if v.User.Uid != uid && !v.Isai {
|
||||
users = append(users, v.User.Uid)
|
||||
if err = this.parkourComp.Change(v.User.Uid, map[string]interface{}{
|
||||
"captainid": "",
|
||||
"state": 0,
|
||||
}); err != nil {
|
||||
this.Error("用户离线! 解散队伍处理", log.Field{Key: "uid", Value: v.User.Uid}, log.Field{Key: "err", Value: err.Error()})
|
||||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
// if len(users) > 0 {
|
||||
// if err = this.SendMsgToUsers(string(comm.ModulePvp), "teamdisbandnotice", &pb.ParkourTeamDisbandNoticePush{}, users...); err != nil {
|
||||
// this.Errorln(err)
|
||||
// }
|
||||
// }
|
||||
if err = this.parkourComp.Change(uid, map[string]interface{}{
|
||||
"state": 0,
|
||||
}); err != nil {
|
||||
this.Error("用户离线! 处理数据", log.Field{Key: "uid", Value: uid}, log.Field{Key: "err", Value: err.Error()})
|
||||
return
|
||||
}
|
||||
} else if info.State == pb.RaceTeamState_raceing {
|
||||
var (
|
||||
lockpath string = fmt.Sprintf("%s/%s", this.service.GetType(), this.service.GetId())
|
||||
result []*pb.DBRace
|
||||
)
|
||||
if result, err = this.raceComp.queryraces(); err != nil {
|
||||
this.Errorln(err)
|
||||
return
|
||||
}
|
||||
for _, v := range result {
|
||||
for _, v1 := range v.Redmember {
|
||||
if !v1.Isai && v1.User.Uid == uid {
|
||||
if lockpath == v.ServicePath {
|
||||
this.trusteeship(context.Background(), &pb.RPC_ParkourTrusteeshipReq{Battleid: v.Id, Uid: uid}, nil)
|
||||
return
|
||||
} else {
|
||||
ctx, _ := context.WithTimeout(context.Background(), time.Second*5)
|
||||
_, err = this.service.RpcGo(
|
||||
ctx,
|
||||
v.ServicePath,
|
||||
string(comm.RPC_ParkourTrusteeship),
|
||||
&pb.RPC_ParkourTrusteeshipReq{Battleid: v.Id, Uid: uid},
|
||||
nil)
|
||||
if err != nil {
|
||||
this.Errorln(err)
|
||||
return
|
||||
}
|
||||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
for _, v1 := range v.Bulemember {
|
||||
if !v1.Isai && v1.User.Uid == uid {
|
||||
if lockpath == v.ServicePath {
|
||||
this.trusteeship(context.Background(), &pb.RPC_ParkourTrusteeshipReq{Battleid: v.Id, Uid: uid}, nil)
|
||||
return
|
||||
} else {
|
||||
ctx, _ := context.WithTimeout(context.Background(), time.Second*5)
|
||||
_, err = this.service.RpcGo(
|
||||
ctx,
|
||||
v.ServicePath,
|
||||
string(comm.RPC_ParkourTrusteeship),
|
||||
&pb.RPC_ParkourTrusteeshipReq{Battleid: v.Id, Uid: uid},
|
||||
nil)
|
||||
if err != nil {
|
||||
this.Errorln(err)
|
||||
return
|
||||
}
|
||||
return
|
||||
}
|
||||
}
|
||||
if lockpath != info.Roompath { //在当前房间下
|
||||
_, err = this.service.RpcGo(
|
||||
context.Background(),
|
||||
info.Roompath,
|
||||
string(comm.RPC_ParkourTrusteeship),
|
||||
&pb.RPC_ParkourTrusteeshipReq{Battleid: info.Roomid, Uid: uid},
|
||||
nil)
|
||||
if err != nil {
|
||||
this.Errorln(err)
|
||||
return
|
||||
}
|
||||
} else {
|
||||
this.trusteeship(context.Background(), &pb.RPC_ParkourTrusteeshipReq{Battleid: info.Roomid, Uid: uid}, nil)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -125,20 +125,22 @@ type DBRaceMember struct {
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
User *BaseUserInfo `protobuf:"bytes,1,opt,name=user,proto3" json:"user"` //发起者信息
|
||||
Dan int32 `protobuf:"varint,2,opt,name=dan,proto3" json:"dan"` //段位
|
||||
Integral int32 `protobuf:"varint,3,opt,name=integral,proto3" json:"integral"` //积分
|
||||
Mlv int32 `protobuf:"varint,4,opt,name=mlv,proto3" json:"mlv"` //坐骑等级
|
||||
Mount string `protobuf:"bytes,5,opt,name=mount,proto3" json:"mount"` //上阵坐骑
|
||||
Property map[string]int32 `protobuf:"bytes,6,rep,name=property,proto3" json:"property" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` //坐骑属性
|
||||
Currhp int32 `protobuf:"varint,7,opt,name=currhp,proto3" json:"currhp"` //当前血量
|
||||
Ready bool `protobuf:"varint,8,opt,name=ready,proto3" json:"ready"` //是否准备
|
||||
Isai bool `protobuf:"varint,9,opt,name=isai,proto3" json:"isai"` //是否是ai
|
||||
Isoff bool `protobuf:"varint,10,opt,name=isoff,proto3" json:"isoff"` //是否离线
|
||||
Scores int32 `protobuf:"varint,11,opt,name=scores,proto3" json:"scores"` //当前分数
|
||||
Energy int32 `protobuf:"varint,12,opt,name=energy,proto3" json:"energy"` //当前能量
|
||||
Dodge int32 `protobuf:"varint,13,opt,name=dodge,proto3" json:"dodge"` //闪避次数
|
||||
Shot int32 `protobuf:"varint,14,opt,name=shot,proto3" json:"shot"` //射门次数
|
||||
User *BaseUserInfo `protobuf:"bytes,1,opt,name=user,proto3" json:"user"` //发起者信息
|
||||
Dan int32 `protobuf:"varint,2,opt,name=dan,proto3" json:"dan"` //段位
|
||||
Integral int32 `protobuf:"varint,3,opt,name=integral,proto3" json:"integral"` //积分
|
||||
Mlv int32 `protobuf:"varint,4,opt,name=mlv,proto3" json:"mlv"` //坐骑等级
|
||||
Mount string `protobuf:"bytes,5,opt,name=mount,proto3" json:"mount"` //上阵坐骑
|
||||
Property map[string]int32 `protobuf:"bytes,6,rep,name=property,proto3" json:"property" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` //坐骑属性
|
||||
Currhp int32 `protobuf:"varint,7,opt,name=currhp,proto3" json:"currhp"` //当前血量
|
||||
Ready bool `protobuf:"varint,8,opt,name=ready,proto3" json:"ready"` //是否准备
|
||||
Isai bool `protobuf:"varint,9,opt,name=isai,proto3" json:"isai"` //是否是ai
|
||||
Isoff bool `protobuf:"varint,10,opt,name=isoff,proto3" json:"isoff"` //是否离线
|
||||
Scores int32 `protobuf:"varint,11,opt,name=scores,proto3" json:"scores"` //当前分数
|
||||
Energy int32 `protobuf:"varint,12,opt,name=energy,proto3" json:"energy"` //当前能量
|
||||
Dodge int32 `protobuf:"varint,13,opt,name=dodge,proto3" json:"dodge"` //闪避次数
|
||||
Shot int32 `protobuf:"varint,14,opt,name=shot,proto3" json:"shot"` //射门次数
|
||||
Weekintegral int32 `protobuf:"varint,15,opt,name=weekintegral,proto3" json:"weekintegral"` //周积分
|
||||
Rating int32 `protobuf:"varint,16,opt,name=rating,proto3" json:"rating"` //评级
|
||||
}
|
||||
|
||||
func (x *DBRaceMember) Reset() {
|
||||
@ -271,6 +273,20 @@ func (x *DBRaceMember) GetShot() int32 {
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *DBRaceMember) GetWeekintegral() int32 {
|
||||
if x != nil {
|
||||
return x.Weekintegral
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *DBRaceMember) GetRating() int32 {
|
||||
if x != nil {
|
||||
return x.Rating
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type DBRaceInvite struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
@ -365,14 +381,12 @@ type DBParkour struct {
|
||||
Property map[string]int32 `protobuf:"bytes,7,rep,name=property,proto3" json:"property" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` //坐骑属性
|
||||
State RaceTeamState `protobuf:"varint,8,opt,name=state,proto3,enum=RaceTeamState" json:"state"` //队伍状态
|
||||
Rtype RaceType `protobuf:"varint,9,opt,name=rtype,proto3,enum=RaceType" json:"rtype"` //比赛模式
|
||||
Currbattid string `protobuf:"bytes,10,opt,name=currbattid,proto3" json:"currbattid"` //当前战斗id
|
||||
Integral int32 `protobuf:"varint,11,opt,name=integral,proto3" json:"integral"` //积分
|
||||
Captainid string `protobuf:"bytes,12,opt,name=captainid,proto3" json:"captainid"` //队长id 当前所在队伍
|
||||
Invite []*DBRaceInvite `protobuf:"bytes,13,rep,name=invite,proto3" json:"invite"` //邀请列表
|
||||
Member []*DBRaceMember `protobuf:"bytes,14,rep,name=member,proto3" json:"member"` //成员列表
|
||||
Weektime int64 `protobuf:"varint,15,opt,name=weektime,proto3" json:"weektime"` //周积分重置使用
|
||||
Weekreward map[int32]bool `protobuf:"bytes,16,rep,name=weekreward,proto3" json:"weekreward" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` //周长奖励领取
|
||||
Weekintegral int32 `protobuf:"varint,17,opt,name=weekintegral,proto3" json:"weekintegral"` //周积分
|
||||
Roomid string `protobuf:"bytes,10,opt,name=roomid,proto3" json:"roomid"` //当前战斗id
|
||||
Roompath string `protobuf:"bytes,11,opt,name=roompath,proto3" json:"roompath"` //房间地址
|
||||
Integral int32 `protobuf:"varint,12,opt,name=integral,proto3" json:"integral"` //积分
|
||||
Weektime int64 `protobuf:"varint,13,opt,name=weektime,proto3" json:"weektime"` //周积分重置使用
|
||||
Weekreward map[int32]bool `protobuf:"bytes,14,rep,name=weekreward,proto3" json:"weekreward" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` //周长奖励领取
|
||||
Weekintegral int32 `protobuf:"varint,15,opt,name=weekintegral,proto3" json:"weekintegral"` //周积分
|
||||
}
|
||||
|
||||
func (x *DBParkour) Reset() {
|
||||
@ -470,9 +484,16 @@ func (x *DBParkour) GetRtype() RaceType {
|
||||
return RaceType_ordinary
|
||||
}
|
||||
|
||||
func (x *DBParkour) GetCurrbattid() string {
|
||||
func (x *DBParkour) GetRoomid() string {
|
||||
if x != nil {
|
||||
return x.Currbattid
|
||||
return x.Roomid
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *DBParkour) GetRoompath() string {
|
||||
if x != nil {
|
||||
return x.Roompath
|
||||
}
|
||||
return ""
|
||||
}
|
||||
@ -484,27 +505,6 @@ func (x *DBParkour) GetIntegral() int32 {
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *DBParkour) GetCaptainid() string {
|
||||
if x != nil {
|
||||
return x.Captainid
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *DBParkour) GetInvite() []*DBRaceInvite {
|
||||
if x != nil {
|
||||
return x.Invite
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *DBParkour) GetMember() []*DBRaceMember {
|
||||
if x != nil {
|
||||
return x.Member
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *DBParkour) GetWeektime() int64 {
|
||||
if x != nil {
|
||||
return x.Weektime
|
||||
@ -644,12 +644,13 @@ type DBMatchPlayer struct {
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Suser *BaseUserInfo `protobuf:"bytes,1,opt,name=suser,proto3" json:"suser"` //发起者信息
|
||||
Dan int32 `protobuf:"varint,2,opt,name=dan,proto3" json:"dan"` //段位
|
||||
Integral int32 `protobuf:"varint,4,opt,name=integral,proto3" json:"integral"` //积分
|
||||
Mount string `protobuf:"bytes,5,opt,name=mount,proto3" json:"mount"` //上阵坐骑
|
||||
Property map[string]int32 `protobuf:"bytes,6,rep,name=property,proto3" json:"property" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` //坐骑属性
|
||||
Mlv int32 `protobuf:"varint,7,opt,name=mlv,proto3" json:"mlv"` //坐骑等级
|
||||
Suser *BaseUserInfo `protobuf:"bytes,1,opt,name=suser,proto3" json:"suser"` //发起者信息
|
||||
Dan int32 `protobuf:"varint,2,opt,name=dan,proto3" json:"dan"` //段位
|
||||
Integral int32 `protobuf:"varint,4,opt,name=integral,proto3" json:"integral"` //积分
|
||||
Weekintegral int32 `protobuf:"varint,5,opt,name=weekintegral,proto3" json:"weekintegral"` //周积分
|
||||
Mount string `protobuf:"bytes,6,opt,name=mount,proto3" json:"mount"` //上阵坐骑
|
||||
Property map[string]int32 `protobuf:"bytes,7,rep,name=property,proto3" json:"property" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` //坐骑属性
|
||||
Mlv int32 `protobuf:"varint,8,opt,name=mlv,proto3" json:"mlv"` //坐骑等级
|
||||
}
|
||||
|
||||
func (x *DBMatchPlayer) Reset() {
|
||||
@ -705,6 +706,13 @@ func (x *DBMatchPlayer) GetIntegral() int32 {
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *DBMatchPlayer) GetWeekintegral() int32 {
|
||||
if x != nil {
|
||||
return x.Weekintegral
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *DBMatchPlayer) GetMount() string {
|
||||
if x != nil {
|
||||
return x.Mount
|
||||
@ -731,7 +739,7 @@ var File_parkour_parkour_db_proto protoreflect.FileDescriptor
|
||||
var file_parkour_parkour_db_proto_rawDesc = []byte{
|
||||
0x0a, 0x18, 0x70, 0x61, 0x72, 0x6b, 0x6f, 0x75, 0x72, 0x2f, 0x70, 0x61, 0x72, 0x6b, 0x6f, 0x75,
|
||||
0x72, 0x5f, 0x64, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0a, 0x63, 0x6f, 0x6d, 0x6d,
|
||||
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xaf, 0x03, 0x0a, 0x0c, 0x44, 0x42, 0x52, 0x61, 0x63,
|
||||
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xeb, 0x03, 0x0a, 0x0c, 0x44, 0x42, 0x52, 0x61, 0x63,
|
||||
0x65, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x21, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18,
|
||||
0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x42, 0x61, 0x73, 0x65, 0x55, 0x73, 0x65, 0x72,
|
||||
0x49, 0x6e, 0x66, 0x6f, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x10, 0x0a, 0x03, 0x64, 0x61,
|
||||
@ -754,104 +762,105 @@ var file_parkour_parkour_db_proto_rawDesc = []byte{
|
||||
0x72, 0x67, 0x79, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x65, 0x6e, 0x65, 0x72, 0x67,
|
||||
0x79, 0x12, 0x14, 0x0a, 0x05, 0x64, 0x6f, 0x64, 0x67, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x05,
|
||||
0x52, 0x05, 0x64, 0x6f, 0x64, 0x67, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x68, 0x6f, 0x74, 0x18,
|
||||
0x0e, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x73, 0x68, 0x6f, 0x74, 0x1a, 0x3b, 0x0a, 0x0d, 0x50,
|
||||
0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03,
|
||||
0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14,
|
||||
0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x76,
|
||||
0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x76, 0x0a, 0x0c, 0x44, 0x42, 0x52, 0x61,
|
||||
0x63, 0x65, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18,
|
||||
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, 0x16,
|
||||
0x0a, 0x06, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06,
|
||||
0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x6c, 0x76, 0x18, 0x04, 0x20, 0x01,
|
||||
0x28, 0x05, 0x52, 0x02, 0x6c, 0x76, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65,
|
||||
0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x64,
|
||||
0x22, 0xad, 0x05, 0x0a, 0x09, 0x44, 0x42, 0x50, 0x61, 0x72, 0x6b, 0x6f, 0x75, 0x72, 0x12, 0x0e,
|
||||
0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x21,
|
||||
0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x42,
|
||||
0x61, 0x73, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x04, 0x75, 0x73, 0x65,
|
||||
0x72, 0x12, 0x10, 0x0a, 0x03, 0x64, 0x61, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03,
|
||||
0x64, 0x61, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x65, 0x66, 0x6d, 0x74, 0x73, 0x18, 0x04, 0x20,
|
||||
0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x65, 0x66, 0x6d, 0x74, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x6d,
|
||||
0x6c, 0x76, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x6d, 0x6c, 0x76, 0x12, 0x14, 0x0a,
|
||||
0x05, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6d, 0x6f,
|
||||
0x75, 0x6e, 0x74, 0x12, 0x34, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x18,
|
||||
0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x44, 0x42, 0x50, 0x61, 0x72, 0x6b, 0x6f, 0x75,
|
||||
0x72, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52,
|
||||
0x08, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x12, 0x24, 0x0a, 0x05, 0x73, 0x74, 0x61,
|
||||
0x74, 0x65, 0x18, 0x08, 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,
|
||||
0x1f, 0x0a, 0x05, 0x72, 0x74, 0x79, 0x70, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x09,
|
||||
0x2e, 0x52, 0x61, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x05, 0x72, 0x74, 0x79, 0x70, 0x65,
|
||||
0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x75, 0x72, 0x72, 0x62, 0x61, 0x74, 0x74, 0x69, 0x64, 0x18, 0x0a,
|
||||
0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x75, 0x72, 0x72, 0x62, 0x61, 0x74, 0x74, 0x69, 0x64,
|
||||
0x12, 0x1a, 0x0a, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x6c, 0x18, 0x0b, 0x20, 0x01,
|
||||
0x28, 0x05, 0x52, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x6c, 0x12, 0x1c, 0x0a, 0x09,
|
||||
0x63, 0x61, 0x70, 0x74, 0x61, 0x69, 0x6e, 0x69, 0x64, 0x18, 0x0c, 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, 0x0d, 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, 0x0e, 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, 0x12, 0x1a, 0x0a, 0x08, 0x77, 0x65, 0x65, 0x6b,
|
||||
0x74, 0x69, 0x6d, 0x65, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x77, 0x65, 0x65, 0x6b,
|
||||
0x74, 0x69, 0x6d, 0x65, 0x12, 0x3a, 0x0a, 0x0a, 0x77, 0x65, 0x65, 0x6b, 0x72, 0x65, 0x77, 0x61,
|
||||
0x72, 0x64, 0x18, 0x10, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x44, 0x42, 0x50, 0x61, 0x72,
|
||||
0x6b, 0x6f, 0x75, 0x72, 0x2e, 0x57, 0x65, 0x65, 0x6b, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x45,
|
||||
0x6e, 0x74, 0x72, 0x79, 0x52, 0x0a, 0x77, 0x65, 0x65, 0x6b, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64,
|
||||
0x12, 0x22, 0x0a, 0x0c, 0x77, 0x65, 0x65, 0x6b, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x6c,
|
||||
0x18, 0x11, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0c, 0x77, 0x65, 0x65, 0x6b, 0x69, 0x6e, 0x74, 0x65,
|
||||
0x67, 0x72, 0x61, 0x6c, 0x1a, 0x3b, 0x0a, 0x0d, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79,
|
||||
0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01,
|
||||
0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
|
||||
0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38,
|
||||
0x01, 0x1a, 0x3d, 0x0a, 0x0f, 0x57, 0x65, 0x65, 0x6b, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x45,
|
||||
0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28,
|
||||
0x05, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18,
|
||||
0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01,
|
||||
0x22, 0xad, 0x02, 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, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x64, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x73,
|
||||
0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x72, 0x65, 0x64, 0x73, 0x63, 0x6f, 0x72, 0x65,
|
||||
0x73, 0x12, 0x2d, 0x0a, 0x0a, 0x62, 0x75, 0x6c, 0x65, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x18,
|
||||
0x08, 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,
|
||||
0x12, 0x1e, 0x0a, 0x0a, 0x62, 0x75, 0x6c, 0x65, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x18, 0x09,
|
||||
0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x62, 0x75, 0x6c, 0x65, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x73,
|
||||
0x22, 0x81, 0x02, 0x0a, 0x0d, 0x44, 0x42, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x50, 0x6c, 0x61, 0x79,
|
||||
0x65, 0x72, 0x12, 0x23, 0x0a, 0x05, 0x73, 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28,
|
||||
0x0b, 0x32, 0x0d, 0x2e, 0x42, 0x61, 0x73, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f,
|
||||
0x52, 0x05, 0x73, 0x75, 0x73, 0x65, 0x72, 0x12, 0x10, 0x0a, 0x03, 0x64, 0x61, 0x6e, 0x18, 0x02,
|
||||
0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x64, 0x61, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x6e, 0x74,
|
||||
0x65, 0x67, 0x72, 0x61, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x69, 0x6e, 0x74,
|
||||
0x65, 0x67, 0x72, 0x61, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x05,
|
||||
0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x38, 0x0a, 0x08, 0x70,
|
||||
0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e,
|
||||
0x44, 0x42, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, 0x50, 0x72,
|
||||
0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x70, 0x72, 0x6f,
|
||||
0x70, 0x65, 0x72, 0x74, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x6c, 0x76, 0x18, 0x07, 0x20, 0x01,
|
||||
0x28, 0x05, 0x52, 0x03, 0x6d, 0x6c, 0x76, 0x1a, 0x3b, 0x0a, 0x0d, 0x50, 0x72, 0x6f, 0x70, 0x65,
|
||||
0x0e, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x73, 0x68, 0x6f, 0x74, 0x12, 0x22, 0x0a, 0x0c, 0x77,
|
||||
0x65, 0x65, 0x6b, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x6c, 0x18, 0x0f, 0x20, 0x01, 0x28,
|
||||
0x05, 0x52, 0x0c, 0x77, 0x65, 0x65, 0x6b, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x6c, 0x12,
|
||||
0x16, 0x0a, 0x06, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x18, 0x10, 0x20, 0x01, 0x28, 0x05, 0x52,
|
||||
0x06, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x1a, 0x3b, 0x0a, 0x0d, 0x50, 0x72, 0x6f, 0x70, 0x65,
|
||||
0x72, 0x74, 0x79, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18,
|
||||
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61,
|
||||
0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
|
||||
0x3a, 0x02, 0x38, 0x01, 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, 0x44, 0x0a, 0x0d, 0x52, 0x61, 0x63, 0x65,
|
||||
0x54, 0x65, 0x61, 0x6d, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x72, 0x65, 0x73,
|
||||
0x74, 0x69, 0x6e, 0x67, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x74, 0x65, 0x61, 0x6d, 0x69, 0x6e,
|
||||
0x67, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x10,
|
||||
0x02, 0x12, 0x0b, 0x0a, 0x07, 0x72, 0x61, 0x63, 0x65, 0x69, 0x6e, 0x67, 0x10, 0x03, 0x42, 0x06,
|
||||
0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
0x3a, 0x02, 0x38, 0x01, 0x22, 0x76, 0x0a, 0x0c, 0x44, 0x42, 0x52, 0x61, 0x63, 0x65, 0x49, 0x6e,
|
||||
0x76, 0x69, 0x74, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 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, 0x16, 0x0a, 0x06, 0x61, 0x76,
|
||||
0x61, 0x74, 0x61, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x76, 0x61, 0x74,
|
||||
0x61, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x6c, 0x76, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02,
|
||||
0x6c, 0x76, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x64, 0x18, 0x05, 0x20,
|
||||
0x01, 0x28, 0x03, 0x52, 0x07, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x64, 0x22, 0xd5, 0x04, 0x0a,
|
||||
0x09, 0x44, 0x42, 0x50, 0x61, 0x72, 0x6b, 0x6f, 0x75, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64,
|
||||
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x21, 0x0a, 0x04, 0x75, 0x73,
|
||||
0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x42, 0x61, 0x73, 0x65, 0x55,
|
||||
0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x10, 0x0a,
|
||||
0x03, 0x64, 0x61, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x64, 0x61, 0x6e, 0x12,
|
||||
0x16, 0x0a, 0x06, 0x64, 0x65, 0x66, 0x6d, 0x74, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52,
|
||||
0x06, 0x64, 0x65, 0x66, 0x6d, 0x74, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x6c, 0x76, 0x18, 0x05,
|
||||
0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x6d, 0x6c, 0x76, 0x12, 0x14, 0x0a, 0x05, 0x6d, 0x6f, 0x75,
|
||||
0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12,
|
||||
0x34, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x18, 0x07, 0x20, 0x03, 0x28,
|
||||
0x0b, 0x32, 0x18, 0x2e, 0x44, 0x42, 0x50, 0x61, 0x72, 0x6b, 0x6f, 0x75, 0x72, 0x2e, 0x50, 0x72,
|
||||
0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x70, 0x72, 0x6f,
|
||||
0x70, 0x65, 0x72, 0x74, 0x79, 0x12, 0x24, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x08,
|
||||
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, 0x1f, 0x0a, 0x05, 0x72,
|
||||
0x74, 0x79, 0x70, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x09, 0x2e, 0x52, 0x61, 0x63,
|
||||
0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x05, 0x72, 0x74, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06,
|
||||
0x72, 0x6f, 0x6f, 0x6d, 0x69, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x6f,
|
||||
0x6f, 0x6d, 0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x6f, 0x6f, 0x6d, 0x70, 0x61, 0x74, 0x68,
|
||||
0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, 0x6f, 0x6f, 0x6d, 0x70, 0x61, 0x74, 0x68,
|
||||
0x12, 0x1a, 0x0a, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x6c, 0x18, 0x0c, 0x20, 0x01,
|
||||
0x28, 0x05, 0x52, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x6c, 0x12, 0x1a, 0x0a, 0x08,
|
||||
0x77, 0x65, 0x65, 0x6b, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08,
|
||||
0x77, 0x65, 0x65, 0x6b, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x3a, 0x0a, 0x0a, 0x77, 0x65, 0x65, 0x6b,
|
||||
0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x18, 0x0e, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x44,
|
||||
0x42, 0x50, 0x61, 0x72, 0x6b, 0x6f, 0x75, 0x72, 0x2e, 0x57, 0x65, 0x65, 0x6b, 0x72, 0x65, 0x77,
|
||||
0x61, 0x72, 0x64, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0a, 0x77, 0x65, 0x65, 0x6b, 0x72, 0x65,
|
||||
0x77, 0x61, 0x72, 0x64, 0x12, 0x22, 0x0a, 0x0c, 0x77, 0x65, 0x65, 0x6b, 0x69, 0x6e, 0x74, 0x65,
|
||||
0x67, 0x72, 0x61, 0x6c, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0c, 0x77, 0x65, 0x65, 0x6b,
|
||||
0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x6c, 0x1a, 0x3b, 0x0a, 0x0d, 0x50, 0x72, 0x6f, 0x70,
|
||||
0x65, 0x72, 0x74, 0x79, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79,
|
||||
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76,
|
||||
0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75,
|
||||
0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x3d, 0x0a, 0x0f, 0x57, 0x65, 0x65, 0x6b, 0x72, 0x65, 0x77,
|
||||
0x61, 0x72, 0x64, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18,
|
||||
0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61,
|
||||
0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
|
||||
0x3a, 0x02, 0x38, 0x01, 0x22, 0xad, 0x02, 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, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x64, 0x73, 0x63,
|
||||
0x6f, 0x72, 0x65, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x72, 0x65, 0x64, 0x73,
|
||||
0x63, 0x6f, 0x72, 0x65, 0x73, 0x12, 0x2d, 0x0a, 0x0a, 0x62, 0x75, 0x6c, 0x65, 0x6d, 0x65, 0x6d,
|
||||
0x62, 0x65, 0x72, 0x18, 0x08, 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, 0x12, 0x1e, 0x0a, 0x0a, 0x62, 0x75, 0x6c, 0x65, 0x73, 0x63, 0x6f, 0x72,
|
||||
0x65, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x62, 0x75, 0x6c, 0x65, 0x73, 0x63,
|
||||
0x6f, 0x72, 0x65, 0x73, 0x22, 0xa5, 0x02, 0x0a, 0x0d, 0x44, 0x42, 0x4d, 0x61, 0x74, 0x63, 0x68,
|
||||
0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x12, 0x23, 0x0a, 0x05, 0x73, 0x75, 0x73, 0x65, 0x72, 0x18,
|
||||
0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x42, 0x61, 0x73, 0x65, 0x55, 0x73, 0x65, 0x72,
|
||||
0x49, 0x6e, 0x66, 0x6f, 0x52, 0x05, 0x73, 0x75, 0x73, 0x65, 0x72, 0x12, 0x10, 0x0a, 0x03, 0x64,
|
||||
0x61, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x64, 0x61, 0x6e, 0x12, 0x1a, 0x0a,
|
||||
0x08, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52,
|
||||
0x08, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x6c, 0x12, 0x22, 0x0a, 0x0c, 0x77, 0x65, 0x65,
|
||||
0x6b, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52,
|
||||
0x0c, 0x77, 0x65, 0x65, 0x6b, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x6c, 0x12, 0x14, 0x0a,
|
||||
0x05, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6d, 0x6f,
|
||||
0x75, 0x6e, 0x74, 0x12, 0x38, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x18,
|
||||
0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x44, 0x42, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x50,
|
||||
0x6c, 0x61, 0x79, 0x65, 0x72, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x45, 0x6e,
|
||||
0x74, 0x72, 0x79, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x12, 0x10, 0x0a,
|
||||
0x03, 0x6d, 0x6c, 0x76, 0x18, 0x08, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x6d, 0x6c, 0x76, 0x1a,
|
||||
0x3b, 0x0a, 0x0d, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x45, 0x6e, 0x74, 0x72, 0x79,
|
||||
0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b,
|
||||
0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
|
||||
0x05, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 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, 0x44, 0x0a, 0x0d, 0x52, 0x61, 0x63, 0x65, 0x54, 0x65, 0x61, 0x6d, 0x53, 0x74, 0x61, 0x74,
|
||||
0x65, 0x12, 0x0b, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x10, 0x00, 0x12, 0x0b,
|
||||
0x0a, 0x07, 0x74, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x6d,
|
||||
0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x72, 0x61, 0x63,
|
||||
0x65, 0x69, 0x6e, 0x67, 0x10, 0x03, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06,
|
||||
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
@ -889,19 +898,17 @@ var file_parkour_parkour_db_proto_depIdxs = []int32{
|
||||
8, // 3: DBParkour.property:type_name -> DBParkour.PropertyEntry
|
||||
1, // 4: DBParkour.state:type_name -> RaceTeamState
|
||||
0, // 5: DBParkour.rtype:type_name -> RaceType
|
||||
3, // 6: DBParkour.invite:type_name -> DBRaceInvite
|
||||
2, // 7: DBParkour.member:type_name -> DBRaceMember
|
||||
9, // 8: DBParkour.weekreward:type_name -> DBParkour.WeekrewardEntry
|
||||
0, // 9: DBRace.rtype:type_name -> RaceType
|
||||
2, // 10: DBRace.redmember:type_name -> DBRaceMember
|
||||
2, // 11: DBRace.bulemember:type_name -> DBRaceMember
|
||||
11, // 12: DBMatchPlayer.suser:type_name -> BaseUserInfo
|
||||
10, // 13: DBMatchPlayer.property:type_name -> DBMatchPlayer.PropertyEntry
|
||||
14, // [14:14] is the sub-list for method output_type
|
||||
14, // [14:14] is the sub-list for method input_type
|
||||
14, // [14:14] is the sub-list for extension type_name
|
||||
14, // [14:14] is the sub-list for extension extendee
|
||||
0, // [0:14] is the sub-list for field type_name
|
||||
9, // 6: DBParkour.weekreward:type_name -> DBParkour.WeekrewardEntry
|
||||
0, // 7: DBRace.rtype:type_name -> RaceType
|
||||
2, // 8: DBRace.redmember:type_name -> DBRaceMember
|
||||
2, // 9: DBRace.bulemember:type_name -> DBRaceMember
|
||||
11, // 10: DBMatchPlayer.suser:type_name -> BaseUserInfo
|
||||
10, // 11: DBMatchPlayer.property:type_name -> DBMatchPlayer.PropertyEntry
|
||||
12, // [12:12] is the sub-list for method output_type
|
||||
12, // [12:12] is the sub-list for method input_type
|
||||
12, // [12:12] is the sub-list for extension type_name
|
||||
12, // [12:12] is the sub-list for extension extendee
|
||||
0, // [0:12] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_parkour_parkour_db_proto_init() }
|
||||
|
@ -1492,17 +1492,17 @@ func (x *ParkourRaceOverPush) GetAward() []*UserAtno {
|
||||
return nil
|
||||
}
|
||||
|
||||
// 领取奖励
|
||||
type ParkourGetRewardReq struct {
|
||||
//周长奖励请求
|
||||
type ParkourWeekRewardReq struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Rid int32 `protobuf:"varint,1,opt,name=rid,proto3" json:"rid"` //领奖id
|
||||
Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id"`
|
||||
}
|
||||
|
||||
func (x *ParkourGetRewardReq) Reset() {
|
||||
*x = ParkourGetRewardReq{}
|
||||
func (x *ParkourWeekRewardReq) Reset() {
|
||||
*x = ParkourWeekRewardReq{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_parkour_parkour_msg_proto_msgTypes[28]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
@ -1510,13 +1510,13 @@ func (x *ParkourGetRewardReq) Reset() {
|
||||
}
|
||||
}
|
||||
|
||||
func (x *ParkourGetRewardReq) String() string {
|
||||
func (x *ParkourWeekRewardReq) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*ParkourGetRewardReq) ProtoMessage() {}
|
||||
func (*ParkourWeekRewardReq) ProtoMessage() {}
|
||||
|
||||
func (x *ParkourGetRewardReq) ProtoReflect() protoreflect.Message {
|
||||
func (x *ParkourWeekRewardReq) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_parkour_parkour_msg_proto_msgTypes[28]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
@ -1528,28 +1528,30 @@ func (x *ParkourGetRewardReq) ProtoReflect() protoreflect.Message {
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use ParkourGetRewardReq.ProtoReflect.Descriptor instead.
|
||||
func (*ParkourGetRewardReq) Descriptor() ([]byte, []int) {
|
||||
// Deprecated: Use ParkourWeekRewardReq.ProtoReflect.Descriptor instead.
|
||||
func (*ParkourWeekRewardReq) Descriptor() ([]byte, []int) {
|
||||
return file_parkour_parkour_msg_proto_rawDescGZIP(), []int{28}
|
||||
}
|
||||
|
||||
func (x *ParkourGetRewardReq) GetRid() int32 {
|
||||
func (x *ParkourWeekRewardReq) GetId() int32 {
|
||||
if x != nil {
|
||||
return x.Rid
|
||||
return x.Id
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type ParkourGetRewardResp struct {
|
||||
//周长奖励请求
|
||||
type ParkourWeekRewardResp struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Info *DBParkour `protobuf:"bytes,1,opt,name=info,proto3" json:"info"`
|
||||
Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id"`
|
||||
Award []*UserAtno `protobuf:"bytes,2,rep,name=award,proto3" json:"award"` //奖励
|
||||
}
|
||||
|
||||
func (x *ParkourGetRewardResp) Reset() {
|
||||
*x = ParkourGetRewardResp{}
|
||||
func (x *ParkourWeekRewardResp) Reset() {
|
||||
*x = ParkourWeekRewardResp{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_parkour_parkour_msg_proto_msgTypes[29]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
@ -1557,13 +1559,13 @@ func (x *ParkourGetRewardResp) Reset() {
|
||||
}
|
||||
}
|
||||
|
||||
func (x *ParkourGetRewardResp) String() string {
|
||||
func (x *ParkourWeekRewardResp) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*ParkourGetRewardResp) ProtoMessage() {}
|
||||
func (*ParkourWeekRewardResp) ProtoMessage() {}
|
||||
|
||||
func (x *ParkourGetRewardResp) ProtoReflect() protoreflect.Message {
|
||||
func (x *ParkourWeekRewardResp) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_parkour_parkour_msg_proto_msgTypes[29]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
@ -1575,14 +1577,116 @@ func (x *ParkourGetRewardResp) ProtoReflect() protoreflect.Message {
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use ParkourGetRewardResp.ProtoReflect.Descriptor instead.
|
||||
func (*ParkourGetRewardResp) Descriptor() ([]byte, []int) {
|
||||
// Deprecated: Use ParkourWeekRewardResp.ProtoReflect.Descriptor instead.
|
||||
func (*ParkourWeekRewardResp) Descriptor() ([]byte, []int) {
|
||||
return file_parkour_parkour_msg_proto_rawDescGZIP(), []int{29}
|
||||
}
|
||||
|
||||
func (x *ParkourGetRewardResp) GetInfo() *DBParkour {
|
||||
func (x *ParkourWeekRewardResp) GetId() int32 {
|
||||
if x != nil {
|
||||
return x.Info
|
||||
return x.Id
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *ParkourWeekRewardResp) GetAward() []*UserAtno {
|
||||
if x != nil {
|
||||
return x.Award
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
//周长奖励请求
|
||||
type ParkourAllWeekRewardReq struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
}
|
||||
|
||||
func (x *ParkourAllWeekRewardReq) Reset() {
|
||||
*x = ParkourAllWeekRewardReq{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_parkour_parkour_msg_proto_msgTypes[30]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *ParkourAllWeekRewardReq) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*ParkourAllWeekRewardReq) ProtoMessage() {}
|
||||
|
||||
func (x *ParkourAllWeekRewardReq) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_parkour_parkour_msg_proto_msgTypes[30]
|
||||
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 ParkourAllWeekRewardReq.ProtoReflect.Descriptor instead.
|
||||
func (*ParkourAllWeekRewardReq) Descriptor() ([]byte, []int) {
|
||||
return file_parkour_parkour_msg_proto_rawDescGZIP(), []int{30}
|
||||
}
|
||||
|
||||
//周长奖励请求
|
||||
type ParkourAllWeekRewardResp struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Weekreward map[int32]bool `protobuf:"bytes,1,rep,name=weekreward,proto3" json:"weekreward" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` //周长奖励领取
|
||||
Award []*UserAtno `protobuf:"bytes,2,rep,name=award,proto3" json:"award"` //奖励
|
||||
}
|
||||
|
||||
func (x *ParkourAllWeekRewardResp) Reset() {
|
||||
*x = ParkourAllWeekRewardResp{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_parkour_parkour_msg_proto_msgTypes[31]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *ParkourAllWeekRewardResp) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*ParkourAllWeekRewardResp) ProtoMessage() {}
|
||||
|
||||
func (x *ParkourAllWeekRewardResp) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_parkour_parkour_msg_proto_msgTypes[31]
|
||||
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 ParkourAllWeekRewardResp.ProtoReflect.Descriptor instead.
|
||||
func (*ParkourAllWeekRewardResp) Descriptor() ([]byte, []int) {
|
||||
return file_parkour_parkour_msg_proto_rawDescGZIP(), []int{31}
|
||||
}
|
||||
|
||||
func (x *ParkourAllWeekRewardResp) GetWeekreward() map[int32]bool {
|
||||
if x != nil {
|
||||
return x.Weekreward
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *ParkourAllWeekRewardResp) GetAward() []*UserAtno {
|
||||
if x != nil {
|
||||
return x.Award
|
||||
}
|
||||
return nil
|
||||
}
|
||||
@ -1602,7 +1706,7 @@ type RPCParkourJoinMatchReq struct {
|
||||
func (x *RPCParkourJoinMatchReq) Reset() {
|
||||
*x = RPCParkourJoinMatchReq{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_parkour_parkour_msg_proto_msgTypes[30]
|
||||
mi := &file_parkour_parkour_msg_proto_msgTypes[32]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@ -1615,7 +1719,7 @@ func (x *RPCParkourJoinMatchReq) String() string {
|
||||
func (*RPCParkourJoinMatchReq) ProtoMessage() {}
|
||||
|
||||
func (x *RPCParkourJoinMatchReq) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_parkour_parkour_msg_proto_msgTypes[30]
|
||||
mi := &file_parkour_parkour_msg_proto_msgTypes[32]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@ -1628,7 +1732,7 @@ func (x *RPCParkourJoinMatchReq) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use RPCParkourJoinMatchReq.ProtoReflect.Descriptor instead.
|
||||
func (*RPCParkourJoinMatchReq) Descriptor() ([]byte, []int) {
|
||||
return file_parkour_parkour_msg_proto_rawDescGZIP(), []int{30}
|
||||
return file_parkour_parkour_msg_proto_rawDescGZIP(), []int{32}
|
||||
}
|
||||
|
||||
func (x *RPCParkourJoinMatchReq) GetCaptainid() string {
|
||||
@ -1662,7 +1766,7 @@ type RPCParkourJoinMatchResp struct {
|
||||
func (x *RPCParkourJoinMatchResp) Reset() {
|
||||
*x = RPCParkourJoinMatchResp{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_parkour_parkour_msg_proto_msgTypes[31]
|
||||
mi := &file_parkour_parkour_msg_proto_msgTypes[33]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@ -1675,7 +1779,7 @@ func (x *RPCParkourJoinMatchResp) String() string {
|
||||
func (*RPCParkourJoinMatchResp) ProtoMessage() {}
|
||||
|
||||
func (x *RPCParkourJoinMatchResp) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_parkour_parkour_msg_proto_msgTypes[31]
|
||||
mi := &file_parkour_parkour_msg_proto_msgTypes[33]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@ -1688,7 +1792,7 @@ func (x *RPCParkourJoinMatchResp) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use RPCParkourJoinMatchResp.ProtoReflect.Descriptor instead.
|
||||
func (*RPCParkourJoinMatchResp) Descriptor() ([]byte, []int) {
|
||||
return file_parkour_parkour_msg_proto_rawDescGZIP(), []int{31}
|
||||
return file_parkour_parkour_msg_proto_rawDescGZIP(), []int{33}
|
||||
}
|
||||
|
||||
//取消匹配
|
||||
@ -1703,7 +1807,7 @@ type RPCParkourCancelMatchReq struct {
|
||||
func (x *RPCParkourCancelMatchReq) Reset() {
|
||||
*x = RPCParkourCancelMatchReq{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_parkour_parkour_msg_proto_msgTypes[32]
|
||||
mi := &file_parkour_parkour_msg_proto_msgTypes[34]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@ -1716,7 +1820,7 @@ func (x *RPCParkourCancelMatchReq) String() string {
|
||||
func (*RPCParkourCancelMatchReq) ProtoMessage() {}
|
||||
|
||||
func (x *RPCParkourCancelMatchReq) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_parkour_parkour_msg_proto_msgTypes[32]
|
||||
mi := &file_parkour_parkour_msg_proto_msgTypes[34]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@ -1729,7 +1833,7 @@ func (x *RPCParkourCancelMatchReq) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use RPCParkourCancelMatchReq.ProtoReflect.Descriptor instead.
|
||||
func (*RPCParkourCancelMatchReq) Descriptor() ([]byte, []int) {
|
||||
return file_parkour_parkour_msg_proto_rawDescGZIP(), []int{32}
|
||||
return file_parkour_parkour_msg_proto_rawDescGZIP(), []int{34}
|
||||
}
|
||||
|
||||
func (x *RPCParkourCancelMatchReq) GetCaptainid() string {
|
||||
@ -1748,7 +1852,7 @@ type RPCParkourCancelMatchResp struct {
|
||||
func (x *RPCParkourCancelMatchResp) Reset() {
|
||||
*x = RPCParkourCancelMatchResp{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_parkour_parkour_msg_proto_msgTypes[33]
|
||||
mi := &file_parkour_parkour_msg_proto_msgTypes[35]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@ -1761,7 +1865,7 @@ func (x *RPCParkourCancelMatchResp) String() string {
|
||||
func (*RPCParkourCancelMatchResp) ProtoMessage() {}
|
||||
|
||||
func (x *RPCParkourCancelMatchResp) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_parkour_parkour_msg_proto_msgTypes[33]
|
||||
mi := &file_parkour_parkour_msg_proto_msgTypes[35]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@ -1774,7 +1878,7 @@ func (x *RPCParkourCancelMatchResp) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use RPCParkourCancelMatchResp.ProtoReflect.Descriptor instead.
|
||||
func (*RPCParkourCancelMatchResp) Descriptor() ([]byte, []int) {
|
||||
return file_parkour_parkour_msg_proto_rawDescGZIP(), []int{33}
|
||||
return file_parkour_parkour_msg_proto_rawDescGZIP(), []int{35}
|
||||
}
|
||||
|
||||
///匹配成功通知请求
|
||||
@ -1790,7 +1894,7 @@ type RPCParkourMatchSuccReq struct {
|
||||
func (x *RPCParkourMatchSuccReq) Reset() {
|
||||
*x = RPCParkourMatchSuccReq{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_parkour_parkour_msg_proto_msgTypes[34]
|
||||
mi := &file_parkour_parkour_msg_proto_msgTypes[36]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@ -1803,7 +1907,7 @@ func (x *RPCParkourMatchSuccReq) String() string {
|
||||
func (*RPCParkourMatchSuccReq) ProtoMessage() {}
|
||||
|
||||
func (x *RPCParkourMatchSuccReq) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_parkour_parkour_msg_proto_msgTypes[34]
|
||||
mi := &file_parkour_parkour_msg_proto_msgTypes[36]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@ -1816,7 +1920,7 @@ func (x *RPCParkourMatchSuccReq) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use RPCParkourMatchSuccReq.ProtoReflect.Descriptor instead.
|
||||
func (*RPCParkourMatchSuccReq) Descriptor() ([]byte, []int) {
|
||||
return file_parkour_parkour_msg_proto_rawDescGZIP(), []int{34}
|
||||
return file_parkour_parkour_msg_proto_rawDescGZIP(), []int{36}
|
||||
}
|
||||
|
||||
func (x *RPCParkourMatchSuccReq) GetRed() []*DBRaceMember {
|
||||
@ -1843,7 +1947,7 @@ type RPCParkourMatchSuccResp struct {
|
||||
func (x *RPCParkourMatchSuccResp) Reset() {
|
||||
*x = RPCParkourMatchSuccResp{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_parkour_parkour_msg_proto_msgTypes[35]
|
||||
mi := &file_parkour_parkour_msg_proto_msgTypes[37]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@ -1856,7 +1960,7 @@ func (x *RPCParkourMatchSuccResp) String() string {
|
||||
func (*RPCParkourMatchSuccResp) ProtoMessage() {}
|
||||
|
||||
func (x *RPCParkourMatchSuccResp) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_parkour_parkour_msg_proto_msgTypes[35]
|
||||
mi := &file_parkour_parkour_msg_proto_msgTypes[37]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@ -1869,7 +1973,7 @@ func (x *RPCParkourMatchSuccResp) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use RPCParkourMatchSuccResp.ProtoReflect.Descriptor instead.
|
||||
func (*RPCParkourMatchSuccResp) Descriptor() ([]byte, []int) {
|
||||
return file_parkour_parkour_msg_proto_rawDescGZIP(), []int{35}
|
||||
return file_parkour_parkour_msg_proto_rawDescGZIP(), []int{37}
|
||||
}
|
||||
|
||||
//托管求情
|
||||
@ -1885,7 +1989,7 @@ type RPC_ParkourTrusteeshipReq struct {
|
||||
func (x *RPC_ParkourTrusteeshipReq) Reset() {
|
||||
*x = RPC_ParkourTrusteeshipReq{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_parkour_parkour_msg_proto_msgTypes[36]
|
||||
mi := &file_parkour_parkour_msg_proto_msgTypes[38]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@ -1898,7 +2002,7 @@ func (x *RPC_ParkourTrusteeshipReq) String() string {
|
||||
func (*RPC_ParkourTrusteeshipReq) ProtoMessage() {}
|
||||
|
||||
func (x *RPC_ParkourTrusteeshipReq) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_parkour_parkour_msg_proto_msgTypes[36]
|
||||
mi := &file_parkour_parkour_msg_proto_msgTypes[38]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@ -1911,7 +2015,7 @@ func (x *RPC_ParkourTrusteeshipReq) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use RPC_ParkourTrusteeshipReq.ProtoReflect.Descriptor instead.
|
||||
func (*RPC_ParkourTrusteeshipReq) Descriptor() ([]byte, []int) {
|
||||
return file_parkour_parkour_msg_proto_rawDescGZIP(), []int{36}
|
||||
return file_parkour_parkour_msg_proto_rawDescGZIP(), []int{38}
|
||||
}
|
||||
|
||||
func (x *RPC_ParkourTrusteeshipReq) GetBattleid() string {
|
||||
@ -1937,7 +2041,7 @@ type RPC_ParkourTrusteeshipResp struct {
|
||||
func (x *RPC_ParkourTrusteeshipResp) Reset() {
|
||||
*x = RPC_ParkourTrusteeshipResp{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_parkour_parkour_msg_proto_msgTypes[37]
|
||||
mi := &file_parkour_parkour_msg_proto_msgTypes[39]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@ -1950,7 +2054,7 @@ func (x *RPC_ParkourTrusteeshipResp) String() string {
|
||||
func (*RPC_ParkourTrusteeshipResp) ProtoMessage() {}
|
||||
|
||||
func (x *RPC_ParkourTrusteeshipResp) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_parkour_parkour_msg_proto_msgTypes[37]
|
||||
mi := &file_parkour_parkour_msg_proto_msgTypes[39]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@ -1963,7 +2067,7 @@ func (x *RPC_ParkourTrusteeshipResp) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use RPC_ParkourTrusteeshipResp.ProtoReflect.Descriptor instead.
|
||||
func (*RPC_ParkourTrusteeshipResp) Descriptor() ([]byte, []int) {
|
||||
return file_parkour_parkour_msg_proto_rawDescGZIP(), []int{37}
|
||||
return file_parkour_parkour_msg_proto_rawDescGZIP(), []int{39}
|
||||
}
|
||||
|
||||
var File_parkour_parkour_msg_proto protoreflect.FileDescriptor
|
||||
@ -2085,43 +2189,58 @@ var file_parkour_parkour_msg_proto_rawDesc = []byte{
|
||||
0x01, 0x28, 0x05, 0x52, 0x0c, 0x77, 0x65, 0x65, 0x6b, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61,
|
||||
0x6c, 0x12, 0x1f, 0x0a, 0x05, 0x61, 0x77, 0x61, 0x72, 0x64, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b,
|
||||
0x32, 0x09, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x41, 0x74, 0x6e, 0x6f, 0x52, 0x05, 0x61, 0x77, 0x61,
|
||||
0x72, 0x64, 0x22, 0x27, 0x0a, 0x13, 0x50, 0x61, 0x72, 0x6b, 0x6f, 0x75, 0x72, 0x47, 0x65, 0x74,
|
||||
0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x12, 0x10, 0x0a, 0x03, 0x72, 0x69, 0x64,
|
||||
0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x72, 0x69, 0x64, 0x22, 0x36, 0x0a, 0x14, 0x50,
|
||||
0x61, 0x72, 0x6b, 0x6f, 0x75, 0x72, 0x47, 0x65, 0x74, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x52,
|
||||
0x65, 0x73, 0x70, 0x12, 0x1e, 0x0a, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28,
|
||||
0x0b, 0x32, 0x0a, 0x2e, 0x44, 0x42, 0x50, 0x61, 0x72, 0x6b, 0x6f, 0x75, 0x72, 0x52, 0x04, 0x69,
|
||||
0x6e, 0x66, 0x6f, 0x22, 0x7e, 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, 0x12, 0x1f, 0x0a, 0x03, 0x61, 0x69, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32,
|
||||
0x0d, 0x2e, 0x44, 0x42, 0x52, 0x61, 0x63, 0x65, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x03,
|
||||
0x61, 0x69, 0x73, 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, 0x38,
|
||||
0x0a, 0x18, 0x52, 0x50, 0x43, 0x50, 0x61, 0x72, 0x6b, 0x6f, 0x75, 0x72, 0x43, 0x61, 0x6e, 0x63,
|
||||
0x65, 0x6c, 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, 0x22, 0x1b, 0x0a, 0x19, 0x52, 0x50, 0x43, 0x50,
|
||||
0x61, 0x72, 0x6b, 0x6f, 0x75, 0x72, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 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, 0x22, 0x49,
|
||||
0x0a, 0x19, 0x52, 0x50, 0x43, 0x5f, 0x50, 0x61, 0x72, 0x6b, 0x6f, 0x75, 0x72, 0x54, 0x72, 0x75,
|
||||
0x73, 0x74, 0x65, 0x65, 0x73, 0x68, 0x69, 0x70, 0x52, 0x65, 0x71, 0x12, 0x1a, 0x0a, 0x08, 0x62,
|
||||
0x61, 0x74, 0x74, 0x6c, 0x65, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x62,
|
||||
0x61, 0x74, 0x74, 0x6c, 0x65, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x02,
|
||||
0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x22, 0x1c, 0x0a, 0x1a, 0x52, 0x50, 0x43,
|
||||
0x5f, 0x50, 0x61, 0x72, 0x6b, 0x6f, 0x75, 0x72, 0x54, 0x72, 0x75, 0x73, 0x74, 0x65, 0x65, 0x73,
|
||||
0x68, 0x69, 0x70, 0x52, 0x65, 0x73, 0x70, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62,
|
||||
0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
0x72, 0x64, 0x22, 0x26, 0x0a, 0x14, 0x50, 0x61, 0x72, 0x6b, 0x6f, 0x75, 0x72, 0x57, 0x65, 0x65,
|
||||
0x6b, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64,
|
||||
0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x69, 0x64, 0x22, 0x48, 0x0a, 0x15, 0x50, 0x61,
|
||||
0x72, 0x6b, 0x6f, 0x75, 0x72, 0x57, 0x65, 0x65, 0x6b, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x52,
|
||||
0x65, 0x73, 0x70, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52,
|
||||
0x02, 0x69, 0x64, 0x12, 0x1f, 0x0a, 0x05, 0x61, 0x77, 0x61, 0x72, 0x64, 0x18, 0x02, 0x20, 0x03,
|
||||
0x28, 0x0b, 0x32, 0x09, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x41, 0x74, 0x6e, 0x6f, 0x52, 0x05, 0x61,
|
||||
0x77, 0x61, 0x72, 0x64, 0x22, 0x19, 0x0a, 0x17, 0x50, 0x61, 0x72, 0x6b, 0x6f, 0x75, 0x72, 0x41,
|
||||
0x6c, 0x6c, 0x57, 0x65, 0x65, 0x6b, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x22,
|
||||
0xc5, 0x01, 0x0a, 0x18, 0x50, 0x61, 0x72, 0x6b, 0x6f, 0x75, 0x72, 0x41, 0x6c, 0x6c, 0x57, 0x65,
|
||||
0x65, 0x6b, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x12, 0x49, 0x0a, 0x0a,
|
||||
0x77, 0x65, 0x65, 0x6b, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b,
|
||||
0x32, 0x29, 0x2e, 0x50, 0x61, 0x72, 0x6b, 0x6f, 0x75, 0x72, 0x41, 0x6c, 0x6c, 0x57, 0x65, 0x65,
|
||||
0x6b, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x2e, 0x57, 0x65, 0x65, 0x6b,
|
||||
0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0a, 0x77, 0x65, 0x65,
|
||||
0x6b, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x12, 0x1f, 0x0a, 0x05, 0x61, 0x77, 0x61, 0x72, 0x64,
|
||||
0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x41, 0x74, 0x6e,
|
||||
0x6f, 0x52, 0x05, 0x61, 0x77, 0x61, 0x72, 0x64, 0x1a, 0x3d, 0x0a, 0x0f, 0x57, 0x65, 0x65, 0x6b,
|
||||
0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b,
|
||||
0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a,
|
||||
0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x76, 0x61,
|
||||
0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x7e, 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, 0x12, 0x1f, 0x0a, 0x03, 0x61, 0x69, 0x73, 0x18, 0x03, 0x20,
|
||||
0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x44, 0x42, 0x52, 0x61, 0x63, 0x65, 0x4d, 0x65, 0x6d, 0x62,
|
||||
0x65, 0x72, 0x52, 0x03, 0x61, 0x69, 0x73, 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, 0x38, 0x0a, 0x18, 0x52, 0x50, 0x43, 0x50, 0x61, 0x72, 0x6b, 0x6f, 0x75, 0x72,
|
||||
0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 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, 0x22, 0x1b, 0x0a, 0x19,
|
||||
0x52, 0x50, 0x43, 0x50, 0x61, 0x72, 0x6b, 0x6f, 0x75, 0x72, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c,
|
||||
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, 0x22, 0x49, 0x0a, 0x19, 0x52, 0x50, 0x43, 0x5f, 0x50, 0x61, 0x72, 0x6b, 0x6f, 0x75,
|
||||
0x72, 0x54, 0x72, 0x75, 0x73, 0x74, 0x65, 0x65, 0x73, 0x68, 0x69, 0x70, 0x52, 0x65, 0x71, 0x12,
|
||||
0x1a, 0x0a, 0x08, 0x62, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
|
||||
0x09, 0x52, 0x08, 0x62, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x75,
|
||||
0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x22, 0x1c, 0x0a,
|
||||
0x1a, 0x52, 0x50, 0x43, 0x5f, 0x50, 0x61, 0x72, 0x6b, 0x6f, 0x75, 0x72, 0x54, 0x72, 0x75, 0x73,
|
||||
0x74, 0x65, 0x65, 0x73, 0x68, 0x69, 0x70, 0x52, 0x65, 0x73, 0x70, 0x42, 0x06, 0x5a, 0x04, 0x2e,
|
||||
0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
@ -2136,7 +2255,7 @@ 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, 38)
|
||||
var file_parkour_parkour_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 41)
|
||||
var file_parkour_parkour_msg_proto_goTypes = []interface{}{
|
||||
(*ParkourInfoReq)(nil), // 0: ParkourInfoReq
|
||||
(*ParkourInfoResp)(nil), // 1: ParkourInfoResp
|
||||
@ -2166,40 +2285,45 @@ var file_parkour_parkour_msg_proto_goTypes = []interface{}{
|
||||
(*ParkourInfoChangePush)(nil), // 25: ParkourInfoChangePush
|
||||
(*ParkourRevivalPlayerPush)(nil), // 26: ParkourRevivalPlayerPush
|
||||
(*ParkourRaceOverPush)(nil), // 27: ParkourRaceOverPush
|
||||
(*ParkourGetRewardReq)(nil), // 28: ParkourGetRewardReq
|
||||
(*ParkourGetRewardResp)(nil), // 29: ParkourGetRewardResp
|
||||
(*RPCParkourJoinMatchReq)(nil), // 30: RPCParkourJoinMatchReq
|
||||
(*RPCParkourJoinMatchResp)(nil), // 31: RPCParkourJoinMatchResp
|
||||
(*RPCParkourCancelMatchReq)(nil), // 32: RPCParkourCancelMatchReq
|
||||
(*RPCParkourCancelMatchResp)(nil), // 33: RPCParkourCancelMatchResp
|
||||
(*RPCParkourMatchSuccReq)(nil), // 34: RPCParkourMatchSuccReq
|
||||
(*RPCParkourMatchSuccResp)(nil), // 35: RPCParkourMatchSuccResp
|
||||
(*RPC_ParkourTrusteeshipReq)(nil), // 36: RPC_ParkourTrusteeshipReq
|
||||
(*RPC_ParkourTrusteeshipResp)(nil), // 37: RPC_ParkourTrusteeshipResp
|
||||
(*DBParkour)(nil), // 38: DBParkour
|
||||
(RaceType)(0), // 39: RaceType
|
||||
(*DBRace)(nil), // 40: DBRace
|
||||
(*UserAtno)(nil), // 41: UserAtno
|
||||
(*DBRaceMember)(nil), // 42: DBRaceMember
|
||||
(*ParkourWeekRewardReq)(nil), // 28: ParkourWeekRewardReq
|
||||
(*ParkourWeekRewardResp)(nil), // 29: ParkourWeekRewardResp
|
||||
(*ParkourAllWeekRewardReq)(nil), // 30: ParkourAllWeekRewardReq
|
||||
(*ParkourAllWeekRewardResp)(nil), // 31: ParkourAllWeekRewardResp
|
||||
(*RPCParkourJoinMatchReq)(nil), // 32: RPCParkourJoinMatchReq
|
||||
(*RPCParkourJoinMatchResp)(nil), // 33: RPCParkourJoinMatchResp
|
||||
(*RPCParkourCancelMatchReq)(nil), // 34: RPCParkourCancelMatchReq
|
||||
(*RPCParkourCancelMatchResp)(nil), // 35: RPCParkourCancelMatchResp
|
||||
(*RPCParkourMatchSuccReq)(nil), // 36: RPCParkourMatchSuccReq
|
||||
(*RPCParkourMatchSuccResp)(nil), // 37: RPCParkourMatchSuccResp
|
||||
(*RPC_ParkourTrusteeshipReq)(nil), // 38: RPC_ParkourTrusteeshipReq
|
||||
(*RPC_ParkourTrusteeshipResp)(nil), // 39: RPC_ParkourTrusteeshipResp
|
||||
nil, // 40: ParkourAllWeekRewardResp.WeekrewardEntry
|
||||
(*DBParkour)(nil), // 41: DBParkour
|
||||
(RaceType)(0), // 42: RaceType
|
||||
(*DBRace)(nil), // 43: DBRace
|
||||
(*UserAtno)(nil), // 44: UserAtno
|
||||
(*DBRaceMember)(nil), // 45: DBRaceMember
|
||||
}
|
||||
var file_parkour_parkour_msg_proto_depIdxs = []int32{
|
||||
38, // 0: ParkourInfoResp.info:type_name -> DBParkour
|
||||
39, // 1: ParkourRaceMatchReq.rtype:type_name -> RaceType
|
||||
39, // 2: ParkourRaceMatchCancelReq.rtype:type_name -> RaceType
|
||||
40, // 3: ParkourRaceMatchSuccPush.race:type_name -> DBRace
|
||||
38, // 4: ParkourInfoChangePush.Info:type_name -> DBParkour
|
||||
40, // 5: ParkourRaceOverPush.race:type_name -> DBRace
|
||||
41, // 6: ParkourRaceOverPush.award:type_name -> UserAtno
|
||||
38, // 7: ParkourGetRewardResp.info:type_name -> DBParkour
|
||||
42, // 8: RPCParkourJoinMatchReq.member:type_name -> DBRaceMember
|
||||
42, // 9: RPCParkourJoinMatchReq.ais:type_name -> DBRaceMember
|
||||
42, // 10: RPCParkourMatchSuccReq.red:type_name -> DBRaceMember
|
||||
42, // 11: RPCParkourMatchSuccReq.bule:type_name -> DBRaceMember
|
||||
12, // [12:12] is the sub-list for method output_type
|
||||
12, // [12:12] is the sub-list for method input_type
|
||||
12, // [12:12] is the sub-list for extension type_name
|
||||
12, // [12:12] is the sub-list for extension extendee
|
||||
0, // [0:12] is the sub-list for field type_name
|
||||
41, // 0: ParkourInfoResp.info:type_name -> DBParkour
|
||||
42, // 1: ParkourRaceMatchReq.rtype:type_name -> RaceType
|
||||
42, // 2: ParkourRaceMatchCancelReq.rtype:type_name -> RaceType
|
||||
43, // 3: ParkourRaceMatchSuccPush.race:type_name -> DBRace
|
||||
41, // 4: ParkourInfoChangePush.Info:type_name -> DBParkour
|
||||
43, // 5: ParkourRaceOverPush.race:type_name -> DBRace
|
||||
44, // 6: ParkourRaceOverPush.award:type_name -> UserAtno
|
||||
44, // 7: ParkourWeekRewardResp.award:type_name -> UserAtno
|
||||
40, // 8: ParkourAllWeekRewardResp.weekreward:type_name -> ParkourAllWeekRewardResp.WeekrewardEntry
|
||||
44, // 9: ParkourAllWeekRewardResp.award:type_name -> UserAtno
|
||||
45, // 10: RPCParkourJoinMatchReq.member:type_name -> DBRaceMember
|
||||
45, // 11: RPCParkourJoinMatchReq.ais:type_name -> DBRaceMember
|
||||
45, // 12: RPCParkourMatchSuccReq.red:type_name -> DBRaceMember
|
||||
45, // 13: RPCParkourMatchSuccReq.bule:type_name -> DBRaceMember
|
||||
14, // [14:14] is the sub-list for method output_type
|
||||
14, // [14:14] is the sub-list for method input_type
|
||||
14, // [14:14] is the sub-list for extension type_name
|
||||
14, // [14:14] is the sub-list for extension extendee
|
||||
0, // [0:14] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_parkour_parkour_msg_proto_init() }
|
||||
@ -2547,7 +2671,7 @@ func file_parkour_parkour_msg_proto_init() {
|
||||
}
|
||||
}
|
||||
file_parkour_parkour_msg_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*ParkourGetRewardReq); i {
|
||||
switch v := v.(*ParkourWeekRewardReq); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
@ -2559,7 +2683,7 @@ func file_parkour_parkour_msg_proto_init() {
|
||||
}
|
||||
}
|
||||
file_parkour_parkour_msg_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*ParkourGetRewardResp); i {
|
||||
switch v := v.(*ParkourWeekRewardResp); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
@ -2571,7 +2695,7 @@ func file_parkour_parkour_msg_proto_init() {
|
||||
}
|
||||
}
|
||||
file_parkour_parkour_msg_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*RPCParkourJoinMatchReq); i {
|
||||
switch v := v.(*ParkourAllWeekRewardReq); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
@ -2583,7 +2707,7 @@ func file_parkour_parkour_msg_proto_init() {
|
||||
}
|
||||
}
|
||||
file_parkour_parkour_msg_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*RPCParkourJoinMatchResp); i {
|
||||
switch v := v.(*ParkourAllWeekRewardResp); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
@ -2595,7 +2719,7 @@ func file_parkour_parkour_msg_proto_init() {
|
||||
}
|
||||
}
|
||||
file_parkour_parkour_msg_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*RPCParkourCancelMatchReq); i {
|
||||
switch v := v.(*RPCParkourJoinMatchReq); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
@ -2607,7 +2731,7 @@ func file_parkour_parkour_msg_proto_init() {
|
||||
}
|
||||
}
|
||||
file_parkour_parkour_msg_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*RPCParkourCancelMatchResp); i {
|
||||
switch v := v.(*RPCParkourJoinMatchResp); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
@ -2619,7 +2743,7 @@ func file_parkour_parkour_msg_proto_init() {
|
||||
}
|
||||
}
|
||||
file_parkour_parkour_msg_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*RPCParkourMatchSuccReq); i {
|
||||
switch v := v.(*RPCParkourCancelMatchReq); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
@ -2631,7 +2755,7 @@ func file_parkour_parkour_msg_proto_init() {
|
||||
}
|
||||
}
|
||||
file_parkour_parkour_msg_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*RPCParkourMatchSuccResp); i {
|
||||
switch v := v.(*RPCParkourCancelMatchResp); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
@ -2643,7 +2767,7 @@ func file_parkour_parkour_msg_proto_init() {
|
||||
}
|
||||
}
|
||||
file_parkour_parkour_msg_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*RPC_ParkourTrusteeshipReq); i {
|
||||
switch v := v.(*RPCParkourMatchSuccReq); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
@ -2655,6 +2779,30 @@ func file_parkour_parkour_msg_proto_init() {
|
||||
}
|
||||
}
|
||||
file_parkour_parkour_msg_proto_msgTypes[37].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
|
||||
}
|
||||
}
|
||||
file_parkour_parkour_msg_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*RPC_ParkourTrusteeshipReq); 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[39].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*RPC_ParkourTrusteeshipResp); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -2673,7 +2821,7 @@ func file_parkour_parkour_msg_proto_init() {
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_parkour_parkour_msg_proto_rawDesc,
|
||||
NumEnums: 0,
|
||||
NumMessages: 38,
|
||||
NumMessages: 41,
|
||||
NumExtensions: 0,
|
||||
NumServices: 0,
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user