315 lines
12 KiB
Go
315 lines
12 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.28.0
|
|
// protoc v3.20.0
|
|
// source: combat/combat_db.proto
|
|
|
|
package pb
|
|
|
|
import (
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
)
|
|
|
|
const (
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
)
|
|
|
|
type DBCombatUser 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"` //uid
|
|
Level map[int32]*DBCombatLevel `protobuf:"bytes,3,rep,name=level,proto3" json:"level" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` //关卡信息
|
|
}
|
|
|
|
func (x *DBCombatUser) Reset() {
|
|
*x = DBCombatUser{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_combat_combat_db_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *DBCombatUser) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DBCombatUser) ProtoMessage() {}
|
|
|
|
func (x *DBCombatUser) ProtoReflect() protoreflect.Message {
|
|
mi := &file_combat_combat_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 DBCombatUser.ProtoReflect.Descriptor instead.
|
|
func (*DBCombatUser) Descriptor() ([]byte, []int) {
|
|
return file_combat_combat_db_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *DBCombatUser) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DBCombatUser) GetUid() string {
|
|
if x != nil {
|
|
return x.Uid
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DBCombatUser) GetLevel() map[int32]*DBCombatLevel {
|
|
if x != nil {
|
|
return x.Level
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type DBCombatLevel struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id"`
|
|
Data map[string]string `protobuf:"bytes,2,rep,name=data,proto3" json:"data" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` //管卡信息
|
|
Passmanster []int32 `protobuf:"varint,3,rep,packed,name=passmanster,proto3" json:"passmanster"` //通关怪物列表
|
|
Passdrop []int32 `protobuf:"varint,4,rep,packed,name=passdrop,proto3" json:"passdrop"` //通关宝箱列表
|
|
Passmaintask []*ConIProgress `protobuf:"bytes,5,rep,name=passmaintask,proto3" json:"passmaintask"` //主线任务进度
|
|
Passpertask []*ConIProgress `protobuf:"bytes,6,rep,name=passpertask,proto3" json:"passpertask"` //副任务完成进度
|
|
Progress int32 `protobuf:"varint,7,opt,name=Progress,proto3" json:"Progress"` //累计进度
|
|
Pass int32 `protobuf:"varint,8,opt,name=pass,proto3" json:"pass"` //通关状态 0未通关 1已通关 2完美通关
|
|
}
|
|
|
|
func (x *DBCombatLevel) Reset() {
|
|
*x = DBCombatLevel{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_combat_combat_db_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *DBCombatLevel) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DBCombatLevel) ProtoMessage() {}
|
|
|
|
func (x *DBCombatLevel) ProtoReflect() protoreflect.Message {
|
|
mi := &file_combat_combat_db_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 DBCombatLevel.ProtoReflect.Descriptor instead.
|
|
func (*DBCombatLevel) Descriptor() ([]byte, []int) {
|
|
return file_combat_combat_db_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *DBCombatLevel) GetId() int32 {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *DBCombatLevel) GetData() map[string]string {
|
|
if x != nil {
|
|
return x.Data
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *DBCombatLevel) GetPassmanster() []int32 {
|
|
if x != nil {
|
|
return x.Passmanster
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *DBCombatLevel) GetPassdrop() []int32 {
|
|
if x != nil {
|
|
return x.Passdrop
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *DBCombatLevel) GetPassmaintask() []*ConIProgress {
|
|
if x != nil {
|
|
return x.Passmaintask
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *DBCombatLevel) GetPasspertask() []*ConIProgress {
|
|
if x != nil {
|
|
return x.Passpertask
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *DBCombatLevel) GetProgress() int32 {
|
|
if x != nil {
|
|
return x.Progress
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *DBCombatLevel) GetPass() int32 {
|
|
if x != nil {
|
|
return x.Pass
|
|
}
|
|
return 0
|
|
}
|
|
|
|
var File_combat_combat_db_proto protoreflect.FileDescriptor
|
|
|
|
var file_combat_combat_db_proto_rawDesc = []byte{
|
|
0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x62, 0x61, 0x74, 0x2f, 0x63, 0x6f, 0x6d, 0x62, 0x61, 0x74, 0x5f,
|
|
0x64, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x16, 0x62, 0x75, 0x72, 0x69, 0x65, 0x64,
|
|
0x2f, 0x62, 0x75, 0x72, 0x69, 0x65, 0x64, 0x5f, 0x64, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
|
0x22, 0xaa, 0x01, 0x0a, 0x0c, 0x44, 0x42, 0x43, 0x6f, 0x6d, 0x62, 0x61, 0x74, 0x55, 0x73, 0x65,
|
|
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, 0x2e, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x03, 0x20, 0x03,
|
|
0x28, 0x0b, 0x32, 0x18, 0x2e, 0x44, 0x42, 0x43, 0x6f, 0x6d, 0x62, 0x61, 0x74, 0x55, 0x73, 0x65,
|
|
0x72, 0x2e, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x05, 0x6c, 0x65,
|
|
0x76, 0x65, 0x6c, 0x1a, 0x48, 0x0a, 0x0a, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x45, 0x6e, 0x74, 0x72,
|
|
0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03,
|
|
0x6b, 0x65, 0x79, 0x12, 0x24, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01,
|
|
0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x44, 0x42, 0x43, 0x6f, 0x6d, 0x62, 0x61, 0x74, 0x4c, 0x65, 0x76,
|
|
0x65, 0x6c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xd8, 0x02,
|
|
0x0a, 0x0d, 0x44, 0x42, 0x43, 0x6f, 0x6d, 0x62, 0x61, 0x74, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12,
|
|
0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x69, 0x64, 0x12,
|
|
0x2c, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e,
|
|
0x44, 0x42, 0x43, 0x6f, 0x6d, 0x62, 0x61, 0x74, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x2e, 0x44, 0x61,
|
|
0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x20, 0x0a,
|
|
0x0b, 0x70, 0x61, 0x73, 0x73, 0x6d, 0x61, 0x6e, 0x73, 0x74, 0x65, 0x72, 0x18, 0x03, 0x20, 0x03,
|
|
0x28, 0x05, 0x52, 0x0b, 0x70, 0x61, 0x73, 0x73, 0x6d, 0x61, 0x6e, 0x73, 0x74, 0x65, 0x72, 0x12,
|
|
0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x64, 0x72, 0x6f, 0x70, 0x18, 0x04, 0x20, 0x03, 0x28,
|
|
0x05, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x64, 0x72, 0x6f, 0x70, 0x12, 0x31, 0x0a, 0x0c, 0x70,
|
|
0x61, 0x73, 0x73, 0x6d, 0x61, 0x69, 0x6e, 0x74, 0x61, 0x73, 0x6b, 0x18, 0x05, 0x20, 0x03, 0x28,
|
|
0x0b, 0x32, 0x0d, 0x2e, 0x43, 0x6f, 0x6e, 0x49, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73,
|
|
0x52, 0x0c, 0x70, 0x61, 0x73, 0x73, 0x6d, 0x61, 0x69, 0x6e, 0x74, 0x61, 0x73, 0x6b, 0x12, 0x2f,
|
|
0x0a, 0x0b, 0x70, 0x61, 0x73, 0x73, 0x70, 0x65, 0x72, 0x74, 0x61, 0x73, 0x6b, 0x18, 0x06, 0x20,
|
|
0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x43, 0x6f, 0x6e, 0x49, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65,
|
|
0x73, 0x73, 0x52, 0x0b, 0x70, 0x61, 0x73, 0x73, 0x70, 0x65, 0x72, 0x74, 0x61, 0x73, 0x6b, 0x12,
|
|
0x1a, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28,
|
|
0x05, 0x52, 0x08, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x70,
|
|
0x61, 0x73, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x70, 0x61, 0x73, 0x73, 0x1a,
|
|
0x37, 0x0a, 0x09, 0x44, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03,
|
|
0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14,
|
|
0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 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 (
|
|
file_combat_combat_db_proto_rawDescOnce sync.Once
|
|
file_combat_combat_db_proto_rawDescData = file_combat_combat_db_proto_rawDesc
|
|
)
|
|
|
|
func file_combat_combat_db_proto_rawDescGZIP() []byte {
|
|
file_combat_combat_db_proto_rawDescOnce.Do(func() {
|
|
file_combat_combat_db_proto_rawDescData = protoimpl.X.CompressGZIP(file_combat_combat_db_proto_rawDescData)
|
|
})
|
|
return file_combat_combat_db_proto_rawDescData
|
|
}
|
|
|
|
var file_combat_combat_db_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
|
|
var file_combat_combat_db_proto_goTypes = []interface{}{
|
|
(*DBCombatUser)(nil), // 0: DBCombatUser
|
|
(*DBCombatLevel)(nil), // 1: DBCombatLevel
|
|
nil, // 2: DBCombatUser.LevelEntry
|
|
nil, // 3: DBCombatLevel.DataEntry
|
|
(*ConIProgress)(nil), // 4: ConIProgress
|
|
}
|
|
var file_combat_combat_db_proto_depIdxs = []int32{
|
|
2, // 0: DBCombatUser.level:type_name -> DBCombatUser.LevelEntry
|
|
3, // 1: DBCombatLevel.data:type_name -> DBCombatLevel.DataEntry
|
|
4, // 2: DBCombatLevel.passmaintask:type_name -> ConIProgress
|
|
4, // 3: DBCombatLevel.passpertask:type_name -> ConIProgress
|
|
1, // 4: DBCombatUser.LevelEntry.value:type_name -> DBCombatLevel
|
|
5, // [5:5] is the sub-list for method output_type
|
|
5, // [5:5] is the sub-list for method input_type
|
|
5, // [5:5] is the sub-list for extension type_name
|
|
5, // [5:5] is the sub-list for extension extendee
|
|
0, // [0:5] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_combat_combat_db_proto_init() }
|
|
func file_combat_combat_db_proto_init() {
|
|
if File_combat_combat_db_proto != nil {
|
|
return
|
|
}
|
|
file_buried_buried_db_proto_init()
|
|
if !protoimpl.UnsafeEnabled {
|
|
file_combat_combat_db_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*DBCombatUser); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_combat_combat_db_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*DBCombatLevel); 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{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: file_combat_combat_db_proto_rawDesc,
|
|
NumEnums: 0,
|
|
NumMessages: 4,
|
|
NumExtensions: 0,
|
|
NumServices: 0,
|
|
},
|
|
GoTypes: file_combat_combat_db_proto_goTypes,
|
|
DependencyIndexes: file_combat_combat_db_proto_depIdxs,
|
|
MessageInfos: file_combat_combat_db_proto_msgTypes,
|
|
}.Build()
|
|
File_combat_combat_db_proto = out.File
|
|
file_combat_combat_db_proto_rawDesc = nil
|
|
file_combat_combat_db_proto_goTypes = nil
|
|
file_combat_combat_db_proto_depIdxs = nil
|
|
}
|