From 264ad9411f4cdbd3971c35b1938e1ff9d096688e Mon Sep 17 00:00:00 2001 From: liwei1dao Date: Thu, 19 Oct 2023 18:08:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E7=8C=9C=E9=A2=9C=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/dcolor/api_info.go | 30 ++ modules/dcolor/api_qiecuo.go | 8 +- modules/dcolor/api_single.go | 25 ++ modules/dcolor/api_singleover.go | 42 +++ modules/dcolor/core.go | 53 +++ modules/dcolor/model.go | 21 ++ pb/dcolor_db.pb.go | 270 +++++++++----- pb/dcolor_msg.pb.go | 620 +++++++++++++++++++++++++------ 8 files changed, 863 insertions(+), 206 deletions(-) create mode 100644 modules/dcolor/api_info.go create mode 100644 modules/dcolor/api_single.go create mode 100644 modules/dcolor/api_singleover.go create mode 100644 modules/dcolor/core.go diff --git a/modules/dcolor/api_info.go b/modules/dcolor/api_info.go new file mode 100644 index 000000000..5810db49c --- /dev/null +++ b/modules/dcolor/api_info.go @@ -0,0 +1,30 @@ +package dcolor + +import ( + "go_dreamfactory/comm" + "go_dreamfactory/pb" +) + +func (this *apiComp) InfoCheck(session comm.IUserSession, req *pb.DColorInfoReq) (errdata *pb.ErrorData) { + return +} + +func (this *apiComp) Info(session comm.IUserSession, req *pb.DColorInfoReq) (errdata *pb.ErrorData) { + var ( + info *pb.DBDColor + err error + ) + if errdata = this.InfoCheck(session, req); errdata != nil { + return + } + if info, err = this.module.model.getModel(session.GetUserId()); err != nil { + errdata = &pb.ErrorData{ + Code: pb.ErrorCode_DBError, + Message: err.Error(), + } + return + } + + session.SendMsg(string(this.module.GetType()), "singleover", &pb.DColorInfoResp{Info: info}) + return +} diff --git a/modules/dcolor/api_qiecuo.go b/modules/dcolor/api_qiecuo.go index dd434a4fc..9b0332827 100644 --- a/modules/dcolor/api_qiecuo.go +++ b/modules/dcolor/api_qiecuo.go @@ -131,13 +131,7 @@ func (this *apiComp) Qiecuo(session comm.IUserSession, req *pb.DColorQiecuoReq) "targets": result.Targets, }) - if err = session.SendMsg(string(this.module.GetType()), "qiecuo", &pb.DColorQiecuoResp{Fid: req.Fid}); err != nil { - errdata = &pb.ErrorData{ - Code: pb.ErrorCode_SystemError, - Title: pb.ErrorCode_SystemError.ToString(), - } - return - } + session.SendMsg(string(this.module.GetType()), "qiecuo", &pb.DColorQiecuoResp{Fid: req.Fid}) this.module.SendMsgToUser(string(this.module.GetType()), "qiecuonotify", &pb.PracticeQiecuonotifyPush{Uid: session.GetUserId(), Name: user.Name, NotifyType: 1}, req.Fid) diff --git a/modules/dcolor/api_single.go b/modules/dcolor/api_single.go new file mode 100644 index 000000000..97472fcc0 --- /dev/null +++ b/modules/dcolor/api_single.go @@ -0,0 +1,25 @@ +package dcolor + +import ( + "go_dreamfactory/comm" + "go_dreamfactory/pb" +) + +//接受切磋 + +func (this *apiComp) SingleCheck(session comm.IUserSession, req *pb.DColorSingleReq) (errdata *pb.ErrorData) { + + return +} + +func (this *apiComp) Single(session comm.IUserSession, req *pb.DColorSingleReq) (errdata *pb.ErrorData) { + var ( + colors []pb.DBDColorColor + ) + if errdata = this.SingleCheck(session, req); errdata != nil { + return + } + colors = RandomColor(req.Difficulty, req.Repeat) + session.SendMsg(string(this.module.GetType()), "single", &pb.DColorSingleResp{Results: colors}) + return +} diff --git a/modules/dcolor/api_singleover.go b/modules/dcolor/api_singleover.go new file mode 100644 index 000000000..bf6dafb15 --- /dev/null +++ b/modules/dcolor/api_singleover.go @@ -0,0 +1,42 @@ +package dcolor + +import ( + "go_dreamfactory/comm" + "go_dreamfactory/pb" +) + +//接受切磋 + +func (this *apiComp) SingleOverCheck(session comm.IUserSession, req *pb.DColorSingleOverReq) (errdata *pb.ErrorData) { + + return +} + +func (this *apiComp) SingleOver(session comm.IUserSession, req *pb.DColorSingleOverReq) (errdata *pb.ErrorData) { + var ( + info *pb.DBDColor + err error + ) + if errdata = this.SingleOverCheck(session, req); errdata != nil { + return + } + if info, err = this.module.model.getModel(session.GetUserId()); err != nil { + errdata = &pb.ErrorData{ + Code: pb.ErrorCode_DBError, + Message: err.Error(), + } + return + } + info.Integral += 300 + if err = this.module.model.Change(session.GetUserId(), map[string]interface{}{ + "integral": info.Integral, + }); err != nil { + errdata = &pb.ErrorData{ + Code: pb.ErrorCode_DBError, + Message: err.Error(), + } + return + } + session.SendMsg(string(this.module.GetType()), "singleover", &pb.DColorSingleOverResp{Integral: info.Integral}) + return +} diff --git a/modules/dcolor/core.go b/modules/dcolor/core.go new file mode 100644 index 000000000..4d47a4918 --- /dev/null +++ b/modules/dcolor/core.go @@ -0,0 +1,53 @@ +package dcolor + +import ( + "crypto/rand" + "go_dreamfactory/pb" + "math/big" +) + +//随机颜色 +func RandomColor(difficulty pb.DBDColorDifficulty, Repeat bool) (temcolors []pb.DBDColorColor) { + var ( + colorNum int + colors []pb.DBDColorColor = []pb.DBDColorColor{ + pb.DBDColorColor_Color_0, + pb.DBDColorColor_Color_1, + pb.DBDColorColor_Color_2, + pb.DBDColorColor_Color_3, + pb.DBDColorColor_Color_4, + pb.DBDColorColor_Color_5, + pb.DBDColorColor_Color_6, + pb.DBDColorColor_Color_7, + } + ) + + switch difficulty { + case pb.DBDColorDifficulty_Simple: + colorNum = 4 + temcolors = make([]pb.DBDColorColor, 4) + break + case pb.DBDColorDifficulty_Difficulty: + colorNum = 6 + temcolors = make([]pb.DBDColorColor, 6) + break + case pb.DBDColorDifficulty_Hell: + colorNum = 8 + temcolors = make([]pb.DBDColorColor, 7) + break + } + if Repeat { + for i := 0; i < colorNum; i++ { + n, _ := rand.Int(rand.Reader, big.NewInt(8)) + temcolors[i] = colors[n.Int64()] + } + } else { + for i := 0; i < colorNum; i++ { + n, _ := rand.Int(rand.Reader, big.NewInt(int64(len(colors)))) + index := n.Int64() + temcolors[i] = colors[index] + colors = append(colors[0:index], colors[index+1:]...) + } + } + return +} diff --git a/modules/dcolor/model.go b/modules/dcolor/model.go index 1d40dc000..4464ead93 100644 --- a/modules/dcolor/model.go +++ b/modules/dcolor/model.go @@ -3,8 +3,11 @@ package dcolor import ( "go_dreamfactory/comm" "go_dreamfactory/lego/core" + "go_dreamfactory/lego/sys/mgo" "go_dreamfactory/modules" + "go_dreamfactory/pb" + "go.mongodb.org/mongo-driver/bson/primitive" "go.mongodb.org/mongo-driver/mongo" "go.mongodb.org/mongo-driver/x/bsonx" ) @@ -22,3 +25,21 @@ func (this *modelComp) Init(service core.IService, module core.IModule, comp cor }) return } + +// 获取用户全部的埋点数据 +func (this *modelComp) getModel(uid string) (info *pb.DBDColor, err error) { + info = &pb.DBDColor{} + if err = this.Get(uid, info); err != nil && err != mgo.MongodbNil { + this.module.Errorln(err) + return + } + if err == mgo.MongodbNil { + info = &pb.DBDColor{ + Id: primitive.NewObjectID().Hex(), + Uid: uid, + Integral: 0, + } + err = this.Add(uid, info) + } + return +} diff --git a/pb/dcolor_db.pb.go b/pb/dcolor_db.pb.go index 17176d181..801e792bf 100644 --- a/pb/dcolor_db.pb.go +++ b/pb/dcolor_db.pb.go @@ -134,6 +134,70 @@ func (DBDColorColor) EnumDescriptor() ([]byte, []int) { return file_dcolor_dcolor_db_proto_rawDescGZIP(), []int{1} } +//切磋请求记录 +type DBDColor struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id" bson:"_id"` + Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid"` + Integral int32 `protobuf:"varint,3,opt,name=integral,proto3" json:"integral"` +} + +func (x *DBDColor) Reset() { + *x = DBDColor{} + if protoimpl.UnsafeEnabled { + mi := &file_dcolor_dcolor_db_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DBDColor) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DBDColor) ProtoMessage() {} + +func (x *DBDColor) ProtoReflect() protoreflect.Message { + mi := &file_dcolor_dcolor_db_proto_msgTypes[0] + 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 DBDColor.ProtoReflect.Descriptor instead. +func (*DBDColor) Descriptor() ([]byte, []int) { + return file_dcolor_dcolor_db_proto_rawDescGZIP(), []int{0} +} + +func (x *DBDColor) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *DBDColor) GetUid() string { + if x != nil { + return x.Uid + } + return "" +} + +func (x *DBDColor) GetIntegral() int32 { + if x != nil { + return x.Integral + } + return 0 +} + type DBDColorQiecuoInvite struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -146,7 +210,7 @@ type DBDColorQiecuoInvite struct { func (x *DBDColorQiecuoInvite) Reset() { *x = DBDColorQiecuoInvite{} if protoimpl.UnsafeEnabled { - mi := &file_dcolor_dcolor_db_proto_msgTypes[0] + mi := &file_dcolor_dcolor_db_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -159,7 +223,7 @@ func (x *DBDColorQiecuoInvite) String() string { func (*DBDColorQiecuoInvite) ProtoMessage() {} func (x *DBDColorQiecuoInvite) ProtoReflect() protoreflect.Message { - mi := &file_dcolor_dcolor_db_proto_msgTypes[0] + mi := &file_dcolor_dcolor_db_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -172,7 +236,7 @@ func (x *DBDColorQiecuoInvite) ProtoReflect() protoreflect.Message { // Deprecated: Use DBDColorQiecuoInvite.ProtoReflect.Descriptor instead. func (*DBDColorQiecuoInvite) Descriptor() ([]byte, []int) { - return file_dcolor_dcolor_db_proto_rawDescGZIP(), []int{0} + return file_dcolor_dcolor_db_proto_rawDescGZIP(), []int{1} } func (x *DBDColorQiecuoInvite) GetUid() string { @@ -208,7 +272,7 @@ type DBDColorQiecuoRecord struct { func (x *DBDColorQiecuoRecord) Reset() { *x = DBDColorQiecuoRecord{} if protoimpl.UnsafeEnabled { - mi := &file_dcolor_dcolor_db_proto_msgTypes[1] + mi := &file_dcolor_dcolor_db_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -221,7 +285,7 @@ func (x *DBDColorQiecuoRecord) String() string { func (*DBDColorQiecuoRecord) ProtoMessage() {} func (x *DBDColorQiecuoRecord) ProtoReflect() protoreflect.Message { - mi := &file_dcolor_dcolor_db_proto_msgTypes[1] + mi := &file_dcolor_dcolor_db_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -234,7 +298,7 @@ func (x *DBDColorQiecuoRecord) ProtoReflect() protoreflect.Message { // Deprecated: Use DBDColorQiecuoRecord.ProtoReflect.Descriptor instead. func (*DBDColorQiecuoRecord) Descriptor() ([]byte, []int) { - return file_dcolor_dcolor_db_proto_rawDescGZIP(), []int{1} + return file_dcolor_dcolor_db_proto_rawDescGZIP(), []int{2} } func (x *DBDColorQiecuoRecord) GetId() string { @@ -307,7 +371,7 @@ type DBDColorRoomPlayer struct { func (x *DBDColorRoomPlayer) Reset() { *x = DBDColorRoomPlayer{} if protoimpl.UnsafeEnabled { - mi := &file_dcolor_dcolor_db_proto_msgTypes[2] + mi := &file_dcolor_dcolor_db_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -320,7 +384,7 @@ func (x *DBDColorRoomPlayer) String() string { func (*DBDColorRoomPlayer) ProtoMessage() {} func (x *DBDColorRoomPlayer) ProtoReflect() protoreflect.Message { - mi := &file_dcolor_dcolor_db_proto_msgTypes[2] + mi := &file_dcolor_dcolor_db_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -333,7 +397,7 @@ func (x *DBDColorRoomPlayer) ProtoReflect() protoreflect.Message { // Deprecated: Use DBDColorRoomPlayer.ProtoReflect.Descriptor instead. func (*DBDColorRoomPlayer) Descriptor() ([]byte, []int) { - return file_dcolor_dcolor_db_proto_rawDescGZIP(), []int{2} + return file_dcolor_dcolor_db_proto_rawDescGZIP(), []int{3} } func (x *DBDColorRoomPlayer) GetInfo() *BaseUserInfo { @@ -379,7 +443,7 @@ type DBDColorResult struct { func (x *DBDColorResult) Reset() { *x = DBDColorResult{} if protoimpl.UnsafeEnabled { - mi := &file_dcolor_dcolor_db_proto_msgTypes[3] + mi := &file_dcolor_dcolor_db_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -392,7 +456,7 @@ func (x *DBDColorResult) String() string { func (*DBDColorResult) ProtoMessage() {} func (x *DBDColorResult) ProtoReflect() protoreflect.Message { - mi := &file_dcolor_dcolor_db_proto_msgTypes[3] + mi := &file_dcolor_dcolor_db_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -405,7 +469,7 @@ func (x *DBDColorResult) ProtoReflect() protoreflect.Message { // Deprecated: Use DBDColorResult.ProtoReflect.Descriptor instead. func (*DBDColorResult) Descriptor() ([]byte, []int) { - return file_dcolor_dcolor_db_proto_rawDescGZIP(), []int{3} + return file_dcolor_dcolor_db_proto_rawDescGZIP(), []int{4} } func (x *DBDColorResult) GetIndex() int32 { @@ -459,7 +523,7 @@ type DBDColorRoom struct { func (x *DBDColorRoom) Reset() { *x = DBDColorRoom{} if protoimpl.UnsafeEnabled { - mi := &file_dcolor_dcolor_db_proto_msgTypes[4] + mi := &file_dcolor_dcolor_db_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -472,7 +536,7 @@ func (x *DBDColorRoom) String() string { func (*DBDColorRoom) ProtoMessage() {} func (x *DBDColorRoom) ProtoReflect() protoreflect.Message { - mi := &file_dcolor_dcolor_db_proto_msgTypes[4] + mi := &file_dcolor_dcolor_db_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -485,7 +549,7 @@ func (x *DBDColorRoom) ProtoReflect() protoreflect.Message { // Deprecated: Use DBDColorRoom.ProtoReflect.Descriptor instead. func (*DBDColorRoom) Descriptor() ([]byte, []int) { - return file_dcolor_dcolor_db_proto_rawDescGZIP(), []int{4} + return file_dcolor_dcolor_db_proto_rawDescGZIP(), []int{5} } func (x *DBDColorRoom) GetRid() string { @@ -528,69 +592,74 @@ 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, 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, 0x9a, 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, + 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x48, 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, 0x03, + 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x6c, 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, 0x28, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, - 0x28, 0x0e, 0x32, 0x0e, 0x2e, 0x44, 0x42, 0x44, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x43, 0x6f, 0x6c, - 0x6f, 0x72, 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, 0xc5, 0x01, 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, 0x28, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, - 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x0e, 0x2e, 0x44, 0x42, 0x44, 0x43, 0x6f, 0x6c, - 0x6f, 0x72, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x52, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, - 0x12, 0x25, 0x0a, 0x03, 0x72, 0x65, 0x64, 0x18, 0x03, 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, - 0x04, 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, 0x05, 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, 0x2a, 0x77, 0x0a, 0x0d, 0x44, 0x42, 0x44, 0x43, 0x6f, - 0x6c, 0x6f, 0x72, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x12, 0x0b, 0x0a, 0x07, 0x43, 0x6f, 0x6c, 0x6f, - 0x72, 0x5f, 0x30, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x5f, 0x31, - 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x5f, 0x32, 0x10, 0x02, 0x12, - 0x0b, 0x0a, 0x07, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x5f, 0x33, 0x10, 0x03, 0x12, 0x0b, 0x0a, 0x07, - 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x5f, 0x34, 0x10, 0x04, 0x12, 0x0b, 0x0a, 0x07, 0x43, 0x6f, 0x6c, - 0x6f, 0x72, 0x5f, 0x35, 0x10, 0x05, 0x12, 0x0b, 0x0a, 0x07, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x5f, - 0x36, 0x10, 0x06, 0x12, 0x0b, 0x0a, 0x07, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x5f, 0x37, 0x10, 0x07, - 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 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, 0x9a, 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, 0x28, 0x0a, 0x07, 0x72, + 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x0e, 0x2e, 0x44, + 0x42, 0x44, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 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, 0xc5, 0x01, + 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, 0x28, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, + 0x0e, 0x32, 0x0e, 0x2e, 0x44, 0x42, 0x44, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x43, 0x6f, 0x6c, 0x6f, + 0x72, 0x52, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x12, 0x25, 0x0a, 0x03, 0x72, 0x65, + 0x64, 0x18, 0x03, 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, 0x04, 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, 0x05, 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, 0x2a, 0x77, 0x0a, 0x0d, 0x44, 0x42, 0x44, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x43, 0x6f, 0x6c, + 0x6f, 0x72, 0x12, 0x0b, 0x0a, 0x07, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x5f, 0x30, 0x10, 0x00, 0x12, + 0x0b, 0x0a, 0x07, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x5f, 0x31, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, + 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x5f, 0x32, 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x43, 0x6f, 0x6c, + 0x6f, 0x72, 0x5f, 0x33, 0x10, 0x03, 0x12, 0x0b, 0x0a, 0x07, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x5f, + 0x34, 0x10, 0x04, 0x12, 0x0b, 0x0a, 0x07, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x5f, 0x35, 0x10, 0x05, + 0x12, 0x0b, 0x0a, 0x07, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x5f, 0x36, 0x10, 0x06, 0x12, 0x0b, 0x0a, + 0x07, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x5f, 0x37, 0x10, 0x07, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, + 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -606,26 +675,27 @@ func file_dcolor_dcolor_db_proto_rawDescGZIP() []byte { } var file_dcolor_dcolor_db_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_dcolor_dcolor_db_proto_msgTypes = make([]protoimpl.MessageInfo, 5) +var file_dcolor_dcolor_db_proto_msgTypes = make([]protoimpl.MessageInfo, 6) var file_dcolor_dcolor_db_proto_goTypes = []interface{}{ (DBDColorDifficulty)(0), // 0: DBDColorDifficulty (DBDColorColor)(0), // 1: DBDColorColor - (*DBDColorQiecuoInvite)(nil), // 2: DBDColorQiecuoInvite - (*DBDColorQiecuoRecord)(nil), // 3: DBDColorQiecuoRecord - (*DBDColorRoomPlayer)(nil), // 4: DBDColorRoomPlayer - (*DBDColorResult)(nil), // 5: DBDColorResult - (*DBDColorRoom)(nil), // 6: DBDColorRoom - (*BaseUserInfo)(nil), // 7: BaseUserInfo + (*DBDColor)(nil), // 2: DBDColor + (*DBDColorQiecuoInvite)(nil), // 3: DBDColorQiecuoInvite + (*DBDColorQiecuoRecord)(nil), // 4: DBDColorQiecuoRecord + (*DBDColorRoomPlayer)(nil), // 5: DBDColorRoomPlayer + (*DBDColorResult)(nil), // 6: DBDColorResult + (*DBDColorRoom)(nil), // 7: DBDColorRoom + (*BaseUserInfo)(nil), // 8: BaseUserInfo } var file_dcolor_dcolor_db_proto_depIdxs = []int32{ - 2, // 0: DBDColorQiecuoRecord.targets:type_name -> DBDColorQiecuoInvite + 3, // 0: DBDColorQiecuoRecord.targets:type_name -> DBDColorQiecuoInvite 0, // 1: DBDColorQiecuoRecord.difficulty:type_name -> DBDColorDifficulty - 7, // 2: DBDColorRoomPlayer.info:type_name -> BaseUserInfo + 8, // 2: DBDColorRoomPlayer.info:type_name -> BaseUserInfo 1, // 3: DBDColorResult.results:type_name -> DBDColorColor 1, // 4: DBDColorRoom.results:type_name -> DBDColorColor - 4, // 5: DBDColorRoom.red:type_name -> DBDColorRoomPlayer - 4, // 6: DBDColorRoom.blue:type_name -> DBDColorRoomPlayer - 5, // 7: DBDColorRoom.handles:type_name -> DBDColorResult + 5, // 5: DBDColorRoom.red:type_name -> DBDColorRoomPlayer + 5, // 6: DBDColorRoom.blue:type_name -> DBDColorRoomPlayer + 6, // 7: DBDColorRoom.handles:type_name -> DBDColorResult 8, // [8:8] is the sub-list for method output_type 8, // [8:8] is the sub-list for method input_type 8, // [8:8] is the sub-list for extension type_name @@ -641,7 +711,7 @@ func file_dcolor_dcolor_db_proto_init() { file_comm_proto_init() if !protoimpl.UnsafeEnabled { file_dcolor_dcolor_db_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DBDColorQiecuoInvite); i { + switch v := v.(*DBDColor); i { case 0: return &v.state case 1: @@ -653,7 +723,7 @@ func file_dcolor_dcolor_db_proto_init() { } } file_dcolor_dcolor_db_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DBDColorQiecuoRecord); i { + switch v := v.(*DBDColorQiecuoInvite); i { case 0: return &v.state case 1: @@ -665,7 +735,7 @@ func file_dcolor_dcolor_db_proto_init() { } } file_dcolor_dcolor_db_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DBDColorRoomPlayer); i { + switch v := v.(*DBDColorQiecuoRecord); i { case 0: return &v.state case 1: @@ -677,7 +747,7 @@ func file_dcolor_dcolor_db_proto_init() { } } file_dcolor_dcolor_db_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DBDColorResult); i { + switch v := v.(*DBDColorRoomPlayer); i { case 0: return &v.state case 1: @@ -689,6 +759,18 @@ func file_dcolor_dcolor_db_proto_init() { } } file_dcolor_dcolor_db_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DBDColorResult); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_dcolor_dcolor_db_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*DBDColorRoom); i { case 0: return &v.state @@ -707,7 +789,7 @@ func file_dcolor_dcolor_db_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_dcolor_dcolor_db_proto_rawDesc, NumEnums: 2, - NumMessages: 5, + NumMessages: 6, NumExtensions: 0, NumServices: 0, }, diff --git a/pb/dcolor_msg.pb.go b/pb/dcolor_msg.pb.go index 84b5c4b6c..616b11c5b 100644 --- a/pb/dcolor_msg.pb.go +++ b/pb/dcolor_msg.pb.go @@ -20,6 +20,300 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) +//获取信息 +type DColorInfoReq struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *DColorInfoReq) Reset() { + *x = DColorInfoReq{} + if protoimpl.UnsafeEnabled { + mi := &file_dcolor_dcolor_msg_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DColorInfoReq) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DColorInfoReq) ProtoMessage() {} + +func (x *DColorInfoReq) ProtoReflect() protoreflect.Message { + mi := &file_dcolor_dcolor_msg_proto_msgTypes[0] + 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 DColorInfoReq.ProtoReflect.Descriptor instead. +func (*DColorInfoReq) Descriptor() ([]byte, []int) { + return file_dcolor_dcolor_msg_proto_rawDescGZIP(), []int{0} +} + +type DColorInfoResp struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Info *DBDColor `protobuf:"bytes,1,opt,name=info,proto3" json:"info"` +} + +func (x *DColorInfoResp) Reset() { + *x = DColorInfoResp{} + if protoimpl.UnsafeEnabled { + mi := &file_dcolor_dcolor_msg_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DColorInfoResp) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DColorInfoResp) ProtoMessage() {} + +func (x *DColorInfoResp) ProtoReflect() protoreflect.Message { + mi := &file_dcolor_dcolor_msg_proto_msgTypes[1] + 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 DColorInfoResp.ProtoReflect.Descriptor instead. +func (*DColorInfoResp) Descriptor() ([]byte, []int) { + return file_dcolor_dcolor_msg_proto_rawDescGZIP(), []int{1} +} + +func (x *DColorInfoResp) GetInfo() *DBDColor { + if x != nil { + return x.Info + } + return nil +} + +//猜颜色单机游戏请求 +type DColorSingleReq struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Difficulty DBDColorDifficulty `protobuf:"varint,1,opt,name=difficulty,proto3,enum=DBDColorDifficulty" json:"difficulty"` + Repeat bool `protobuf:"varint,2,opt,name=Repeat,proto3" json:"Repeat"` +} + +func (x *DColorSingleReq) Reset() { + *x = DColorSingleReq{} + if protoimpl.UnsafeEnabled { + mi := &file_dcolor_dcolor_msg_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DColorSingleReq) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DColorSingleReq) ProtoMessage() {} + +func (x *DColorSingleReq) ProtoReflect() protoreflect.Message { + mi := &file_dcolor_dcolor_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 DColorSingleReq.ProtoReflect.Descriptor instead. +func (*DColorSingleReq) Descriptor() ([]byte, []int) { + return file_dcolor_dcolor_msg_proto_rawDescGZIP(), []int{2} +} + +func (x *DColorSingleReq) GetDifficulty() DBDColorDifficulty { + if x != nil { + return x.Difficulty + } + return DBDColorDifficulty_Simple +} + +func (x *DColorSingleReq) GetRepeat() bool { + if x != nil { + return x.Repeat + } + return false +} + +//猜颜色单机游戏请求 +type DColorSingleResp struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Results []DBDColorColor `protobuf:"varint,2,rep,packed,name=results,proto3,enum=DBDColorColor" json:"results"` +} + +func (x *DColorSingleResp) Reset() { + *x = DColorSingleResp{} + if protoimpl.UnsafeEnabled { + mi := &file_dcolor_dcolor_msg_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DColorSingleResp) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DColorSingleResp) ProtoMessage() {} + +func (x *DColorSingleResp) ProtoReflect() protoreflect.Message { + mi := &file_dcolor_dcolor_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 DColorSingleResp.ProtoReflect.Descriptor instead. +func (*DColorSingleResp) Descriptor() ([]byte, []int) { + return file_dcolor_dcolor_msg_proto_rawDescGZIP(), []int{3} +} + +func (x *DColorSingleResp) GetResults() []DBDColorColor { + if x != nil { + return x.Results + } + return nil +} + +//猜颜色单机游戏请求 +type DColorSingleOverReq struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Results []DBDColorColor `protobuf:"varint,2,rep,packed,name=results,proto3,enum=DBDColorColor" json:"results"` + Handles []*DBDColorResult `protobuf:"bytes,5,rep,name=handles,proto3" json:"handles"` +} + +func (x *DColorSingleOverReq) Reset() { + *x = DColorSingleOverReq{} + if protoimpl.UnsafeEnabled { + mi := &file_dcolor_dcolor_msg_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DColorSingleOverReq) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DColorSingleOverReq) ProtoMessage() {} + +func (x *DColorSingleOverReq) ProtoReflect() protoreflect.Message { + mi := &file_dcolor_dcolor_msg_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DColorSingleOverReq.ProtoReflect.Descriptor instead. +func (*DColorSingleOverReq) Descriptor() ([]byte, []int) { + return file_dcolor_dcolor_msg_proto_rawDescGZIP(), []int{4} +} + +func (x *DColorSingleOverReq) GetResults() []DBDColorColor { + if x != nil { + return x.Results + } + return nil +} + +func (x *DColorSingleOverReq) GetHandles() []*DBDColorResult { + if x != nil { + return x.Handles + } + return nil +} + +//猜颜色单机游戏请求 +type DColorSingleOverResp struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Integral int32 `protobuf:"varint,1,opt,name=Integral,proto3" json:"Integral"` +} + +func (x *DColorSingleOverResp) Reset() { + *x = DColorSingleOverResp{} + if protoimpl.UnsafeEnabled { + mi := &file_dcolor_dcolor_msg_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DColorSingleOverResp) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DColorSingleOverResp) ProtoMessage() {} + +func (x *DColorSingleOverResp) ProtoReflect() protoreflect.Message { + mi := &file_dcolor_dcolor_msg_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DColorSingleOverResp.ProtoReflect.Descriptor instead. +func (*DColorSingleOverResp) Descriptor() ([]byte, []int) { + return file_dcolor_dcolor_msg_proto_rawDescGZIP(), []int{5} +} + +func (x *DColorSingleOverResp) GetIntegral() int32 { + if x != nil { + return x.Integral + } + return 0 +} + ///游戏切磋请求 type DColorQiecuoReq struct { state protoimpl.MessageState @@ -34,7 +328,7 @@ type DColorQiecuoReq struct { func (x *DColorQiecuoReq) Reset() { *x = DColorQiecuoReq{} if protoimpl.UnsafeEnabled { - mi := &file_dcolor_dcolor_msg_proto_msgTypes[0] + mi := &file_dcolor_dcolor_msg_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -47,7 +341,7 @@ func (x *DColorQiecuoReq) String() string { func (*DColorQiecuoReq) ProtoMessage() {} func (x *DColorQiecuoReq) ProtoReflect() protoreflect.Message { - mi := &file_dcolor_dcolor_msg_proto_msgTypes[0] + mi := &file_dcolor_dcolor_msg_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -60,7 +354,7 @@ func (x *DColorQiecuoReq) ProtoReflect() protoreflect.Message { // Deprecated: Use DColorQiecuoReq.ProtoReflect.Descriptor instead. func (*DColorQiecuoReq) Descriptor() ([]byte, []int) { - return file_dcolor_dcolor_msg_proto_rawDescGZIP(), []int{0} + return file_dcolor_dcolor_msg_proto_rawDescGZIP(), []int{6} } func (x *DColorQiecuoReq) GetDifficulty() DBDColorDifficulty { @@ -96,7 +390,7 @@ type DColorQiecuoResp struct { func (x *DColorQiecuoResp) Reset() { *x = DColorQiecuoResp{} if protoimpl.UnsafeEnabled { - mi := &file_dcolor_dcolor_msg_proto_msgTypes[1] + mi := &file_dcolor_dcolor_msg_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -109,7 +403,7 @@ func (x *DColorQiecuoResp) String() string { func (*DColorQiecuoResp) ProtoMessage() {} func (x *DColorQiecuoResp) ProtoReflect() protoreflect.Message { - mi := &file_dcolor_dcolor_msg_proto_msgTypes[1] + mi := &file_dcolor_dcolor_msg_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -122,7 +416,7 @@ func (x *DColorQiecuoResp) ProtoReflect() protoreflect.Message { // Deprecated: Use DColorQiecuoResp.ProtoReflect.Descriptor instead. func (*DColorQiecuoResp) Descriptor() ([]byte, []int) { - return file_dcolor_dcolor_msg_proto_rawDescGZIP(), []int{1} + return file_dcolor_dcolor_msg_proto_rawDescGZIP(), []int{7} } func (x *DColorQiecuoResp) GetFid() string { @@ -151,7 +445,7 @@ type DColorAcceptReq struct { func (x *DColorAcceptReq) Reset() { *x = DColorAcceptReq{} if protoimpl.UnsafeEnabled { - mi := &file_dcolor_dcolor_msg_proto_msgTypes[2] + mi := &file_dcolor_dcolor_msg_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -164,7 +458,7 @@ func (x *DColorAcceptReq) String() string { func (*DColorAcceptReq) ProtoMessage() {} func (x *DColorAcceptReq) ProtoReflect() protoreflect.Message { - mi := &file_dcolor_dcolor_msg_proto_msgTypes[2] + mi := &file_dcolor_dcolor_msg_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -177,7 +471,7 @@ func (x *DColorAcceptReq) ProtoReflect() protoreflect.Message { // Deprecated: Use DColorAcceptReq.ProtoReflect.Descriptor instead. func (*DColorAcceptReq) Descriptor() ([]byte, []int) { - return file_dcolor_dcolor_msg_proto_rawDescGZIP(), []int{2} + return file_dcolor_dcolor_msg_proto_rawDescGZIP(), []int{8} } func (x *DColorAcceptReq) GetUid() string { @@ -198,7 +492,7 @@ type DColorAcceptResp struct { func (x *DColorAcceptResp) Reset() { *x = DColorAcceptResp{} if protoimpl.UnsafeEnabled { - mi := &file_dcolor_dcolor_msg_proto_msgTypes[3] + mi := &file_dcolor_dcolor_msg_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -211,7 +505,7 @@ func (x *DColorAcceptResp) String() string { func (*DColorAcceptResp) ProtoMessage() {} func (x *DColorAcceptResp) ProtoReflect() protoreflect.Message { - mi := &file_dcolor_dcolor_msg_proto_msgTypes[3] + mi := &file_dcolor_dcolor_msg_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -224,7 +518,7 @@ func (x *DColorAcceptResp) ProtoReflect() protoreflect.Message { // Deprecated: Use DColorAcceptResp.ProtoReflect.Descriptor instead. func (*DColorAcceptResp) Descriptor() ([]byte, []int) { - return file_dcolor_dcolor_msg_proto_rawDescGZIP(), []int{3} + return file_dcolor_dcolor_msg_proto_rawDescGZIP(), []int{9} } func (x *DColorAcceptResp) GetIsSucc() bool { @@ -246,7 +540,7 @@ type DColorRefuseReq struct { func (x *DColorRefuseReq) Reset() { *x = DColorRefuseReq{} if protoimpl.UnsafeEnabled { - mi := &file_dcolor_dcolor_msg_proto_msgTypes[4] + mi := &file_dcolor_dcolor_msg_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -259,7 +553,7 @@ func (x *DColorRefuseReq) String() string { func (*DColorRefuseReq) ProtoMessage() {} func (x *DColorRefuseReq) ProtoReflect() protoreflect.Message { - mi := &file_dcolor_dcolor_msg_proto_msgTypes[4] + mi := &file_dcolor_dcolor_msg_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -272,7 +566,7 @@ func (x *DColorRefuseReq) ProtoReflect() protoreflect.Message { // Deprecated: Use DColorRefuseReq.ProtoReflect.Descriptor instead. func (*DColorRefuseReq) Descriptor() ([]byte, []int) { - return file_dcolor_dcolor_msg_proto_rawDescGZIP(), []int{4} + return file_dcolor_dcolor_msg_proto_rawDescGZIP(), []int{10} } func (x *DColorRefuseReq) GetUid() string { @@ -293,7 +587,7 @@ type DColorRefuseResp struct { func (x *DColorRefuseResp) Reset() { *x = DColorRefuseResp{} if protoimpl.UnsafeEnabled { - mi := &file_dcolor_dcolor_msg_proto_msgTypes[5] + mi := &file_dcolor_dcolor_msg_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -306,7 +600,7 @@ func (x *DColorRefuseResp) String() string { func (*DColorRefuseResp) ProtoMessage() {} func (x *DColorRefuseResp) ProtoReflect() protoreflect.Message { - mi := &file_dcolor_dcolor_msg_proto_msgTypes[5] + mi := &file_dcolor_dcolor_msg_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -319,7 +613,7 @@ func (x *DColorRefuseResp) ProtoReflect() protoreflect.Message { // Deprecated: Use DColorRefuseResp.ProtoReflect.Descriptor instead. func (*DColorRefuseResp) Descriptor() ([]byte, []int) { - return file_dcolor_dcolor_msg_proto_rawDescGZIP(), []int{5} + return file_dcolor_dcolor_msg_proto_rawDescGZIP(), []int{11} } func (x *DColorRefuseResp) GetIsSucc() bool { @@ -344,7 +638,7 @@ type DColorQiecuonotifyPush struct { func (x *DColorQiecuonotifyPush) Reset() { *x = DColorQiecuonotifyPush{} if protoimpl.UnsafeEnabled { - mi := &file_dcolor_dcolor_msg_proto_msgTypes[6] + mi := &file_dcolor_dcolor_msg_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -357,7 +651,7 @@ func (x *DColorQiecuonotifyPush) String() string { func (*DColorQiecuonotifyPush) ProtoMessage() {} func (x *DColorQiecuonotifyPush) ProtoReflect() protoreflect.Message { - mi := &file_dcolor_dcolor_msg_proto_msgTypes[6] + mi := &file_dcolor_dcolor_msg_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -370,7 +664,7 @@ func (x *DColorQiecuonotifyPush) ProtoReflect() protoreflect.Message { // Deprecated: Use DColorQiecuonotifyPush.ProtoReflect.Descriptor instead. func (*DColorQiecuonotifyPush) Descriptor() ([]byte, []int) { - return file_dcolor_dcolor_msg_proto_rawDescGZIP(), []int{6} + return file_dcolor_dcolor_msg_proto_rawDescGZIP(), []int{12} } func (x *DColorQiecuonotifyPush) GetUser() *BaseUserInfo { @@ -414,7 +708,7 @@ type DColorGameReadyPush struct { func (x *DColorGameReadyPush) Reset() { *x = DColorGameReadyPush{} if protoimpl.UnsafeEnabled { - mi := &file_dcolor_dcolor_msg_proto_msgTypes[7] + mi := &file_dcolor_dcolor_msg_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -427,7 +721,7 @@ func (x *DColorGameReadyPush) String() string { func (*DColorGameReadyPush) ProtoMessage() {} func (x *DColorGameReadyPush) ProtoReflect() protoreflect.Message { - mi := &file_dcolor_dcolor_msg_proto_msgTypes[7] + mi := &file_dcolor_dcolor_msg_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -440,7 +734,7 @@ func (x *DColorGameReadyPush) ProtoReflect() protoreflect.Message { // Deprecated: Use DColorGameReadyPush.ProtoReflect.Descriptor instead. func (*DColorGameReadyPush) Descriptor() ([]byte, []int) { - return file_dcolor_dcolor_msg_proto_rawDescGZIP(), []int{7} + return file_dcolor_dcolor_msg_proto_rawDescGZIP(), []int{13} } func (x *DColorGameReadyPush) GetServicePath() string { @@ -476,7 +770,7 @@ type DColorLoadCompleteReq struct { func (x *DColorLoadCompleteReq) Reset() { *x = DColorLoadCompleteReq{} if protoimpl.UnsafeEnabled { - mi := &file_dcolor_dcolor_msg_proto_msgTypes[8] + mi := &file_dcolor_dcolor_msg_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -489,7 +783,7 @@ func (x *DColorLoadCompleteReq) String() string { func (*DColorLoadCompleteReq) ProtoMessage() {} func (x *DColorLoadCompleteReq) ProtoReflect() protoreflect.Message { - mi := &file_dcolor_dcolor_msg_proto_msgTypes[8] + mi := &file_dcolor_dcolor_msg_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -502,7 +796,7 @@ func (x *DColorLoadCompleteReq) ProtoReflect() protoreflect.Message { // Deprecated: Use DColorLoadCompleteReq.ProtoReflect.Descriptor instead. func (*DColorLoadCompleteReq) Descriptor() ([]byte, []int) { - return file_dcolor_dcolor_msg_proto_rawDescGZIP(), []int{8} + return file_dcolor_dcolor_msg_proto_rawDescGZIP(), []int{14} } func (x *DColorLoadCompleteReq) GetRoomid() string { @@ -525,7 +819,7 @@ type DColorLoadCompleteResp struct { func (x *DColorLoadCompleteResp) Reset() { *x = DColorLoadCompleteResp{} if protoimpl.UnsafeEnabled { - mi := &file_dcolor_dcolor_msg_proto_msgTypes[9] + mi := &file_dcolor_dcolor_msg_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -538,7 +832,7 @@ func (x *DColorLoadCompleteResp) String() string { func (*DColorLoadCompleteResp) ProtoMessage() {} func (x *DColorLoadCompleteResp) ProtoReflect() protoreflect.Message { - mi := &file_dcolor_dcolor_msg_proto_msgTypes[9] + mi := &file_dcolor_dcolor_msg_proto_msgTypes[15] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -551,7 +845,7 @@ func (x *DColorLoadCompleteResp) ProtoReflect() protoreflect.Message { // Deprecated: Use DColorLoadCompleteResp.ProtoReflect.Descriptor instead. func (*DColorLoadCompleteResp) Descriptor() ([]byte, []int) { - return file_dcolor_dcolor_msg_proto_rawDescGZIP(), []int{9} + return file_dcolor_dcolor_msg_proto_rawDescGZIP(), []int{15} } func (x *DColorLoadCompleteResp) GetRoomid() string { @@ -581,7 +875,7 @@ type DColorGameStartPush struct { func (x *DColorGameStartPush) Reset() { *x = DColorGameStartPush{} if protoimpl.UnsafeEnabled { - mi := &file_dcolor_dcolor_msg_proto_msgTypes[10] + mi := &file_dcolor_dcolor_msg_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -594,7 +888,7 @@ func (x *DColorGameStartPush) String() string { func (*DColorGameStartPush) ProtoMessage() {} func (x *DColorGameStartPush) ProtoReflect() protoreflect.Message { - mi := &file_dcolor_dcolor_msg_proto_msgTypes[10] + mi := &file_dcolor_dcolor_msg_proto_msgTypes[16] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -607,7 +901,7 @@ func (x *DColorGameStartPush) ProtoReflect() protoreflect.Message { // Deprecated: Use DColorGameStartPush.ProtoReflect.Descriptor instead. func (*DColorGameStartPush) Descriptor() ([]byte, []int) { - return file_dcolor_dcolor_msg_proto_rawDescGZIP(), []int{10} + return file_dcolor_dcolor_msg_proto_rawDescGZIP(), []int{16} } func (x *DColorGameStartPush) GetRoomid() string { @@ -637,7 +931,7 @@ type DColorHandleReq struct { func (x *DColorHandleReq) Reset() { *x = DColorHandleReq{} if protoimpl.UnsafeEnabled { - mi := &file_dcolor_dcolor_msg_proto_msgTypes[11] + mi := &file_dcolor_dcolor_msg_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -650,7 +944,7 @@ func (x *DColorHandleReq) String() string { func (*DColorHandleReq) ProtoMessage() {} func (x *DColorHandleReq) ProtoReflect() protoreflect.Message { - mi := &file_dcolor_dcolor_msg_proto_msgTypes[11] + mi := &file_dcolor_dcolor_msg_proto_msgTypes[17] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -663,7 +957,7 @@ func (x *DColorHandleReq) ProtoReflect() protoreflect.Message { // Deprecated: Use DColorHandleReq.ProtoReflect.Descriptor instead. func (*DColorHandleReq) Descriptor() ([]byte, []int) { - return file_dcolor_dcolor_msg_proto_rawDescGZIP(), []int{11} + return file_dcolor_dcolor_msg_proto_rawDescGZIP(), []int{17} } func (x *DColorHandleReq) GetIndex() int32 { @@ -690,7 +984,7 @@ type DColorHandleResp struct { func (x *DColorHandleResp) Reset() { *x = DColorHandleResp{} if protoimpl.UnsafeEnabled { - mi := &file_dcolor_dcolor_msg_proto_msgTypes[12] + mi := &file_dcolor_dcolor_msg_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -703,7 +997,7 @@ func (x *DColorHandleResp) String() string { func (*DColorHandleResp) ProtoMessage() {} func (x *DColorHandleResp) ProtoReflect() protoreflect.Message { - mi := &file_dcolor_dcolor_msg_proto_msgTypes[12] + mi := &file_dcolor_dcolor_msg_proto_msgTypes[18] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -716,7 +1010,7 @@ func (x *DColorHandleResp) ProtoReflect() protoreflect.Message { // Deprecated: Use DColorHandleResp.ProtoReflect.Descriptor instead. func (*DColorHandleResp) Descriptor() ([]byte, []int) { - return file_dcolor_dcolor_msg_proto_rawDescGZIP(), []int{12} + return file_dcolor_dcolor_msg_proto_rawDescGZIP(), []int{18} } //游戏结果推送 @@ -732,7 +1026,7 @@ type DColorGameHandlePush struct { func (x *DColorGameHandlePush) Reset() { *x = DColorGameHandlePush{} if protoimpl.UnsafeEnabled { - mi := &file_dcolor_dcolor_msg_proto_msgTypes[13] + mi := &file_dcolor_dcolor_msg_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -745,7 +1039,7 @@ func (x *DColorGameHandlePush) String() string { func (*DColorGameHandlePush) ProtoMessage() {} func (x *DColorGameHandlePush) ProtoReflect() protoreflect.Message { - mi := &file_dcolor_dcolor_msg_proto_msgTypes[13] + mi := &file_dcolor_dcolor_msg_proto_msgTypes[19] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -758,7 +1052,7 @@ func (x *DColorGameHandlePush) ProtoReflect() protoreflect.Message { // Deprecated: Use DColorGameHandlePush.ProtoReflect.Descriptor instead. func (*DColorGameHandlePush) Descriptor() ([]byte, []int) { - return file_dcolor_dcolor_msg_proto_rawDescGZIP(), []int{13} + return file_dcolor_dcolor_msg_proto_rawDescGZIP(), []int{19} } func (x *DColorGameHandlePush) GetUid() string { @@ -781,14 +1075,15 @@ type DColorGameOverPush struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Winside int32 `protobuf:"varint,1,opt,name=winside,proto3" json:"winside"` - Award []*UserAtno `protobuf:"bytes,2,rep,name=award,proto3" json:"award"` //奖励 + Winside int32 `protobuf:"varint,1,opt,name=winside,proto3" json:"winside"` + RedIntegral int32 `protobuf:"varint,2,opt,name=redIntegral,proto3" json:"redIntegral"` + BlueIntegral int32 `protobuf:"varint,3,opt,name=blueIntegral,proto3" json:"blueIntegral"` } func (x *DColorGameOverPush) Reset() { *x = DColorGameOverPush{} if protoimpl.UnsafeEnabled { - mi := &file_dcolor_dcolor_msg_proto_msgTypes[14] + mi := &file_dcolor_dcolor_msg_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -801,7 +1096,7 @@ func (x *DColorGameOverPush) String() string { func (*DColorGameOverPush) ProtoMessage() {} func (x *DColorGameOverPush) ProtoReflect() protoreflect.Message { - mi := &file_dcolor_dcolor_msg_proto_msgTypes[14] + mi := &file_dcolor_dcolor_msg_proto_msgTypes[20] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -814,7 +1109,7 @@ func (x *DColorGameOverPush) ProtoReflect() protoreflect.Message { // Deprecated: Use DColorGameOverPush.ProtoReflect.Descriptor instead. func (*DColorGameOverPush) Descriptor() ([]byte, []int) { - return file_dcolor_dcolor_msg_proto_rawDescGZIP(), []int{14} + return file_dcolor_dcolor_msg_proto_rawDescGZIP(), []int{20} } func (x *DColorGameOverPush) GetWinside() int32 { @@ -824,11 +1119,18 @@ func (x *DColorGameOverPush) GetWinside() int32 { return 0 } -func (x *DColorGameOverPush) GetAward() []*UserAtno { +func (x *DColorGameOverPush) GetRedIntegral() int32 { if x != nil { - return x.Award + return x.RedIntegral } - return nil + return 0 +} + +func (x *DColorGameOverPush) GetBlueIntegral() int32 { + if x != nil { + return x.BlueIntegral + } + return 0 } var File_dcolor_dcolor_msg_proto protoreflect.FileDescriptor @@ -837,7 +1139,31 @@ var file_dcolor_dcolor_msg_proto_rawDesc = []byte{ 0x0a, 0x17, 0x64, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x2f, 0x64, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x5f, 0x6d, 0x73, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 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, 0x70, 0x0a, + 0x6f, 0x1a, 0x0a, 0x63, 0x6f, 0x6d, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x0f, 0x0a, + 0x0d, 0x44, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x22, 0x2f, + 0x0a, 0x0e, 0x44, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, + 0x12, 0x1d, 0x0a, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x09, + 0x2e, 0x44, 0x42, 0x44, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x52, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x22, + 0x5e, 0x0a, 0x0f, 0x44, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x53, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x52, + 0x65, 0x71, 0x12, 0x33, 0x0a, 0x0a, 0x64, 0x69, 0x66, 0x66, 0x69, 0x63, 0x75, 0x6c, 0x74, 0x79, + 0x18, 0x01, 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, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x52, 0x65, 0x70, 0x65, 0x61, 0x74, 0x22, + 0x3c, 0x0a, 0x10, 0x44, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x53, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x52, + 0x65, 0x73, 0x70, 0x12, 0x28, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x02, + 0x20, 0x03, 0x28, 0x0e, 0x32, 0x0e, 0x2e, 0x44, 0x42, 0x44, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x43, + 0x6f, 0x6c, 0x6f, 0x72, 0x52, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x22, 0x6a, 0x0a, + 0x13, 0x44, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x53, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x4f, 0x76, 0x65, + 0x72, 0x52, 0x65, 0x71, 0x12, 0x28, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, + 0x02, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x0e, 0x2e, 0x44, 0x42, 0x44, 0x43, 0x6f, 0x6c, 0x6f, 0x72, + 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x52, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x12, 0x29, + 0x0a, 0x07, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x73, 0x18, 0x05, 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, 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, 0x70, 0x0a, 0x0f, 0x44, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x51, 0x69, 0x65, 0x63, 0x75, 0x6f, 0x52, 0x65, 0x71, 0x12, 0x33, 0x0a, 0x0a, 0x64, 0x69, 0x66, 0x66, 0x69, 0x63, 0x75, 0x6c, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x44, 0x42, 0x44, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x44, @@ -901,13 +1227,15 @@ var file_dcolor_dcolor_msg_proto_rawDesc = []byte{ 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x27, 0x0a, 0x06, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x44, 0x42, 0x44, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x06, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, - 0x22, 0x4f, 0x0a, 0x12, 0x44, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x47, 0x61, 0x6d, 0x65, 0x4f, 0x76, + 0x22, 0x74, 0x0a, 0x12, 0x44, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x47, 0x61, 0x6d, 0x65, 0x4f, 0x76, 0x65, 0x72, 0x50, 0x75, 0x73, 0x68, 0x12, 0x18, 0x0a, 0x07, 0x77, 0x69, 0x6e, 0x73, 0x69, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x77, 0x69, 0x6e, 0x73, 0x69, 0x64, 0x65, - 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, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x33, + 0x12, 0x20, 0x0a, 0x0b, 0x72, 0x65, 0x64, 0x49, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 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, } var ( @@ -922,43 +1250,53 @@ 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, 15) +var file_dcolor_dcolor_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 21) var file_dcolor_dcolor_msg_proto_goTypes = []interface{}{ - (*DColorQiecuoReq)(nil), // 0: DColorQiecuoReq - (*DColorQiecuoResp)(nil), // 1: DColorQiecuoResp - (*DColorAcceptReq)(nil), // 2: DColorAcceptReq - (*DColorAcceptResp)(nil), // 3: DColorAcceptResp - (*DColorRefuseReq)(nil), // 4: DColorRefuseReq - (*DColorRefuseResp)(nil), // 5: DColorRefuseResp - (*DColorQiecuonotifyPush)(nil), // 6: DColorQiecuonotifyPush - (*DColorGameReadyPush)(nil), // 7: DColorGameReadyPush - (*DColorLoadCompleteReq)(nil), // 8: DColorLoadCompleteReq - (*DColorLoadCompleteResp)(nil), // 9: DColorLoadCompleteResp - (*DColorGameStartPush)(nil), // 10: DColorGameStartPush - (*DColorHandleReq)(nil), // 11: DColorHandleReq - (*DColorHandleResp)(nil), // 12: DColorHandleResp - (*DColorGameHandlePush)(nil), // 13: DColorGameHandlePush - (*DColorGameOverPush)(nil), // 14: DColorGameOverPush - (DBDColorDifficulty)(0), // 15: DBDColorDifficulty - (*BaseUserInfo)(nil), // 16: BaseUserInfo - (*DBDColorRoom)(nil), // 17: DBDColorRoom - (DBDColorColor)(0), // 18: DBDColorColor - (*DBDColorResult)(nil), // 19: DBDColorResult - (*UserAtno)(nil), // 20: UserAtno + (*DColorInfoReq)(nil), // 0: DColorInfoReq + (*DColorInfoResp)(nil), // 1: DColorInfoResp + (*DColorSingleReq)(nil), // 2: DColorSingleReq + (*DColorSingleResp)(nil), // 3: DColorSingleResp + (*DColorSingleOverReq)(nil), // 4: DColorSingleOverReq + (*DColorSingleOverResp)(nil), // 5: DColorSingleOverResp + (*DColorQiecuoReq)(nil), // 6: DColorQiecuoReq + (*DColorQiecuoResp)(nil), // 7: DColorQiecuoResp + (*DColorAcceptReq)(nil), // 8: DColorAcceptReq + (*DColorAcceptResp)(nil), // 9: DColorAcceptResp + (*DColorRefuseReq)(nil), // 10: DColorRefuseReq + (*DColorRefuseResp)(nil), // 11: DColorRefuseResp + (*DColorQiecuonotifyPush)(nil), // 12: DColorQiecuonotifyPush + (*DColorGameReadyPush)(nil), // 13: DColorGameReadyPush + (*DColorLoadCompleteReq)(nil), // 14: DColorLoadCompleteReq + (*DColorLoadCompleteResp)(nil), // 15: DColorLoadCompleteResp + (*DColorGameStartPush)(nil), // 16: DColorGameStartPush + (*DColorHandleReq)(nil), // 17: DColorHandleReq + (*DColorHandleResp)(nil), // 18: DColorHandleResp + (*DColorGameHandlePush)(nil), // 19: DColorGameHandlePush + (*DColorGameOverPush)(nil), // 20: DColorGameOverPush + (*DBDColor)(nil), // 21: DBDColor + (DBDColorDifficulty)(0), // 22: DBDColorDifficulty + (DBDColorColor)(0), // 23: DBDColorColor + (*DBDColorResult)(nil), // 24: DBDColorResult + (*BaseUserInfo)(nil), // 25: BaseUserInfo + (*DBDColorRoom)(nil), // 26: DBDColorRoom } var file_dcolor_dcolor_msg_proto_depIdxs = []int32{ - 15, // 0: DColorQiecuoReq.difficulty:type_name -> DBDColorDifficulty - 16, // 1: DColorQiecuonotifyPush.user:type_name -> BaseUserInfo - 15, // 2: DColorQiecuonotifyPush.difficulty:type_name -> DBDColorDifficulty - 17, // 3: DColorGameReadyPush.room:type_name -> DBDColorRoom - 18, // 4: DColorHandleReq.results:type_name -> DBDColorColor - 19, // 5: DColorGameHandlePush.handle:type_name -> DBDColorResult - 20, // 6: DColorGameOverPush.award:type_name -> UserAtno - 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 + 21, // 0: DColorInfoResp.info:type_name -> DBDColor + 22, // 1: DColorSingleReq.difficulty:type_name -> DBDColorDifficulty + 23, // 2: DColorSingleResp.results:type_name -> DBDColorColor + 23, // 3: DColorSingleOverReq.results:type_name -> DBDColorColor + 24, // 4: DColorSingleOverReq.handles:type_name -> DBDColorResult + 22, // 5: DColorQiecuoReq.difficulty:type_name -> DBDColorDifficulty + 25, // 6: DColorQiecuonotifyPush.user:type_name -> BaseUserInfo + 22, // 7: DColorQiecuonotifyPush.difficulty:type_name -> DBDColorDifficulty + 26, // 8: DColorGameReadyPush.room:type_name -> DBDColorRoom + 23, // 9: DColorHandleReq.results:type_name -> DBDColorColor + 24, // 10: DColorGameHandlePush.handle:type_name -> DBDColorResult + 11, // [11:11] is the sub-list for method output_type + 11, // [11:11] is the sub-list for method input_type + 11, // [11:11] is the sub-list for extension type_name + 11, // [11:11] is the sub-list for extension extendee + 0, // [0:11] is the sub-list for field type_name } func init() { file_dcolor_dcolor_msg_proto_init() } @@ -970,7 +1308,7 @@ func file_dcolor_dcolor_msg_proto_init() { file_comm_proto_init() if !protoimpl.UnsafeEnabled { file_dcolor_dcolor_msg_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DColorQiecuoReq); i { + switch v := v.(*DColorInfoReq); i { case 0: return &v.state case 1: @@ -982,7 +1320,7 @@ func file_dcolor_dcolor_msg_proto_init() { } } file_dcolor_dcolor_msg_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DColorQiecuoResp); i { + switch v := v.(*DColorInfoResp); i { case 0: return &v.state case 1: @@ -994,7 +1332,7 @@ func file_dcolor_dcolor_msg_proto_init() { } } file_dcolor_dcolor_msg_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DColorAcceptReq); i { + switch v := v.(*DColorSingleReq); i { case 0: return &v.state case 1: @@ -1006,7 +1344,7 @@ func file_dcolor_dcolor_msg_proto_init() { } } file_dcolor_dcolor_msg_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DColorAcceptResp); i { + switch v := v.(*DColorSingleResp); i { case 0: return &v.state case 1: @@ -1018,7 +1356,7 @@ func file_dcolor_dcolor_msg_proto_init() { } } file_dcolor_dcolor_msg_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DColorRefuseReq); i { + switch v := v.(*DColorSingleOverReq); i { case 0: return &v.state case 1: @@ -1030,7 +1368,7 @@ func file_dcolor_dcolor_msg_proto_init() { } } file_dcolor_dcolor_msg_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DColorRefuseResp); i { + switch v := v.(*DColorSingleOverResp); i { case 0: return &v.state case 1: @@ -1042,7 +1380,7 @@ func file_dcolor_dcolor_msg_proto_init() { } } file_dcolor_dcolor_msg_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DColorQiecuonotifyPush); i { + switch v := v.(*DColorQiecuoReq); i { case 0: return &v.state case 1: @@ -1054,7 +1392,7 @@ func file_dcolor_dcolor_msg_proto_init() { } } file_dcolor_dcolor_msg_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DColorGameReadyPush); i { + switch v := v.(*DColorQiecuoResp); i { case 0: return &v.state case 1: @@ -1066,7 +1404,7 @@ func file_dcolor_dcolor_msg_proto_init() { } } file_dcolor_dcolor_msg_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DColorLoadCompleteReq); i { + switch v := v.(*DColorAcceptReq); i { case 0: return &v.state case 1: @@ -1078,7 +1416,7 @@ func file_dcolor_dcolor_msg_proto_init() { } } file_dcolor_dcolor_msg_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DColorLoadCompleteResp); i { + switch v := v.(*DColorAcceptResp); i { case 0: return &v.state case 1: @@ -1090,7 +1428,7 @@ func file_dcolor_dcolor_msg_proto_init() { } } file_dcolor_dcolor_msg_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DColorGameStartPush); i { + switch v := v.(*DColorRefuseReq); i { case 0: return &v.state case 1: @@ -1102,7 +1440,7 @@ func file_dcolor_dcolor_msg_proto_init() { } } file_dcolor_dcolor_msg_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DColorHandleReq); i { + switch v := v.(*DColorRefuseResp); i { case 0: return &v.state case 1: @@ -1114,7 +1452,7 @@ func file_dcolor_dcolor_msg_proto_init() { } } file_dcolor_dcolor_msg_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DColorHandleResp); i { + switch v := v.(*DColorQiecuonotifyPush); i { case 0: return &v.state case 1: @@ -1126,7 +1464,7 @@ func file_dcolor_dcolor_msg_proto_init() { } } file_dcolor_dcolor_msg_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DColorGameHandlePush); i { + switch v := v.(*DColorGameReadyPush); i { case 0: return &v.state case 1: @@ -1138,6 +1476,78 @@ func file_dcolor_dcolor_msg_proto_init() { } } file_dcolor_dcolor_msg_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DColorLoadCompleteReq); 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[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DColorLoadCompleteResp); 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[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DColorGameStartPush); 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[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DColorHandleReq); 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[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DColorHandleResp); 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[19].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DColorGameHandlePush); 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[20].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*DColorGameOverPush); i { case 0: return &v.state @@ -1156,7 +1566,7 @@ func file_dcolor_dcolor_msg_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_dcolor_dcolor_msg_proto_rawDesc, NumEnums: 0, - NumMessages: 15, + NumMessages: 21, NumExtensions: 0, NumServices: 0, },