Merge branch 'dev' of http://git.legu.cc/liwei_3d/go_dreamfactory into dev
This commit is contained in:
commit
a57f0eeeca
94
modules/dcolor/api_award.go
Normal file
94
modules/dcolor/api_award.go
Normal file
@ -0,0 +1,94 @@
|
||||
package dcolor
|
||||
|
||||
import (
|
||||
"go_dreamfactory/comm"
|
||||
"go_dreamfactory/pb"
|
||||
"go_dreamfactory/sys/configure"
|
||||
cfg "go_dreamfactory/sys/configure/structs"
|
||||
"go_dreamfactory/utils"
|
||||
)
|
||||
|
||||
func (this *apiComp) AwardCheck(session comm.IUserSession, req *pb.DColorAwardReq) (errdata *pb.ErrorData) {
|
||||
return
|
||||
}
|
||||
|
||||
func (this *apiComp) Award(session comm.IUserSession, req *pb.DColorAwardReq) (errdata *pb.ErrorData) {
|
||||
var (
|
||||
info *pb.DBDColor
|
||||
conf *cfg.GameGColorRewardData
|
||||
atno []*pb.UserAtno
|
||||
ok bool
|
||||
err error
|
||||
)
|
||||
if errdata = this.AwardCheck(session, req); errdata != nil {
|
||||
return
|
||||
}
|
||||
|
||||
if conf, err = this.module.configure.getGameGColorRewardData(req.Id); err != nil {
|
||||
errdata = &pb.ErrorData{
|
||||
Code: pb.ErrorCode_ConfigNoFound,
|
||||
Message: err.Error(),
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
if info, err = this.module.model.getModel(session.GetUserId()); err != nil {
|
||||
errdata = &pb.ErrorData{
|
||||
Code: pb.ErrorCode_DBError,
|
||||
Message: err.Error(),
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
if !utils.IsSameWeek(info.Weektime) {
|
||||
info.Weekaward = make(map[int32]bool)
|
||||
}
|
||||
|
||||
if _, ok = info.Weekaward[req.Id]; req.Atype == 0 && ok {
|
||||
errdata = &pb.ErrorData{
|
||||
Code: pb.ErrorCode_ReqParameterError,
|
||||
Message: "Weekaward Claimed!",
|
||||
}
|
||||
return
|
||||
}
|
||||
if _, ok = info.Allaward[req.Id]; req.Atype == 1 && ok {
|
||||
errdata = &pb.ErrorData{
|
||||
Code: pb.ErrorCode_ReqParameterError,
|
||||
Message: "Allaward Claimed!",
|
||||
}
|
||||
return
|
||||
}
|
||||
if req.Atype == 0 && info.Integral < conf.Condition {
|
||||
errdata = &pb.ErrorData{
|
||||
Code: pb.ErrorCode_ReqParameterError,
|
||||
Message: "Integral Not enough points!",
|
||||
}
|
||||
return
|
||||
}
|
||||
if req.Atype == 0 && info.Accruedintegral < conf.Condition {
|
||||
errdata = &pb.ErrorData{
|
||||
Code: pb.ErrorCode_ReqParameterError,
|
||||
Message: "Accruedintegral Not enough points!",
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
if errdata, atno = this.module.DispenseAtno(session, conf.Reward, true); errdata != nil {
|
||||
return
|
||||
}
|
||||
if req.Atype == 0 {
|
||||
info.Weekaward[req.Id] = true
|
||||
info.Weektime = configure.Now().Unix()
|
||||
} else {
|
||||
info.Allaward[req.Id] = true
|
||||
}
|
||||
|
||||
this.module.model.Change(session.GetUserId(), map[string]interface{}{
|
||||
"weekaward": info.Weekaward,
|
||||
"allaward": info.Allaward,
|
||||
"weektime": info.Weektime,
|
||||
})
|
||||
|
||||
session.SendMsg(string(this.module.GetType()), "info", &pb.DColorAwardResp{Id: req.Id, Atype: req.Atype, Award: atno})
|
||||
return
|
||||
}
|
@ -94,7 +94,7 @@ func (this *configureComp) getGameGColorGetfractionData(dif int32, repeat bool,
|
||||
}
|
||||
|
||||
// 获取伤害对应的评分组
|
||||
func (this *configureComp) getGameGColortTmedecayData(time float32) (conf *cfg.GameGColortTmedecayData, err error) {
|
||||
func (this *configureComp) getGameGColortTmedecayData(time int32) (conf *cfg.GameGColortTmedecayData, err error) {
|
||||
var (
|
||||
v interface{}
|
||||
)
|
||||
@ -103,7 +103,7 @@ func (this *configureComp) getGameGColortTmedecayData(time float32) (conf *cfg.G
|
||||
return
|
||||
} else {
|
||||
for _, v := range v.(*cfg.GameGColortTmedecay).GetDataList() {
|
||||
if (time >= float32(v.Min) || v.Min == -1) && (time <= float32(v.Max) || v.Max == -1) {
|
||||
if (time >= v.Min || v.Min == -1) && (time <= v.Max || v.Max == -1) {
|
||||
conf = v
|
||||
return
|
||||
}
|
||||
@ -113,3 +113,20 @@ func (this *configureComp) getGameGColortTmedecayData(time float32) (conf *cfg.G
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// 获取奖励列表
|
||||
func (this *configureComp) getGameGColorRewardData(id int32) (conf *cfg.GameGColorRewardData, err error) {
|
||||
var (
|
||||
v interface{}
|
||||
ok bool
|
||||
)
|
||||
if v, err = this.GetConfigure(game_gcolorreward); err != nil {
|
||||
return
|
||||
}
|
||||
if conf, ok = v.(*cfg.GameGColorReward).GetDataMap()[id]; !ok {
|
||||
err = comm.NewNotFoundConfErr(string(this.module.GetType()), game_gcolorreward, id)
|
||||
this.module.Errorln(err)
|
||||
return
|
||||
}
|
||||
return
|
||||
}
|
||||
|
@ -4,6 +4,10 @@ import (
|
||||
"fmt"
|
||||
"go_dreamfactory/comm"
|
||||
"go_dreamfactory/pb"
|
||||
"go_dreamfactory/sys/configure"
|
||||
cfg "go_dreamfactory/sys/configure/structs"
|
||||
"math"
|
||||
"time"
|
||||
|
||||
"google.golang.org/protobuf/proto"
|
||||
)
|
||||
@ -12,11 +16,13 @@ type Room struct {
|
||||
module *DColor
|
||||
data *pb.DBDColorRoom
|
||||
sessions []comm.IUserSession
|
||||
starttime time.Time
|
||||
currside int32
|
||||
currindex int32
|
||||
}
|
||||
|
||||
func (this *Room) GameStart() (err error) {
|
||||
this.starttime = configure.Now()
|
||||
if err = this.Broadcast("gameready", &pb.DColorGameReadyPush{
|
||||
ServicePath: fmt.Sprintf("%s/%s", this.module.service.GetType(), this.module.service.GetId()),
|
||||
Room: this.data,
|
||||
@ -48,7 +54,6 @@ func (this *Room) PlayerLoadEnd(uid string) (err error) {
|
||||
|
||||
//玩家操作
|
||||
func (this *Room) PlayerHandle(uid string, handle *pb.DColorHandleReq) (err error) {
|
||||
|
||||
this.currindex++
|
||||
allright, halfpair := this.comparison(handle.Results)
|
||||
handleopt := &pb.DBDColorResult{
|
||||
@ -66,17 +71,65 @@ func (this *Room) PlayerHandle(uid string, handle *pb.DColorHandleReq) (err erro
|
||||
}); err != nil {
|
||||
this.module.Errorln(err)
|
||||
}
|
||||
|
||||
if allright == int32(len(this.data.Results)) || len(this.data.Handles) == 9 { //结束
|
||||
var (
|
||||
conf *cfg.GameGColorGetfractionData
|
||||
tconf *cfg.GameGColortTmedecayData
|
||||
)
|
||||
endtime := int32(configure.Now().Sub(this.starttime).Seconds())
|
||||
if conf, err = this.module.configure.getGameGColorGetfractionData(int32(this.data.Difficulty)+1, this.data.Repeat, len(this.data.Handles)-1); err != nil {
|
||||
this.module.Errorln(err)
|
||||
return
|
||||
}
|
||||
if tconf, err = this.module.configure.getGameGColortTmedecayData(endtime); err != nil {
|
||||
this.module.Errorln(err)
|
||||
return
|
||||
}
|
||||
if allright == int32(len(this.data.Results)) {
|
||||
if this.currside == 1 {
|
||||
this.data.Red.Score = int32(math.Floor(float64(conf.Fraction) * float64(tconf.Pro) / float64(1000)))
|
||||
this.data.Blue.Score = this.data.Red.Score / 2
|
||||
} else {
|
||||
this.data.Blue.Score = int32(math.Floor(float64(conf.Fraction) * float64(tconf.Pro) / float64(1000)))
|
||||
this.data.Red.Score = this.data.Red.Score / 2
|
||||
}
|
||||
} else {
|
||||
this.currside = 0
|
||||
this.data.Red.Score = int32(math.Floor(float64(conf.Fail) * float64(tconf.Pro) / float64(1000)))
|
||||
this.data.Red.Score = int32(math.Floor(float64(conf.Fail) * float64(tconf.Pro) / float64(1000)))
|
||||
}
|
||||
this.data.Red.Integral += this.data.Red.Score
|
||||
if this.data.Red.Score > this.data.Red.Maxintegral {
|
||||
this.data.Red.Maxintegral = this.data.Red.Score
|
||||
}
|
||||
this.data.Blue.Integral += this.data.Blue.Score
|
||||
if this.data.Blue.Score > this.data.Blue.Maxintegral {
|
||||
this.data.Blue.Maxintegral = this.data.Blue.Score
|
||||
}
|
||||
this.module.model.Change(this.data.Red.Info.Uid, map[string]interface{}{
|
||||
"integral": this.data.Red.Integral,
|
||||
"maxintegral": this.data.Red.Maxintegral,
|
||||
})
|
||||
this.module.model.Change(this.data.Blue.Info.Uid, map[string]interface{}{
|
||||
"integral": this.data.Blue.Integral,
|
||||
"maxintegral": this.data.Blue.Maxintegral,
|
||||
})
|
||||
if err = this.Broadcast("gameover", &pb.DColorGameOverPush{
|
||||
Winside: this.currside,
|
||||
RedIntegral: this.data.Red.Score,
|
||||
BlueIntegral: this.data.Blue.Score,
|
||||
}); err != nil {
|
||||
this.module.Errorln(err)
|
||||
}
|
||||
this.module.rooms.removeRoom(this.data.Rid)
|
||||
} else {
|
||||
|
||||
if this.currside == 1 {
|
||||
this.currside = 2
|
||||
} else {
|
||||
this.currside = 1
|
||||
}
|
||||
if allright == int32(len(this.data.Results)) { //结束
|
||||
if err = this.Broadcast("gameover", &pb.DColorGameOverPush{
|
||||
Winside: this.currside,
|
||||
}); err != nil {
|
||||
this.module.Errorln(err)
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
|
@ -48,3 +48,9 @@ func (this *roomsComp) newRoom(data *pb.DBDColorRoom, session []comm.IUserSessio
|
||||
this.lock.Unlock()
|
||||
return
|
||||
}
|
||||
|
||||
func (this *roomsComp) removeRoom(rid string) {
|
||||
this.lock.Lock()
|
||||
delete(this.rooms, rid)
|
||||
this.lock.Unlock()
|
||||
}
|
||||
|
25
modules/maincity/api_onlinePlayer.go
Normal file
25
modules/maincity/api_onlinePlayer.go
Normal file
@ -0,0 +1,25 @@
|
||||
package maincity
|
||||
|
||||
import (
|
||||
"go_dreamfactory/comm"
|
||||
"go_dreamfactory/pb"
|
||||
)
|
||||
|
||||
func (this *apiComp) OnlinePlayerCheck(session comm.IUserSession, req *pb.MainCityOnlinePlayerReq) (errdata *pb.ErrorData) {
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// 查看某一封邮件
|
||||
func (this *apiComp) OnlinePlayer(session comm.IUserSession, req *pb.MainCityOnlinePlayerReq) (errdata *pb.ErrorData) {
|
||||
var (
|
||||
friends []*pb.BaseUserInfo
|
||||
uids []string
|
||||
)
|
||||
friends = this.module.model.getplayerPos(session.GetUserId())
|
||||
for _, v := range friends {
|
||||
uids = append(uids, v.Uid)
|
||||
}
|
||||
|
||||
return
|
||||
}
|
@ -112,7 +112,7 @@ func (this *aiComp) ExceAi(_ai *AI) {
|
||||
if _ai.CD > 0 {
|
||||
return
|
||||
}
|
||||
|
||||
_ai.CD = _ai.Conf.BehaviorCD
|
||||
for _, v := range _ai.Handles {
|
||||
v.cd -= _ai.Conf.BehaviorCD
|
||||
if v.cd <= 0 {
|
||||
|
@ -62,6 +62,7 @@ func (this *matchComp) MatchNotic(players map[string]interface{}) (err error) {
|
||||
red []*pb.DBRaceMember = make([]*pb.DBRaceMember, 0, 3)
|
||||
bule []*pb.DBRaceMember = make([]*pb.DBRaceMember, 0, 3)
|
||||
ais []*pb.DBRaceMember = make([]*pb.DBRaceMember, 0, 6)
|
||||
n int32
|
||||
dan int32
|
||||
leftnum int32
|
||||
)
|
||||
@ -97,13 +98,13 @@ func (this *matchComp) MatchNotic(players map[string]interface{}) (err error) {
|
||||
if leftnum > 0 {
|
||||
if ais, err = this.module.parkourComp.matcheAI(dan, leftnum); err != nil {
|
||||
this.module.Error("matcheAI err!", log.Field{Key: "key", Value: err.Error()})
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
if len(red) < 3 {
|
||||
red = append(red, ais[0:3-len(red)]...)
|
||||
ais = ais[3-len(red):]
|
||||
n = 3 - int32(len(red))
|
||||
red = append(red, ais[0:n]...)
|
||||
ais = ais[n:]
|
||||
}
|
||||
if len(bule) < 3 {
|
||||
bule = append(bule, ais[0:3-len(bule)]...)
|
||||
|
@ -105,7 +105,6 @@ func (this *Parkour) createbattle(red []*pb.DBRaceMember, bule []*pb.DBRaceMembe
|
||||
battle = &RaceItem{
|
||||
Id: race.Id,
|
||||
Session: make(map[string]comm.IUserSession),
|
||||
overtimer: timewheel.Add(time.Minute*3, this.overtimer, race.Id),
|
||||
}
|
||||
|
||||
for _, v := range red {
|
||||
@ -184,7 +183,7 @@ func (this *Parkour) startbattle(id string) {
|
||||
for _, v := range battle.Session {
|
||||
sessions = append(sessions, v)
|
||||
}
|
||||
|
||||
battle.overtimer = timewheel.Add(time.Duration(this.ModuleTools.GetGlobalConf().BuzkashiTime)*time.Second, this.overtimer, battle.Id)
|
||||
if err = this.SendMsgToSession(string(this.GetType()), "racestart", &pb.ParkourRaceStartPush{
|
||||
Countdown: 3,
|
||||
}, sessions...); err != nil {
|
||||
|
@ -81,6 +81,9 @@ type DBDColor struct {
|
||||
Integral int32 `protobuf:"varint,3,opt,name=integral,proto3" json:"integral"`
|
||||
Maxintegral int32 `protobuf:"varint,4,opt,name=maxintegral,proto3" json:"maxintegral"`
|
||||
Weektime int64 `protobuf:"varint,5,opt,name=weektime,proto3" json:"weektime"`
|
||||
Accruedintegral int32 `protobuf:"varint,7,opt,name=accruedintegral,proto3" json:"accruedintegral"` //累计积分
|
||||
Weekaward map[int32]bool `protobuf:"bytes,8,rep,name=weekaward,proto3" json:"weekaward" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
|
||||
Allaward map[int32]bool `protobuf:"bytes,9,rep,name=allaward,proto3" json:"allaward" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
|
||||
}
|
||||
|
||||
func (x *DBDColor) Reset() {
|
||||
@ -150,6 +153,27 @@ func (x *DBDColor) GetWeektime() int64 {
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *DBDColor) GetAccruedintegral() int32 {
|
||||
if x != nil {
|
||||
return x.Accruedintegral
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *DBDColor) GetWeekaward() map[int32]bool {
|
||||
if x != nil {
|
||||
return x.Weekaward
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *DBDColor) GetAllaward() map[int32]bool {
|
||||
if x != nil {
|
||||
return x.Allaward
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type DBDColorQiecuoInvite struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
@ -318,6 +342,8 @@ type DBDColorRoomPlayer struct {
|
||||
Isai bool `protobuf:"varint,2,opt,name=isai,proto3" json:"isai"`
|
||||
Ready bool `protobuf:"varint,3,opt,name=ready,proto3" json:"ready"`
|
||||
Score int32 `protobuf:"varint,4,opt,name=score,proto3" json:"score"`
|
||||
Integral int32 `protobuf:"varint,5,opt,name=integral,proto3" json:"integral"`
|
||||
Maxintegral int32 `protobuf:"varint,6,opt,name=maxintegral,proto3" json:"maxintegral"`
|
||||
}
|
||||
|
||||
func (x *DBDColorRoomPlayer) Reset() {
|
||||
@ -380,6 +406,20 @@ func (x *DBDColorRoomPlayer) GetScore() int32 {
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *DBDColorRoomPlayer) GetIntegral() int32 {
|
||||
if x != nil {
|
||||
return x.Integral
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *DBDColorRoomPlayer) GetMaxintegral() int32 {
|
||||
if x != nil {
|
||||
return x.Maxintegral
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type DBDColorResult struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
@ -560,7 +600,7 @@ var File_dcolor_dcolor_db_proto protoreflect.FileDescriptor
|
||||
var file_dcolor_dcolor_db_proto_rawDesc = []byte{
|
||||
0x0a, 0x16, 0x64, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x2f, 0x64, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x5f,
|
||||
0x64, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0a, 0x63, 0x6f, 0x6d, 0x6d, 0x2e, 0x70,
|
||||
0x72, 0x6f, 0x74, 0x6f, 0x22, 0x86, 0x01, 0x0a, 0x08, 0x44, 0x42, 0x44, 0x43, 0x6f, 0x6c, 0x6f,
|
||||
0x72, 0x6f, 0x74, 0x6f, 0x22, 0x98, 0x03, 0x0a, 0x08, 0x44, 0x42, 0x44, 0x43, 0x6f, 0x6c, 0x6f,
|
||||
0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69,
|
||||
0x64, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03,
|
||||
0x75, 0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x6c, 0x18,
|
||||
@ -568,65 +608,86 @@ var file_dcolor_dcolor_db_proto_rawDesc = []byte{
|
||||
0x20, 0x0a, 0x0b, 0x6d, 0x61, 0x78, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x6c, 0x18, 0x04,
|
||||
0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x6d, 0x61, 0x78, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61,
|
||||
0x6c, 0x12, 0x1a, 0x0a, 0x08, 0x77, 0x65, 0x65, 0x6b, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20,
|
||||
0x01, 0x28, 0x03, 0x52, 0x08, 0x77, 0x65, 0x65, 0x6b, 0x74, 0x69, 0x6d, 0x65, 0x22, 0x46, 0x0a,
|
||||
0x14, 0x44, 0x42, 0x44, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x51, 0x69, 0x65, 0x63, 0x75, 0x6f, 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, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73,
|
||||
0x74, 0x61, 0x6d, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65,
|
||||
0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, 0xfe, 0x01, 0x0a, 0x14, 0x44, 0x42, 0x44, 0x43, 0x6f, 0x6c,
|
||||
0x6f, 0x72, 0x51, 0x69, 0x65, 0x63, 0x75, 0x6f, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x0e,
|
||||
0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x10,
|
||||
0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64,
|
||||
0x12, 0x2f, 0x0a, 0x07, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28,
|
||||
0x0b, 0x32, 0x15, 0x2e, 0x44, 0x42, 0x44, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x51, 0x69, 0x65, 0x63,
|
||||
0x75, 0x6f, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x52, 0x07, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74,
|
||||
0x73, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28,
|
||||
0x05, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x62, 0x61, 0x74,
|
||||
0x74, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x62, 0x61, 0x74, 0x74, 0x69,
|
||||
0x64, 0x12, 0x33, 0x0a, 0x0a, 0x64, 0x69, 0x66, 0x66, 0x69, 0x63, 0x75, 0x6c, 0x74, 0x79, 0x18,
|
||||
0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x44, 0x42, 0x44, 0x43, 0x6f, 0x6c, 0x6f, 0x72,
|
||||
0x44, 0x69, 0x66, 0x66, 0x69, 0x63, 0x75, 0x6c, 0x74, 0x79, 0x52, 0x0a, 0x64, 0x69, 0x66, 0x66,
|
||||
0x69, 0x63, 0x75, 0x6c, 0x74, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x52, 0x65, 0x70, 0x65, 0x61, 0x74,
|
||||
0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x52, 0x65, 0x70, 0x65, 0x61, 0x74, 0x12, 0x16,
|
||||
0x0a, 0x06, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x08, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06,
|
||||
0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x22, 0x77, 0x0a, 0x12, 0x44, 0x42, 0x44, 0x43, 0x6f, 0x6c,
|
||||
0x6f, 0x72, 0x52, 0x6f, 0x6f, 0x6d, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x12, 0x21, 0x0a, 0x04,
|
||||
0x69, 0x6e, 0x66, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x42, 0x61, 0x73,
|
||||
0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x12,
|
||||
0x12, 0x0a, 0x04, 0x69, 0x73, 0x61, 0x69, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x69,
|
||||
0x73, 0x61, 0x69, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x65, 0x61, 0x64, 0x79, 0x18, 0x03, 0x20, 0x01,
|
||||
0x28, 0x08, 0x52, 0x05, 0x72, 0x65, 0x61, 0x64, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x63, 0x6f,
|
||||
0x72, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x22,
|
||||
0x8a, 0x01, 0x0a, 0x0e, 0x44, 0x42, 0x44, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x75,
|
||||
0x6c, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28,
|
||||
0x05, 0x52, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18,
|
||||
0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65,
|
||||
0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x05, 0x52, 0x07, 0x72, 0x65, 0x73,
|
||||
0x75, 0x6c, 0x74, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x61, 0x6c, 0x6c, 0x72, 0x69, 0x67, 0x68, 0x74,
|
||||
0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x61, 0x6c, 0x6c, 0x72, 0x69, 0x67, 0x68, 0x74,
|
||||
0x12, 0x1a, 0x0a, 0x08, 0x68, 0x61, 0x6c, 0x66, 0x70, 0x61, 0x69, 0x72, 0x18, 0x05, 0x20, 0x01,
|
||||
0x28, 0x05, 0x52, 0x08, 0x68, 0x61, 0x6c, 0x66, 0x70, 0x61, 0x69, 0x72, 0x22, 0x82, 0x02, 0x0a,
|
||||
0x0c, 0x44, 0x42, 0x44, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x52, 0x6f, 0x6f, 0x6d, 0x12, 0x10, 0x0a,
|
||||
0x03, 0x72, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x72, 0x69, 0x64, 0x12,
|
||||
0x33, 0x0a, 0x0a, 0x64, 0x69, 0x66, 0x66, 0x69, 0x63, 0x75, 0x6c, 0x74, 0x79, 0x18, 0x02, 0x20,
|
||||
0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x44, 0x42, 0x44, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x44, 0x69,
|
||||
0x66, 0x66, 0x69, 0x63, 0x75, 0x6c, 0x74, 0x79, 0x52, 0x0a, 0x64, 0x69, 0x66, 0x66, 0x69, 0x63,
|
||||
0x75, 0x6c, 0x74, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x52, 0x65, 0x70, 0x65, 0x61, 0x74, 0x18, 0x03,
|
||||
0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x52, 0x65, 0x70, 0x65, 0x61, 0x74, 0x12, 0x18, 0x0a, 0x07,
|
||||
0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x05, 0x52, 0x07, 0x72,
|
||||
0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x12, 0x25, 0x0a, 0x03, 0x72, 0x65, 0x64, 0x18, 0x05, 0x20,
|
||||
0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x44, 0x42, 0x44, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x52, 0x6f,
|
||||
0x6f, 0x6d, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x52, 0x03, 0x72, 0x65, 0x64, 0x12, 0x27, 0x0a,
|
||||
0x04, 0x62, 0x6c, 0x75, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x44, 0x42,
|
||||
0x44, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x52, 0x6f, 0x6f, 0x6d, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72,
|
||||
0x52, 0x04, 0x62, 0x6c, 0x75, 0x65, 0x12, 0x29, 0x0a, 0x07, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65,
|
||||
0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x44, 0x42, 0x44, 0x43, 0x6f, 0x6c,
|
||||
0x6f, 0x72, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x07, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65,
|
||||
0x73, 0x2a, 0x3a, 0x0a, 0x12, 0x44, 0x42, 0x44, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x44, 0x69, 0x66,
|
||||
0x66, 0x69, 0x63, 0x75, 0x6c, 0x74, 0x79, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x69, 0x6d, 0x70, 0x6c,
|
||||
0x65, 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x44, 0x69, 0x66, 0x66, 0x69, 0x63, 0x75, 0x6c, 0x74,
|
||||
0x79, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x48, 0x65, 0x6c, 0x6c, 0x10, 0x02, 0x42, 0x06, 0x5a,
|
||||
0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
0x01, 0x28, 0x03, 0x52, 0x08, 0x77, 0x65, 0x65, 0x6b, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x28, 0x0a,
|
||||
0x0f, 0x61, 0x63, 0x63, 0x72, 0x75, 0x65, 0x64, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x6c,
|
||||
0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0f, 0x61, 0x63, 0x63, 0x72, 0x75, 0x65, 0x64, 0x69,
|
||||
0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x6c, 0x12, 0x36, 0x0a, 0x09, 0x77, 0x65, 0x65, 0x6b, 0x61,
|
||||
0x77, 0x61, 0x72, 0x64, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x44, 0x42, 0x44,
|
||||
0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x57, 0x65, 0x65, 0x6b, 0x61, 0x77, 0x61, 0x72, 0x64, 0x45,
|
||||
0x6e, 0x74, 0x72, 0x79, 0x52, 0x09, 0x77, 0x65, 0x65, 0x6b, 0x61, 0x77, 0x61, 0x72, 0x64, 0x12,
|
||||
0x33, 0x0a, 0x08, 0x61, 0x6c, 0x6c, 0x61, 0x77, 0x61, 0x72, 0x64, 0x18, 0x09, 0x20, 0x03, 0x28,
|
||||
0x0b, 0x32, 0x17, 0x2e, 0x44, 0x42, 0x44, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x41, 0x6c, 0x6c,
|
||||
0x61, 0x77, 0x61, 0x72, 0x64, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x61, 0x6c, 0x6c, 0x61,
|
||||
0x77, 0x61, 0x72, 0x64, 0x1a, 0x3c, 0x0a, 0x0e, 0x57, 0x65, 0x65, 0x6b, 0x61, 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, 0x1a, 0x3b, 0x0a, 0x0d, 0x41, 0x6c, 0x6c, 0x61, 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,
|
||||
0x46, 0x0a, 0x14, 0x44, 0x42, 0x44, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x51, 0x69, 0x65, 0x63, 0x75,
|
||||
0x6f, 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, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d,
|
||||
0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x69,
|
||||
0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, 0xfe, 0x01, 0x0a, 0x14, 0x44, 0x42, 0x44, 0x43,
|
||||
0x6f, 0x6c, 0x6f, 0x72, 0x51, 0x69, 0x65, 0x63, 0x75, 0x6f, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64,
|
||||
0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64,
|
||||
0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75,
|
||||
0x69, 0x64, 0x12, 0x2f, 0x0a, 0x07, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x73, 0x18, 0x03, 0x20,
|
||||
0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x44, 0x42, 0x44, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x51, 0x69,
|
||||
0x65, 0x63, 0x75, 0x6f, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x52, 0x07, 0x74, 0x61, 0x72, 0x67,
|
||||
0x65, 0x74, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20,
|
||||
0x01, 0x28, 0x05, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x62,
|
||||
0x61, 0x74, 0x74, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x62, 0x61, 0x74,
|
||||
0x74, 0x69, 0x64, 0x12, 0x33, 0x0a, 0x0a, 0x64, 0x69, 0x66, 0x66, 0x69, 0x63, 0x75, 0x6c, 0x74,
|
||||
0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x44, 0x42, 0x44, 0x43, 0x6f, 0x6c,
|
||||
0x6f, 0x72, 0x44, 0x69, 0x66, 0x66, 0x69, 0x63, 0x75, 0x6c, 0x74, 0x79, 0x52, 0x0a, 0x64, 0x69,
|
||||
0x66, 0x66, 0x69, 0x63, 0x75, 0x6c, 0x74, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x52, 0x65, 0x70, 0x65,
|
||||
0x61, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x52, 0x65, 0x70, 0x65, 0x61, 0x74,
|
||||
0x12, 0x16, 0x0a, 0x06, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x08, 0x20, 0x03, 0x28, 0x09,
|
||||
0x52, 0x06, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x22, 0xb5, 0x01, 0x0a, 0x12, 0x44, 0x42, 0x44,
|
||||
0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x52, 0x6f, 0x6f, 0x6d, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x12,
|
||||
0x21, 0x0a, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e,
|
||||
0x42, 0x61, 0x73, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x04, 0x69, 0x6e,
|
||||
0x66, 0x6f, 0x12, 0x12, 0x0a, 0x04, 0x69, 0x73, 0x61, 0x69, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08,
|
||||
0x52, 0x04, 0x69, 0x73, 0x61, 0x69, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x65, 0x61, 0x64, 0x79, 0x18,
|
||||
0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x72, 0x65, 0x61, 0x64, 0x79, 0x12, 0x14, 0x0a, 0x05,
|
||||
0x73, 0x63, 0x6f, 0x72, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x73, 0x63, 0x6f,
|
||||
0x72, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x6c, 0x18, 0x05,
|
||||
0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x6c, 0x12, 0x20,
|
||||
0x0a, 0x0b, 0x6d, 0x61, 0x78, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x6c, 0x18, 0x06, 0x20,
|
||||
0x01, 0x28, 0x05, 0x52, 0x0b, 0x6d, 0x61, 0x78, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x6c,
|
||||
0x22, 0x8a, 0x01, 0x0a, 0x0e, 0x44, 0x42, 0x44, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x52, 0x65, 0x73,
|
||||
0x75, 0x6c, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x01, 0x20, 0x01,
|
||||
0x28, 0x05, 0x52, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64,
|
||||
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x72,
|
||||
0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x05, 0x52, 0x07, 0x72, 0x65,
|
||||
0x73, 0x75, 0x6c, 0x74, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x61, 0x6c, 0x6c, 0x72, 0x69, 0x67, 0x68,
|
||||
0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x61, 0x6c, 0x6c, 0x72, 0x69, 0x67, 0x68,
|
||||
0x74, 0x12, 0x1a, 0x0a, 0x08, 0x68, 0x61, 0x6c, 0x66, 0x70, 0x61, 0x69, 0x72, 0x18, 0x05, 0x20,
|
||||
0x01, 0x28, 0x05, 0x52, 0x08, 0x68, 0x61, 0x6c, 0x66, 0x70, 0x61, 0x69, 0x72, 0x22, 0x82, 0x02,
|
||||
0x0a, 0x0c, 0x44, 0x42, 0x44, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x52, 0x6f, 0x6f, 0x6d, 0x12, 0x10,
|
||||
0x0a, 0x03, 0x72, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x72, 0x69, 0x64,
|
||||
0x12, 0x33, 0x0a, 0x0a, 0x64, 0x69, 0x66, 0x66, 0x69, 0x63, 0x75, 0x6c, 0x74, 0x79, 0x18, 0x02,
|
||||
0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x44, 0x42, 0x44, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x44,
|
||||
0x69, 0x66, 0x66, 0x69, 0x63, 0x75, 0x6c, 0x74, 0x79, 0x52, 0x0a, 0x64, 0x69, 0x66, 0x66, 0x69,
|
||||
0x63, 0x75, 0x6c, 0x74, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x52, 0x65, 0x70, 0x65, 0x61, 0x74, 0x18,
|
||||
0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x52, 0x65, 0x70, 0x65, 0x61, 0x74, 0x12, 0x18, 0x0a,
|
||||
0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x05, 0x52, 0x07,
|
||||
0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x12, 0x25, 0x0a, 0x03, 0x72, 0x65, 0x64, 0x18, 0x05,
|
||||
0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x44, 0x42, 0x44, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x52,
|
||||
0x6f, 0x6f, 0x6d, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x52, 0x03, 0x72, 0x65, 0x64, 0x12, 0x27,
|
||||
0x0a, 0x04, 0x62, 0x6c, 0x75, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x44,
|
||||
0x42, 0x44, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x52, 0x6f, 0x6f, 0x6d, 0x50, 0x6c, 0x61, 0x79, 0x65,
|
||||
0x72, 0x52, 0x04, 0x62, 0x6c, 0x75, 0x65, 0x12, 0x29, 0x0a, 0x07, 0x68, 0x61, 0x6e, 0x64, 0x6c,
|
||||
0x65, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x44, 0x42, 0x44, 0x43, 0x6f,
|
||||
0x6c, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x07, 0x68, 0x61, 0x6e, 0x64, 0x6c,
|
||||
0x65, 0x73, 0x2a, 0x3a, 0x0a, 0x12, 0x44, 0x42, 0x44, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x44, 0x69,
|
||||
0x66, 0x66, 0x69, 0x63, 0x75, 0x6c, 0x74, 0x79, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x69, 0x6d, 0x70,
|
||||
0x6c, 0x65, 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x44, 0x69, 0x66, 0x66, 0x69, 0x63, 0x75, 0x6c,
|
||||
0x74, 0x79, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x48, 0x65, 0x6c, 0x6c, 0x10, 0x02, 0x42, 0x06,
|
||||
0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
@ -642,7 +703,7 @@ func file_dcolor_dcolor_db_proto_rawDescGZIP() []byte {
|
||||
}
|
||||
|
||||
var file_dcolor_dcolor_db_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
||||
var file_dcolor_dcolor_db_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
|
||||
var file_dcolor_dcolor_db_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
|
||||
var file_dcolor_dcolor_db_proto_goTypes = []interface{}{
|
||||
(DBDColorDifficulty)(0), // 0: DBDColorDifficulty
|
||||
(*DBDColor)(nil), // 1: DBDColor
|
||||
@ -651,21 +712,25 @@ var file_dcolor_dcolor_db_proto_goTypes = []interface{}{
|
||||
(*DBDColorRoomPlayer)(nil), // 4: DBDColorRoomPlayer
|
||||
(*DBDColorResult)(nil), // 5: DBDColorResult
|
||||
(*DBDColorRoom)(nil), // 6: DBDColorRoom
|
||||
(*BaseUserInfo)(nil), // 7: BaseUserInfo
|
||||
nil, // 7: DBDColor.WeekawardEntry
|
||||
nil, // 8: DBDColor.AllawardEntry
|
||||
(*BaseUserInfo)(nil), // 9: BaseUserInfo
|
||||
}
|
||||
var file_dcolor_dcolor_db_proto_depIdxs = []int32{
|
||||
2, // 0: DBDColorQiecuoRecord.targets:type_name -> DBDColorQiecuoInvite
|
||||
0, // 1: DBDColorQiecuoRecord.difficulty:type_name -> DBDColorDifficulty
|
||||
7, // 2: DBDColorRoomPlayer.info:type_name -> BaseUserInfo
|
||||
0, // 3: DBDColorRoom.difficulty:type_name -> DBDColorDifficulty
|
||||
4, // 4: DBDColorRoom.red:type_name -> DBDColorRoomPlayer
|
||||
4, // 5: DBDColorRoom.blue:type_name -> DBDColorRoomPlayer
|
||||
5, // 6: DBDColorRoom.handles:type_name -> DBDColorResult
|
||||
7, // [7:7] is the sub-list for method output_type
|
||||
7, // [7:7] is the sub-list for method input_type
|
||||
7, // [7:7] is the sub-list for extension type_name
|
||||
7, // [7:7] is the sub-list for extension extendee
|
||||
0, // [0:7] is the sub-list for field type_name
|
||||
7, // 0: DBDColor.weekaward:type_name -> DBDColor.WeekawardEntry
|
||||
8, // 1: DBDColor.allaward:type_name -> DBDColor.AllawardEntry
|
||||
2, // 2: DBDColorQiecuoRecord.targets:type_name -> DBDColorQiecuoInvite
|
||||
0, // 3: DBDColorQiecuoRecord.difficulty:type_name -> DBDColorDifficulty
|
||||
9, // 4: DBDColorRoomPlayer.info:type_name -> BaseUserInfo
|
||||
0, // 5: DBDColorRoom.difficulty:type_name -> DBDColorDifficulty
|
||||
4, // 6: DBDColorRoom.red:type_name -> DBDColorRoomPlayer
|
||||
4, // 7: DBDColorRoom.blue:type_name -> DBDColorRoomPlayer
|
||||
5, // 8: DBDColorRoom.handles:type_name -> DBDColorResult
|
||||
9, // [9:9] is the sub-list for method output_type
|
||||
9, // [9:9] is the sub-list for method input_type
|
||||
9, // [9:9] is the sub-list for extension type_name
|
||||
9, // [9:9] is the sub-list for extension extendee
|
||||
0, // [0:9] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_dcolor_dcolor_db_proto_init() }
|
||||
@ -754,7 +819,7 @@ func file_dcolor_dcolor_db_proto_init() {
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_dcolor_dcolor_db_proto_rawDesc,
|
||||
NumEnums: 1,
|
||||
NumMessages: 6,
|
||||
NumMessages: 8,
|
||||
NumExtensions: 0,
|
||||
NumServices: 0,
|
||||
},
|
||||
|
@ -220,7 +220,7 @@ type DColorSingleOverReq struct {
|
||||
Repeat bool `protobuf:"varint,2,opt,name=Repeat,proto3" json:"Repeat"`
|
||||
Results []int32 `protobuf:"varint,3,rep,packed,name=results,proto3" json:"results"`
|
||||
Handles []*DBDColorResult `protobuf:"bytes,4,rep,name=handles,proto3" json:"handles"`
|
||||
Time float32 `protobuf:"fixed32,5,opt,name=time,proto3" json:"time"`
|
||||
Time int32 `protobuf:"varint,5,opt,name=time,proto3" json:"time"`
|
||||
}
|
||||
|
||||
func (x *DColorSingleOverReq) Reset() {
|
||||
@ -283,7 +283,7 @@ func (x *DColorSingleOverReq) GetHandles() []*DBDColorResult {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *DColorSingleOverReq) GetTime() float32 {
|
||||
func (x *DColorSingleOverReq) GetTime() int32 {
|
||||
if x != nil {
|
||||
return x.Time
|
||||
}
|
||||
@ -1115,7 +1115,7 @@ type DColorGameOverPush struct {
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Winside int32 `protobuf:"varint,1,opt,name=winside,proto3" json:"winside"`
|
||||
Winside int32 `protobuf:"varint,1,opt,name=winside,proto3" json:"winside"` //0表示平局 1红方胜 2 蓝方胜
|
||||
RedIntegral int32 `protobuf:"varint,2,opt,name=redIntegral,proto3" json:"redIntegral"`
|
||||
BlueIntegral int32 `protobuf:"varint,3,opt,name=blueIntegral,proto3" json:"blueIntegral"`
|
||||
}
|
||||
@ -1173,6 +1173,124 @@ func (x *DColorGameOverPush) GetBlueIntegral() int32 {
|
||||
return 0
|
||||
}
|
||||
|
||||
type DColorAwardReq struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id"`
|
||||
Atype int32 `protobuf:"varint,2,opt,name=atype,proto3" json:"atype"` //0 周奖励 1 累计奖励
|
||||
}
|
||||
|
||||
func (x *DColorAwardReq) Reset() {
|
||||
*x = DColorAwardReq{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_dcolor_dcolor_msg_proto_msgTypes[21]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *DColorAwardReq) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*DColorAwardReq) ProtoMessage() {}
|
||||
|
||||
func (x *DColorAwardReq) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_dcolor_dcolor_msg_proto_msgTypes[21]
|
||||
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 DColorAwardReq.ProtoReflect.Descriptor instead.
|
||||
func (*DColorAwardReq) Descriptor() ([]byte, []int) {
|
||||
return file_dcolor_dcolor_msg_proto_rawDescGZIP(), []int{21}
|
||||
}
|
||||
|
||||
func (x *DColorAwardReq) GetId() int32 {
|
||||
if x != nil {
|
||||
return x.Id
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *DColorAwardReq) GetAtype() int32 {
|
||||
if x != nil {
|
||||
return x.Atype
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type DColorAwardResp struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id"`
|
||||
Atype int32 `protobuf:"varint,2,opt,name=atype,proto3" json:"atype"` //0 周奖励 1 累计奖励
|
||||
Award []*UserAtno `protobuf:"bytes,3,rep,name=award,proto3" json:"award"` //获取资源
|
||||
}
|
||||
|
||||
func (x *DColorAwardResp) Reset() {
|
||||
*x = DColorAwardResp{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_dcolor_dcolor_msg_proto_msgTypes[22]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *DColorAwardResp) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*DColorAwardResp) ProtoMessage() {}
|
||||
|
||||
func (x *DColorAwardResp) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_dcolor_dcolor_msg_proto_msgTypes[22]
|
||||
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 DColorAwardResp.ProtoReflect.Descriptor instead.
|
||||
func (*DColorAwardResp) Descriptor() ([]byte, []int) {
|
||||
return file_dcolor_dcolor_msg_proto_rawDescGZIP(), []int{22}
|
||||
}
|
||||
|
||||
func (x *DColorAwardResp) GetId() int32 {
|
||||
if x != nil {
|
||||
return x.Id
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *DColorAwardResp) GetAtype() int32 {
|
||||
if x != nil {
|
||||
return x.Atype
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *DColorAwardResp) GetAward() []*UserAtno {
|
||||
if x != nil {
|
||||
return x.Award
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
var File_dcolor_dcolor_msg_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_dcolor_dcolor_msg_proto_rawDesc = []byte{
|
||||
@ -1204,7 +1322,7 @@ var file_dcolor_dcolor_msg_proto_rawDesc = []byte{
|
||||
0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e,
|
||||
0x44, 0x42, 0x44, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x07,
|
||||
0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18,
|
||||
0x05, 0x20, 0x01, 0x28, 0x02, 0x52, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x22, 0x32, 0x0a, 0x14, 0x44,
|
||||
0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x22, 0x32, 0x0a, 0x14, 0x44,
|
||||
0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x53, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x4f, 0x76, 0x65, 0x72, 0x52,
|
||||
0x65, 0x73, 0x70, 0x12, 0x1a, 0x0a, 0x08, 0x49, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x6c, 0x18,
|
||||
0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x49, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x6c, 0x22,
|
||||
@ -1280,8 +1398,17 @@ var file_dcolor_dcolor_msg_proto_rawDesc = []byte{
|
||||
0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x72, 0x65, 0x64, 0x49, 0x6e, 0x74, 0x65,
|
||||
0x67, 0x72, 0x61, 0x6c, 0x12, 0x22, 0x0a, 0x0c, 0x62, 0x6c, 0x75, 0x65, 0x49, 0x6e, 0x74, 0x65,
|
||||
0x67, 0x72, 0x61, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0c, 0x62, 0x6c, 0x75, 0x65,
|
||||
0x49, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x6c, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62,
|
||||
0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
0x49, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x6c, 0x22, 0x36, 0x0a, 0x0e, 0x44, 0x43, 0x6f, 0x6c,
|
||||
0x6f, 0x72, 0x41, 0x77, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64,
|
||||
0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x74,
|
||||
0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x61, 0x74, 0x79, 0x70, 0x65,
|
||||
0x22, 0x58, 0x0a, 0x0f, 0x44, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x41, 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, 0x14, 0x0a, 0x05, 0x61, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01,
|
||||
0x28, 0x05, 0x52, 0x05, 0x61, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1f, 0x0a, 0x05, 0x61, 0x77, 0x61,
|
||||
0x72, 0x64, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x41,
|
||||
0x74, 0x6e, 0x6f, 0x52, 0x05, 0x61, 0x77, 0x61, 0x72, 0x64, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b,
|
||||
0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
@ -1296,7 +1423,7 @@ func file_dcolor_dcolor_msg_proto_rawDescGZIP() []byte {
|
||||
return file_dcolor_dcolor_msg_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_dcolor_dcolor_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 21)
|
||||
var file_dcolor_dcolor_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 23)
|
||||
var file_dcolor_dcolor_msg_proto_goTypes = []interface{}{
|
||||
(*DColorInfoReq)(nil), // 0: DColorInfoReq
|
||||
(*DColorInfoResp)(nil), // 1: DColorInfoResp
|
||||
@ -1319,27 +1446,31 @@ var file_dcolor_dcolor_msg_proto_goTypes = []interface{}{
|
||||
(*DColorHandleResp)(nil), // 18: DColorHandleResp
|
||||
(*DColorGameHandlePush)(nil), // 19: DColorGameHandlePush
|
||||
(*DColorGameOverPush)(nil), // 20: DColorGameOverPush
|
||||
(*DBDColor)(nil), // 21: DBDColor
|
||||
(DBDColorDifficulty)(0), // 22: DBDColorDifficulty
|
||||
(*DBDColorResult)(nil), // 23: DBDColorResult
|
||||
(*BaseUserInfo)(nil), // 24: BaseUserInfo
|
||||
(*DBDColorRoom)(nil), // 25: DBDColorRoom
|
||||
(*DColorAwardReq)(nil), // 21: DColorAwardReq
|
||||
(*DColorAwardResp)(nil), // 22: DColorAwardResp
|
||||
(*DBDColor)(nil), // 23: DBDColor
|
||||
(DBDColorDifficulty)(0), // 24: DBDColorDifficulty
|
||||
(*DBDColorResult)(nil), // 25: DBDColorResult
|
||||
(*BaseUserInfo)(nil), // 26: BaseUserInfo
|
||||
(*DBDColorRoom)(nil), // 27: DBDColorRoom
|
||||
(*UserAtno)(nil), // 28: UserAtno
|
||||
}
|
||||
var file_dcolor_dcolor_msg_proto_depIdxs = []int32{
|
||||
21, // 0: DColorInfoResp.info:type_name -> DBDColor
|
||||
22, // 1: DColorSingleReq.difficulty:type_name -> DBDColorDifficulty
|
||||
22, // 2: DColorSingleOverReq.difficulty:type_name -> DBDColorDifficulty
|
||||
23, // 3: DColorSingleOverReq.handles:type_name -> DBDColorResult
|
||||
22, // 4: DColorQiecuoReq.difficulty:type_name -> DBDColorDifficulty
|
||||
24, // 5: DColorQiecuonotifyPush.user:type_name -> BaseUserInfo
|
||||
22, // 6: DColorQiecuonotifyPush.difficulty:type_name -> DBDColorDifficulty
|
||||
25, // 7: DColorGameReadyPush.room:type_name -> DBDColorRoom
|
||||
23, // 8: DColorGameHandlePush.handle:type_name -> DBDColorResult
|
||||
9, // [9:9] is the sub-list for method output_type
|
||||
9, // [9:9] is the sub-list for method input_type
|
||||
9, // [9:9] is the sub-list for extension type_name
|
||||
9, // [9:9] is the sub-list for extension extendee
|
||||
0, // [0:9] is the sub-list for field type_name
|
||||
23, // 0: DColorInfoResp.info:type_name -> DBDColor
|
||||
24, // 1: DColorSingleReq.difficulty:type_name -> DBDColorDifficulty
|
||||
24, // 2: DColorSingleOverReq.difficulty:type_name -> DBDColorDifficulty
|
||||
25, // 3: DColorSingleOverReq.handles:type_name -> DBDColorResult
|
||||
24, // 4: DColorQiecuoReq.difficulty:type_name -> DBDColorDifficulty
|
||||
26, // 5: DColorQiecuonotifyPush.user:type_name -> BaseUserInfo
|
||||
24, // 6: DColorQiecuonotifyPush.difficulty:type_name -> DBDColorDifficulty
|
||||
27, // 7: DColorGameReadyPush.room:type_name -> DBDColorRoom
|
||||
25, // 8: DColorGameHandlePush.handle:type_name -> DBDColorResult
|
||||
28, // 9: DColorAwardResp.award:type_name -> UserAtno
|
||||
10, // [10:10] is the sub-list for method output_type
|
||||
10, // [10:10] is the sub-list for method input_type
|
||||
10, // [10:10] is the sub-list for extension type_name
|
||||
10, // [10:10] is the sub-list for extension extendee
|
||||
0, // [0:10] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_dcolor_dcolor_msg_proto_init() }
|
||||
@ -1602,6 +1733,30 @@ func file_dcolor_dcolor_msg_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_dcolor_dcolor_msg_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*DColorAwardReq); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_dcolor_dcolor_msg_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*DColorAwardResp); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
@ -1609,7 +1764,7 @@ func file_dcolor_dcolor_msg_proto_init() {
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_dcolor_dcolor_msg_proto_rawDesc,
|
||||
NumEnums: 0,
|
||||
NumMessages: 21,
|
||||
NumMessages: 23,
|
||||
NumExtensions: 0,
|
||||
NumServices: 0,
|
||||
},
|
||||
|
@ -116,6 +116,93 @@ func (x *MainCitySynchPosPush) GetPos() *DBMainCityPos {
|
||||
return nil
|
||||
}
|
||||
|
||||
//在线用户列表请求
|
||||
type MainCityOnlinePlayerReq struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
}
|
||||
|
||||
func (x *MainCityOnlinePlayerReq) Reset() {
|
||||
*x = MainCityOnlinePlayerReq{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_maincity_maincity_msg_proto_msgTypes[2]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *MainCityOnlinePlayerReq) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*MainCityOnlinePlayerReq) ProtoMessage() {}
|
||||
|
||||
func (x *MainCityOnlinePlayerReq) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_maincity_maincity_msg_proto_msgTypes[2]
|
||||
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 MainCityOnlinePlayerReq.ProtoReflect.Descriptor instead.
|
||||
func (*MainCityOnlinePlayerReq) Descriptor() ([]byte, []int) {
|
||||
return file_maincity_maincity_msg_proto_rawDescGZIP(), []int{2}
|
||||
}
|
||||
|
||||
//在线用户列表请求
|
||||
type MainCityOnlinePlayerResp struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Uids []string `protobuf:"bytes,1,rep,name=uids,proto3" json:"uids"`
|
||||
}
|
||||
|
||||
func (x *MainCityOnlinePlayerResp) Reset() {
|
||||
*x = MainCityOnlinePlayerResp{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_maincity_maincity_msg_proto_msgTypes[3]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *MainCityOnlinePlayerResp) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*MainCityOnlinePlayerResp) ProtoMessage() {}
|
||||
|
||||
func (x *MainCityOnlinePlayerResp) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_maincity_maincity_msg_proto_msgTypes[3]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use MainCityOnlinePlayerResp.ProtoReflect.Descriptor instead.
|
||||
func (*MainCityOnlinePlayerResp) Descriptor() ([]byte, []int) {
|
||||
return file_maincity_maincity_msg_proto_rawDescGZIP(), []int{3}
|
||||
}
|
||||
|
||||
func (x *MainCityOnlinePlayerResp) GetUids() []string {
|
||||
if x != nil {
|
||||
return x.Uids
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
var File_maincity_maincity_msg_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_maincity_maincity_msg_proto_rawDesc = []byte{
|
||||
@ -129,8 +216,13 @@ var file_maincity_maincity_msg_proto_rawDesc = []byte{
|
||||
0x70, 0x6f, 0x73, 0x22, 0x38, 0x0a, 0x14, 0x4d, 0x61, 0x69, 0x6e, 0x43, 0x69, 0x74, 0x79, 0x53,
|
||||
0x79, 0x6e, 0x63, 0x68, 0x50, 0x6f, 0x73, 0x50, 0x75, 0x73, 0x68, 0x12, 0x20, 0x0a, 0x03, 0x70,
|
||||
0x6f, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x44, 0x42, 0x4d, 0x61, 0x69,
|
||||
0x6e, 0x43, 0x69, 0x74, 0x79, 0x50, 0x6f, 0x73, 0x52, 0x03, 0x70, 0x6f, 0x73, 0x42, 0x06, 0x5a,
|
||||
0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
0x6e, 0x43, 0x69, 0x74, 0x79, 0x50, 0x6f, 0x73, 0x52, 0x03, 0x70, 0x6f, 0x73, 0x22, 0x19, 0x0a,
|
||||
0x17, 0x4d, 0x61, 0x69, 0x6e, 0x43, 0x69, 0x74, 0x79, 0x4f, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x50,
|
||||
0x6c, 0x61, 0x79, 0x65, 0x72, 0x52, 0x65, 0x71, 0x22, 0x2e, 0x0a, 0x18, 0x4d, 0x61, 0x69, 0x6e,
|
||||
0x43, 0x69, 0x74, 0x79, 0x4f, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72,
|
||||
0x52, 0x65, 0x73, 0x70, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03,
|
||||
0x28, 0x09, 0x52, 0x04, 0x75, 0x69, 0x64, 0x73, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62,
|
||||
0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
@ -145,15 +237,17 @@ func file_maincity_maincity_msg_proto_rawDescGZIP() []byte {
|
||||
return file_maincity_maincity_msg_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_maincity_maincity_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
||||
var file_maincity_maincity_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
|
||||
var file_maincity_maincity_msg_proto_goTypes = []interface{}{
|
||||
(*MainCitySynchPosPeek)(nil), // 0: MainCitySynchPosPeek
|
||||
(*MainCitySynchPosPush)(nil), // 1: MainCitySynchPosPush
|
||||
(*DBMainCityPos)(nil), // 2: DBMainCityPos
|
||||
(*MainCityOnlinePlayerReq)(nil), // 2: MainCityOnlinePlayerReq
|
||||
(*MainCityOnlinePlayerResp)(nil), // 3: MainCityOnlinePlayerResp
|
||||
(*DBMainCityPos)(nil), // 4: DBMainCityPos
|
||||
}
|
||||
var file_maincity_maincity_msg_proto_depIdxs = []int32{
|
||||
2, // 0: MainCitySynchPosPeek.pos:type_name -> DBMainCityPos
|
||||
2, // 1: MainCitySynchPosPush.pos:type_name -> DBMainCityPos
|
||||
4, // 0: MainCitySynchPosPeek.pos:type_name -> DBMainCityPos
|
||||
4, // 1: MainCitySynchPosPush.pos:type_name -> DBMainCityPos
|
||||
2, // [2:2] is the sub-list for method output_type
|
||||
2, // [2:2] is the sub-list for method input_type
|
||||
2, // [2:2] is the sub-list for extension type_name
|
||||
@ -192,6 +286,30 @@ func file_maincity_maincity_msg_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_maincity_maincity_msg_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*MainCityOnlinePlayerReq); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_maincity_maincity_msg_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*MainCityOnlinePlayerResp); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
@ -199,7 +317,7 @@ func file_maincity_maincity_msg_proto_init() {
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_maincity_maincity_msg_proto_rawDesc,
|
||||
NumEnums: 0,
|
||||
NumMessages: 2,
|
||||
NumMessages: 4,
|
||||
NumExtensions: 0,
|
||||
NumServices: 0,
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user