From 3ca79532b24017740d6a41be3b668e59f159187d Mon Sep 17 00:00:00 2001 From: meixiongfeng <766881921@qq.com> Date: Fri, 7 Jul 2023 18:42:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=AA=E7=8E=AF=E5=A1=94=20=E8=B5=9B?= =?UTF-8?q?=E5=AD=A3=E5=A1=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pb/pagoda_db.pb.go | 218 ++++++++++++++++-- pb/pagoda_msg.pb.go | 521 ++++++++++++++++++++++++++++++++++++++++---- 2 files changed, 683 insertions(+), 56 deletions(-) diff --git a/pb/pagoda_db.pb.go b/pb/pagoda_db.pb.go index 9afe00981..9043656ef 100644 --- a/pb/pagoda_db.pb.go +++ b/pb/pagoda_db.pb.go @@ -259,6 +259,141 @@ func (x *DBPagodaRecord) GetTab() int32 { return 0 } +type DBPagodaRace struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id" bson:"_id"` //ID + Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid" bson:"uid"` //用户ID + Race map[int32]*RaceData `protobuf:"bytes,3,rep,name=race,proto3" json:"race" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // 阵营 +} + +func (x *DBPagodaRace) Reset() { + *x = DBPagodaRace{} + if protoimpl.UnsafeEnabled { + mi := &file_pagoda_pagoda_db_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DBPagodaRace) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DBPagodaRace) ProtoMessage() {} + +func (x *DBPagodaRace) ProtoReflect() protoreflect.Message { + mi := &file_pagoda_pagoda_db_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 DBPagodaRace.ProtoReflect.Descriptor instead. +func (*DBPagodaRace) Descriptor() ([]byte, []int) { + return file_pagoda_pagoda_db_proto_rawDescGZIP(), []int{2} +} + +func (x *DBPagodaRace) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *DBPagodaRace) GetUid() string { + if x != nil { + return x.Uid + } + return "" +} + +func (x *DBPagodaRace) GetRace() map[int32]*RaceData { + if x != nil { + return x.Race + } + return nil +} + +// 阵营塔数据 +type RaceData struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Buf []int32 `protobuf:"varint,1,rep,packed,name=buf,proto3" json:"buf"` + Rtime int64 `protobuf:"varint,2,opt,name=rtime,proto3" json:"rtime"` // 刷新时间 客户端不用 + Defeat int32 `protobuf:"varint,3,opt,name=defeat,proto3" json:"defeat"` // 今日战胜的次数 + Floor map[int32]int64 `protobuf:"bytes,4,rep,name=floor,proto3" json:"floor" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` //key 层数 value 耗时 +} + +func (x *RaceData) Reset() { + *x = RaceData{} + if protoimpl.UnsafeEnabled { + mi := &file_pagoda_pagoda_db_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RaceData) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RaceData) ProtoMessage() {} + +func (x *RaceData) ProtoReflect() protoreflect.Message { + mi := &file_pagoda_pagoda_db_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 RaceData.ProtoReflect.Descriptor instead. +func (*RaceData) Descriptor() ([]byte, []int) { + return file_pagoda_pagoda_db_proto_rawDescGZIP(), []int{3} +} + +func (x *RaceData) GetBuf() []int32 { + if x != nil { + return x.Buf + } + return nil +} + +func (x *RaceData) GetRtime() int64 { + if x != nil { + return x.Rtime + } + return 0 +} + +func (x *RaceData) GetDefeat() int32 { + if x != nil { + return x.Defeat + } + return 0 +} + +func (x *RaceData) GetFloor() map[int32]int64 { + if x != nil { + return x.Floor + } + return nil +} + var File_pagoda_pagoda_db_proto protoreflect.FileDescriptor var file_pagoda_pagoda_db_proto_rawDesc = []byte{ @@ -306,8 +441,30 @@ var file_pagoda_pagoda_db_proto_rawDesc = []byte{ 0x07, 0x2e, 0x4c, 0x69, 0x6e, 0x65, 0x55, 0x70, 0x52, 0x04, 0x6c, 0x69, 0x6e, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x6f, 0x73, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x63, 0x6f, 0x73, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x61, - 0x62, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x74, 0x61, 0x62, 0x42, 0x06, 0x5a, 0x04, - 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x62, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x74, 0x61, 0x62, 0x22, 0xa1, 0x01, 0x0a, + 0x0c, 0x44, 0x42, 0x50, 0x61, 0x67, 0x6f, 0x64, 0x61, 0x52, 0x61, 0x63, 0x65, 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, + 0x2b, 0x0a, 0x04, 0x72, 0x61, 0x63, 0x65, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, + 0x44, 0x42, 0x50, 0x61, 0x67, 0x6f, 0x64, 0x61, 0x52, 0x61, 0x63, 0x65, 0x2e, 0x52, 0x61, 0x63, + 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x72, 0x61, 0x63, 0x65, 0x1a, 0x42, 0x0a, 0x09, + 0x52, 0x61, 0x63, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x1f, 0x0a, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x52, 0x61, 0x63, + 0x65, 0x44, 0x61, 0x74, 0x61, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, + 0x22, 0xb0, 0x01, 0x0a, 0x08, 0x52, 0x61, 0x63, 0x65, 0x44, 0x61, 0x74, 0x61, 0x12, 0x10, 0x0a, + 0x03, 0x62, 0x75, 0x66, 0x18, 0x01, 0x20, 0x03, 0x28, 0x05, 0x52, 0x03, 0x62, 0x75, 0x66, 0x12, + 0x14, 0x0a, 0x05, 0x72, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, + 0x72, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x65, 0x66, 0x65, 0x61, 0x74, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x64, 0x65, 0x66, 0x65, 0x61, 0x74, 0x12, 0x2a, 0x0a, + 0x05, 0x66, 0x6c, 0x6f, 0x6f, 0x72, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x52, + 0x61, 0x63, 0x65, 0x44, 0x61, 0x74, 0x61, 0x2e, 0x46, 0x6c, 0x6f, 0x6f, 0x72, 0x45, 0x6e, 0x74, + 0x72, 0x79, 0x52, 0x05, 0x66, 0x6c, 0x6f, 0x6f, 0x72, 0x1a, 0x38, 0x0a, 0x0a, 0x46, 0x6c, 0x6f, + 0x6f, 0x72, 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, 0x03, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, + 0x02, 0x38, 0x01, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, } var ( @@ -322,23 +479,30 @@ func file_pagoda_pagoda_db_proto_rawDescGZIP() []byte { return file_pagoda_pagoda_db_proto_rawDescData } -var file_pagoda_pagoda_db_proto_msgTypes = make([]protoimpl.MessageInfo, 4) +var file_pagoda_pagoda_db_proto_msgTypes = make([]protoimpl.MessageInfo, 8) var file_pagoda_pagoda_db_proto_goTypes = []interface{}{ (*DBPagoda)(nil), // 0: DBPagoda (*DBPagodaRecord)(nil), // 1: DBPagodaRecord - nil, // 2: DBPagoda.RewardEntry - nil, // 3: DBPagoda.DataEntry - (*LineUp)(nil), // 4: LineUp + (*DBPagodaRace)(nil), // 2: DBPagodaRace + (*RaceData)(nil), // 3: RaceData + nil, // 4: DBPagoda.RewardEntry + nil, // 5: DBPagoda.DataEntry + nil, // 6: DBPagodaRace.RaceEntry + nil, // 7: RaceData.FloorEntry + (*LineUp)(nil), // 8: LineUp } var file_pagoda_pagoda_db_proto_depIdxs = []int32{ - 2, // 0: DBPagoda.reward:type_name -> DBPagoda.RewardEntry - 3, // 1: DBPagoda.data:type_name -> DBPagoda.DataEntry - 4, // 2: DBPagodaRecord.line:type_name -> LineUp - 3, // [3:3] is the sub-list for method output_type - 3, // [3:3] is the sub-list for method input_type - 3, // [3:3] is the sub-list for extension type_name - 3, // [3:3] is the sub-list for extension extendee - 0, // [0:3] is the sub-list for field type_name + 4, // 0: DBPagoda.reward:type_name -> DBPagoda.RewardEntry + 5, // 1: DBPagoda.data:type_name -> DBPagoda.DataEntry + 8, // 2: DBPagodaRecord.line:type_name -> LineUp + 6, // 3: DBPagodaRace.race:type_name -> DBPagodaRace.RaceEntry + 7, // 4: RaceData.floor:type_name -> RaceData.FloorEntry + 3, // 5: DBPagodaRace.RaceEntry.value:type_name -> RaceData + 6, // [6:6] is the sub-list for method output_type + 6, // [6:6] is the sub-list for method input_type + 6, // [6:6] is the sub-list for extension type_name + 6, // [6:6] is the sub-list for extension extendee + 0, // [0:6] is the sub-list for field type_name } func init() { file_pagoda_pagoda_db_proto_init() } @@ -372,6 +536,30 @@ func file_pagoda_pagoda_db_proto_init() { return nil } } + file_pagoda_pagoda_db_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DBPagodaRace); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pagoda_pagoda_db_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RaceData); 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{ @@ -379,7 +567,7 @@ func file_pagoda_pagoda_db_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_pagoda_pagoda_db_proto_rawDesc, NumEnums: 0, - NumMessages: 4, + NumMessages: 8, NumExtensions: 0, NumServices: 0, }, diff --git a/pb/pagoda_msg.pb.go b/pb/pagoda_msg.pb.go index c189e7818..ebf9bd5a3 100644 --- a/pb/pagoda_msg.pb.go +++ b/pb/pagoda_msg.pb.go @@ -784,6 +784,330 @@ func (x *PagodaWarOrderResp) GetItmes() []*UserAssets { return nil } +// 挑战阵营塔 +type PagodaCallengeRaceReq struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Race int32 `protobuf:"varint,1,opt,name=race,proto3" json:"race"` //0 循环塔 1 阵营1 ... + Cid int32 `protobuf:"varint,2,opt,name=cid,proto3" json:"cid"` // circularcamptower 表中的id + Battle *BattleFormation `protobuf:"bytes,3,opt,name=battle,proto3" json:"battle"` +} + +func (x *PagodaCallengeRaceReq) Reset() { + *x = PagodaCallengeRaceReq{} + if protoimpl.UnsafeEnabled { + mi := &file_pagoda_pagoda_msg_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PagodaCallengeRaceReq) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PagodaCallengeRaceReq) ProtoMessage() {} + +func (x *PagodaCallengeRaceReq) ProtoReflect() protoreflect.Message { + mi := &file_pagoda_pagoda_msg_proto_msgTypes[16] + 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 PagodaCallengeRaceReq.ProtoReflect.Descriptor instead. +func (*PagodaCallengeRaceReq) Descriptor() ([]byte, []int) { + return file_pagoda_pagoda_msg_proto_rawDescGZIP(), []int{16} +} + +func (x *PagodaCallengeRaceReq) GetRace() int32 { + if x != nil { + return x.Race + } + return 0 +} + +func (x *PagodaCallengeRaceReq) GetCid() int32 { + if x != nil { + return x.Cid + } + return 0 +} + +func (x *PagodaCallengeRaceReq) GetBattle() *BattleFormation { + if x != nil { + return x.Battle + } + return nil +} + +type PagodaCallengeRaceResp struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Info *BattleInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info"` + Cid int32 `protobuf:"varint,2,opt,name=cid,proto3" json:"cid"` // 塔的配置id +} + +func (x *PagodaCallengeRaceResp) Reset() { + *x = PagodaCallengeRaceResp{} + if protoimpl.UnsafeEnabled { + mi := &file_pagoda_pagoda_msg_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PagodaCallengeRaceResp) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PagodaCallengeRaceResp) ProtoMessage() {} + +func (x *PagodaCallengeRaceResp) ProtoReflect() protoreflect.Message { + mi := &file_pagoda_pagoda_msg_proto_msgTypes[17] + 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 PagodaCallengeRaceResp.ProtoReflect.Descriptor instead. +func (*PagodaCallengeRaceResp) Descriptor() ([]byte, []int) { + return file_pagoda_pagoda_msg_proto_rawDescGZIP(), []int{17} +} + +func (x *PagodaCallengeRaceResp) GetInfo() *BattleInfo { + if x != nil { + return x.Info + } + return nil +} + +func (x *PagodaCallengeRaceResp) GetCid() int32 { + if x != nil { + return x.Cid + } + return 0 +} + +// 挑战Over +type PagodaCallengeRaceOverReq struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Race int32 `protobuf:"varint,1,opt,name=race,proto3" json:"race"` //0 循环塔 1 阵营1 ... + Cid int32 `protobuf:"varint,2,opt,name=cid,proto3" json:"cid"` // circularcamptower 表中的id + Report *BattleReport `protobuf:"bytes,3,opt,name=report,proto3" json:"report"` //战报 +} + +func (x *PagodaCallengeRaceOverReq) Reset() { + *x = PagodaCallengeRaceOverReq{} + if protoimpl.UnsafeEnabled { + mi := &file_pagoda_pagoda_msg_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PagodaCallengeRaceOverReq) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PagodaCallengeRaceOverReq) ProtoMessage() {} + +func (x *PagodaCallengeRaceOverReq) ProtoReflect() protoreflect.Message { + mi := &file_pagoda_pagoda_msg_proto_msgTypes[18] + 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 PagodaCallengeRaceOverReq.ProtoReflect.Descriptor instead. +func (*PagodaCallengeRaceOverReq) Descriptor() ([]byte, []int) { + return file_pagoda_pagoda_msg_proto_rawDescGZIP(), []int{18} +} + +func (x *PagodaCallengeRaceOverReq) GetRace() int32 { + if x != nil { + return x.Race + } + return 0 +} + +func (x *PagodaCallengeRaceOverReq) GetCid() int32 { + if x != nil { + return x.Cid + } + return 0 +} + +func (x *PagodaCallengeRaceOverReq) GetReport() *BattleReport { + if x != nil { + return x.Report + } + return nil +} + +type PagodaCallengeRaceOverResp struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Race *DBPagodaRace `protobuf:"bytes,1,opt,name=race,proto3" json:"race"` + Reward []*UserAtno `protobuf:"bytes,2,rep,name=reward,proto3" json:"reward"` +} + +func (x *PagodaCallengeRaceOverResp) Reset() { + *x = PagodaCallengeRaceOverResp{} + if protoimpl.UnsafeEnabled { + mi := &file_pagoda_pagoda_msg_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PagodaCallengeRaceOverResp) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PagodaCallengeRaceOverResp) ProtoMessage() {} + +func (x *PagodaCallengeRaceOverResp) ProtoReflect() protoreflect.Message { + mi := &file_pagoda_pagoda_msg_proto_msgTypes[19] + 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 PagodaCallengeRaceOverResp.ProtoReflect.Descriptor instead. +func (*PagodaCallengeRaceOverResp) Descriptor() ([]byte, []int) { + return file_pagoda_pagoda_msg_proto_rawDescGZIP(), []int{19} +} + +func (x *PagodaCallengeRaceOverResp) GetRace() *DBPagodaRace { + if x != nil { + return x.Race + } + return nil +} + +func (x *PagodaCallengeRaceOverResp) GetReward() []*UserAtno { + if x != nil { + return x.Reward + } + return nil +} + +// 获取所有塔的信息 +type PagodaGetRaceReq struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *PagodaGetRaceReq) Reset() { + *x = PagodaGetRaceReq{} + if protoimpl.UnsafeEnabled { + mi := &file_pagoda_pagoda_msg_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PagodaGetRaceReq) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PagodaGetRaceReq) ProtoMessage() {} + +func (x *PagodaGetRaceReq) ProtoReflect() protoreflect.Message { + mi := &file_pagoda_pagoda_msg_proto_msgTypes[20] + 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 PagodaGetRaceReq.ProtoReflect.Descriptor instead. +func (*PagodaGetRaceReq) Descriptor() ([]byte, []int) { + return file_pagoda_pagoda_msg_proto_rawDescGZIP(), []int{20} +} + +type PagodaGetRaceResp struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Race []*DBPagodaRace `protobuf:"bytes,1,rep,name=race,proto3" json:"race"` +} + +func (x *PagodaGetRaceResp) Reset() { + *x = PagodaGetRaceResp{} + if protoimpl.UnsafeEnabled { + mi := &file_pagoda_pagoda_msg_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PagodaGetRaceResp) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PagodaGetRaceResp) ProtoMessage() {} + +func (x *PagodaGetRaceResp) ProtoReflect() protoreflect.Message { + mi := &file_pagoda_pagoda_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 PagodaGetRaceResp.ProtoReflect.Descriptor instead. +func (*PagodaGetRaceResp) Descriptor() ([]byte, []int) { + return file_pagoda_pagoda_msg_proto_rawDescGZIP(), []int{21} +} + +func (x *PagodaGetRaceResp) GetRace() []*DBPagodaRace { + if x != nil { + return x.Race + } + return nil +} + var File_pagoda_pagoda_msg_proto protoreflect.FileDescriptor var file_pagoda_pagoda_msg_proto_rawDesc = []byte{ @@ -845,7 +1169,36 @@ var file_pagoda_pagoda_msg_proto_rawDesc = []byte{ 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x44, 0x42, 0x50, 0x61, 0x67, 0x6f, 0x64, 0x61, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x21, 0x0a, 0x05, 0x69, 0x74, 0x6d, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x41, - 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x05, 0x69, 0x74, 0x6d, 0x65, 0x73, 0x42, 0x06, 0x5a, 0x04, + 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x05, 0x69, 0x74, 0x6d, 0x65, 0x73, 0x22, 0x67, 0x0a, 0x15, + 0x50, 0x61, 0x67, 0x6f, 0x64, 0x61, 0x43, 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x52, 0x61, + 0x63, 0x65, 0x52, 0x65, 0x71, 0x12, 0x12, 0x0a, 0x04, 0x72, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x05, 0x52, 0x04, 0x72, 0x61, 0x63, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x63, 0x69, 0x64, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x63, 0x69, 0x64, 0x12, 0x28, 0x0a, 0x06, 0x62, + 0x61, 0x74, 0x74, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x42, 0x61, + 0x74, 0x74, 0x6c, 0x65, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x06, 0x62, + 0x61, 0x74, 0x74, 0x6c, 0x65, 0x22, 0x4b, 0x0a, 0x16, 0x50, 0x61, 0x67, 0x6f, 0x64, 0x61, 0x43, + 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x52, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, + 0x1f, 0x0a, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, + 0x42, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x04, 0x69, 0x6e, 0x66, 0x6f, + 0x12, 0x10, 0x0a, 0x03, 0x63, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x63, + 0x69, 0x64, 0x22, 0x68, 0x0a, 0x19, 0x50, 0x61, 0x67, 0x6f, 0x64, 0x61, 0x43, 0x61, 0x6c, 0x6c, + 0x65, 0x6e, 0x67, 0x65, 0x52, 0x61, 0x63, 0x65, 0x4f, 0x76, 0x65, 0x72, 0x52, 0x65, 0x71, 0x12, + 0x12, 0x0a, 0x04, 0x72, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x72, + 0x61, 0x63, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x63, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, + 0x52, 0x03, 0x63, 0x69, 0x64, 0x12, 0x25, 0x0a, 0x06, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x42, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x52, 0x65, + 0x70, 0x6f, 0x72, 0x74, 0x52, 0x06, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x22, 0x62, 0x0a, 0x1a, + 0x50, 0x61, 0x67, 0x6f, 0x64, 0x61, 0x43, 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x52, 0x61, + 0x63, 0x65, 0x4f, 0x76, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x12, 0x21, 0x0a, 0x04, 0x72, 0x61, + 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x44, 0x42, 0x50, 0x61, 0x67, + 0x6f, 0x64, 0x61, 0x52, 0x61, 0x63, 0x65, 0x52, 0x04, 0x72, 0x61, 0x63, 0x65, 0x12, 0x21, 0x0a, + 0x06, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x09, 0x2e, + 0x55, 0x73, 0x65, 0x72, 0x41, 0x74, 0x6e, 0x6f, 0x52, 0x06, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, + 0x22, 0x12, 0x0a, 0x10, 0x50, 0x61, 0x67, 0x6f, 0x64, 0x61, 0x47, 0x65, 0x74, 0x52, 0x61, 0x63, + 0x65, 0x52, 0x65, 0x71, 0x22, 0x36, 0x0a, 0x11, 0x50, 0x61, 0x67, 0x6f, 0x64, 0x61, 0x47, 0x65, + 0x74, 0x52, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x21, 0x0a, 0x04, 0x72, 0x61, 0x63, + 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x44, 0x42, 0x50, 0x61, 0x67, 0x6f, + 0x64, 0x61, 0x52, 0x61, 0x63, 0x65, 0x52, 0x04, 0x72, 0x61, 0x63, 0x65, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } @@ -861,48 +1214,62 @@ func file_pagoda_pagoda_msg_proto_rawDescGZIP() []byte { return file_pagoda_pagoda_msg_proto_rawDescData } -var file_pagoda_pagoda_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 16) +var file_pagoda_pagoda_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 22) var file_pagoda_pagoda_msg_proto_goTypes = []interface{}{ - (*PagodaGetListReq)(nil), // 0: PagodaGetListReq - (*PagodaGetListResp)(nil), // 1: PagodaGetListResp - (*PagodaGetRewardReq)(nil), // 2: PagodaGetRewardReq - (*PagodaGetRewardResp)(nil), // 3: PagodaGetRewardResp - (*PagodaChallengeReq)(nil), // 4: PagodaChallengeReq - (*PagodaChallengeResp)(nil), // 5: PagodaChallengeResp - (*PagodaChallengeOverReq)(nil), // 6: PagodaChallengeOverReq - (*PagodaChallengeOverResp)(nil), // 7: PagodaChallengeOverResp - (*PagodaRankListReq)(nil), // 8: PagodaRankListReq - (*PagodaRankListResp)(nil), // 9: PagodaRankListResp - (*PagodaQueryRecordReq)(nil), // 10: PagodaQueryRecordReq - (*PagodaQueryRecordResp)(nil), // 11: PagodaQueryRecordResp - (*PagodaActivateReq)(nil), // 12: PagodaActivateReq - (*PagodaActivateResp)(nil), // 13: PagodaActivateResp - (*PagodaWarOrderReq)(nil), // 14: PagodaWarOrderReq - (*PagodaWarOrderResp)(nil), // 15: PagodaWarOrderResp - (*DBPagoda)(nil), // 16: DBPagoda - (*BattleFormation)(nil), // 17: BattleFormation - (*BattleInfo)(nil), // 18: BattleInfo - (*BattleReport)(nil), // 19: BattleReport - (*DBPagodaRecord)(nil), // 20: DBPagodaRecord - (*UserAssets)(nil), // 21: UserAssets + (*PagodaGetListReq)(nil), // 0: PagodaGetListReq + (*PagodaGetListResp)(nil), // 1: PagodaGetListResp + (*PagodaGetRewardReq)(nil), // 2: PagodaGetRewardReq + (*PagodaGetRewardResp)(nil), // 3: PagodaGetRewardResp + (*PagodaChallengeReq)(nil), // 4: PagodaChallengeReq + (*PagodaChallengeResp)(nil), // 5: PagodaChallengeResp + (*PagodaChallengeOverReq)(nil), // 6: PagodaChallengeOverReq + (*PagodaChallengeOverResp)(nil), // 7: PagodaChallengeOverResp + (*PagodaRankListReq)(nil), // 8: PagodaRankListReq + (*PagodaRankListResp)(nil), // 9: PagodaRankListResp + (*PagodaQueryRecordReq)(nil), // 10: PagodaQueryRecordReq + (*PagodaQueryRecordResp)(nil), // 11: PagodaQueryRecordResp + (*PagodaActivateReq)(nil), // 12: PagodaActivateReq + (*PagodaActivateResp)(nil), // 13: PagodaActivateResp + (*PagodaWarOrderReq)(nil), // 14: PagodaWarOrderReq + (*PagodaWarOrderResp)(nil), // 15: PagodaWarOrderResp + (*PagodaCallengeRaceReq)(nil), // 16: PagodaCallengeRaceReq + (*PagodaCallengeRaceResp)(nil), // 17: PagodaCallengeRaceResp + (*PagodaCallengeRaceOverReq)(nil), // 18: PagodaCallengeRaceOverReq + (*PagodaCallengeRaceOverResp)(nil), // 19: PagodaCallengeRaceOverResp + (*PagodaGetRaceReq)(nil), // 20: PagodaGetRaceReq + (*PagodaGetRaceResp)(nil), // 21: PagodaGetRaceResp + (*DBPagoda)(nil), // 22: DBPagoda + (*BattleFormation)(nil), // 23: BattleFormation + (*BattleInfo)(nil), // 24: BattleInfo + (*BattleReport)(nil), // 25: BattleReport + (*DBPagodaRecord)(nil), // 26: DBPagodaRecord + (*UserAssets)(nil), // 27: UserAssets + (*DBPagodaRace)(nil), // 28: DBPagodaRace + (*UserAtno)(nil), // 29: UserAtno } var file_pagoda_pagoda_msg_proto_depIdxs = []int32{ - 16, // 0: PagodaGetListResp.data:type_name -> DBPagoda - 16, // 1: PagodaGetRewardResp.data:type_name -> DBPagoda - 17, // 2: PagodaChallengeReq.battle:type_name -> BattleFormation - 18, // 3: PagodaChallengeResp.info:type_name -> BattleInfo - 19, // 4: PagodaChallengeOverReq.report:type_name -> BattleReport - 16, // 5: PagodaChallengeOverResp.data:type_name -> DBPagoda - 20, // 6: PagodaRankListResp.ranks:type_name -> DBPagodaRecord - 20, // 7: PagodaQueryRecordResp.data:type_name -> DBPagodaRecord - 16, // 8: PagodaActivateResp.data:type_name -> DBPagoda - 16, // 9: PagodaWarOrderResp.data:type_name -> DBPagoda - 21, // 10: PagodaWarOrderResp.itmes:type_name -> UserAssets - 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 + 22, // 0: PagodaGetListResp.data:type_name -> DBPagoda + 22, // 1: PagodaGetRewardResp.data:type_name -> DBPagoda + 23, // 2: PagodaChallengeReq.battle:type_name -> BattleFormation + 24, // 3: PagodaChallengeResp.info:type_name -> BattleInfo + 25, // 4: PagodaChallengeOverReq.report:type_name -> BattleReport + 22, // 5: PagodaChallengeOverResp.data:type_name -> DBPagoda + 26, // 6: PagodaRankListResp.ranks:type_name -> DBPagodaRecord + 26, // 7: PagodaQueryRecordResp.data:type_name -> DBPagodaRecord + 22, // 8: PagodaActivateResp.data:type_name -> DBPagoda + 22, // 9: PagodaWarOrderResp.data:type_name -> DBPagoda + 27, // 10: PagodaWarOrderResp.itmes:type_name -> UserAssets + 23, // 11: PagodaCallengeRaceReq.battle:type_name -> BattleFormation + 24, // 12: PagodaCallengeRaceResp.info:type_name -> BattleInfo + 25, // 13: PagodaCallengeRaceOverReq.report:type_name -> BattleReport + 28, // 14: PagodaCallengeRaceOverResp.race:type_name -> DBPagodaRace + 29, // 15: PagodaCallengeRaceOverResp.reward:type_name -> UserAtno + 28, // 16: PagodaGetRaceResp.race:type_name -> DBPagodaRace + 17, // [17:17] is the sub-list for method output_type + 17, // [17:17] is the sub-list for method input_type + 17, // [17:17] is the sub-list for extension type_name + 17, // [17:17] is the sub-list for extension extendee + 0, // [0:17] is the sub-list for field type_name } func init() { file_pagoda_pagoda_msg_proto_init() } @@ -1106,6 +1473,78 @@ func file_pagoda_pagoda_msg_proto_init() { return nil } } + file_pagoda_pagoda_msg_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PagodaCallengeRaceReq); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pagoda_pagoda_msg_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PagodaCallengeRaceResp); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pagoda_pagoda_msg_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PagodaCallengeRaceOverReq); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pagoda_pagoda_msg_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PagodaCallengeRaceOverResp); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pagoda_pagoda_msg_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PagodaGetRaceReq); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pagoda_pagoda_msg_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PagodaGetRaceResp); 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{ @@ -1113,7 +1552,7 @@ func file_pagoda_pagoda_msg_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_pagoda_pagoda_msg_proto_rawDesc, NumEnums: 0, - NumMessages: 16, + NumMessages: 22, NumExtensions: 0, NumServices: 0, },