327 lines
9.9 KiB
Go
327 lines
9.9 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.28.0
|
|
// protoc v3.20.0
|
|
// source: oldtimes/oldtimes_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 DBOldtimes struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid" bson:"uid"` //玩家ID
|
|
Chapters []*Chapter `protobuf:"bytes,2,rep,name=chapters,proto3" json:"chapters" bson:"chapters"` // 章节
|
|
}
|
|
|
|
func (x *DBOldtimes) Reset() {
|
|
*x = DBOldtimes{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_oldtimes_oldtimes_db_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *DBOldtimes) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DBOldtimes) ProtoMessage() {}
|
|
|
|
func (x *DBOldtimes) ProtoReflect() protoreflect.Message {
|
|
mi := &file_oldtimes_oldtimes_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 DBOldtimes.ProtoReflect.Descriptor instead.
|
|
func (*DBOldtimes) Descriptor() ([]byte, []int) {
|
|
return file_oldtimes_oldtimes_db_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *DBOldtimes) GetUid() string {
|
|
if x != nil {
|
|
return x.Uid
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DBOldtimes) GetChapters() []*Chapter {
|
|
if x != nil {
|
|
return x.Chapters
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type Chapter struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Cid int32 `protobuf:"varint,1,opt,name=cid,proto3" json:"cid" bson:"cid"` //章节ID
|
|
Status int32 `protobuf:"varint,2,opt,name=status,proto3" json:"status" bson:"status"` //状态 0锁定 1已解锁 2进行中 3已完成
|
|
Received int32 `protobuf:"varint,3,opt,name=received,proto3" json:"received" bson:"received"` //奖励领取状态0未领取 1已领取
|
|
Levels []*Level `protobuf:"bytes,4,rep,name=levels,proto3" json:"levels" bson:"levels"` //关卡
|
|
}
|
|
|
|
func (x *Chapter) Reset() {
|
|
*x = Chapter{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_oldtimes_oldtimes_db_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *Chapter) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Chapter) ProtoMessage() {}
|
|
|
|
func (x *Chapter) ProtoReflect() protoreflect.Message {
|
|
mi := &file_oldtimes_oldtimes_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 Chapter.ProtoReflect.Descriptor instead.
|
|
func (*Chapter) Descriptor() ([]byte, []int) {
|
|
return file_oldtimes_oldtimes_db_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *Chapter) GetCid() int32 {
|
|
if x != nil {
|
|
return x.Cid
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Chapter) GetStatus() int32 {
|
|
if x != nil {
|
|
return x.Status
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Chapter) GetReceived() int32 {
|
|
if x != nil {
|
|
return x.Received
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Chapter) GetLevels() []*Level {
|
|
if x != nil {
|
|
return x.Levels
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type Level struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Lid int32 `protobuf:"varint,1,opt,name=lid,proto3" json:"lid" bson:"lid"` //关卡ID
|
|
Status int32 `protobuf:"varint,2,opt,name=status,proto3" json:"status" bson:"status"` //状态 0锁定 1已解锁 2进行中 3已完成
|
|
Progress int32 `protobuf:"varint,3,opt,name=progress,proto3" json:"progress" bson:"progress"` //进度值 物品数量
|
|
}
|
|
|
|
func (x *Level) Reset() {
|
|
*x = Level{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_oldtimes_oldtimes_db_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *Level) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Level) ProtoMessage() {}
|
|
|
|
func (x *Level) ProtoReflect() protoreflect.Message {
|
|
mi := &file_oldtimes_oldtimes_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 Level.ProtoReflect.Descriptor instead.
|
|
func (*Level) Descriptor() ([]byte, []int) {
|
|
return file_oldtimes_oldtimes_db_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *Level) GetLid() int32 {
|
|
if x != nil {
|
|
return x.Lid
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Level) GetStatus() int32 {
|
|
if x != nil {
|
|
return x.Status
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Level) GetProgress() int32 {
|
|
if x != nil {
|
|
return x.Progress
|
|
}
|
|
return 0
|
|
}
|
|
|
|
var File_oldtimes_oldtimes_db_proto protoreflect.FileDescriptor
|
|
|
|
var file_oldtimes_oldtimes_db_proto_rawDesc = []byte{
|
|
0x0a, 0x1a, 0x6f, 0x6c, 0x64, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x2f, 0x6f, 0x6c, 0x64, 0x74, 0x69,
|
|
0x6d, 0x65, 0x73, 0x5f, 0x64, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x44, 0x0a, 0x0a,
|
|
0x44, 0x42, 0x4f, 0x6c, 0x64, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69,
|
|
0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x24, 0x0a, 0x08,
|
|
0x63, 0x68, 0x61, 0x70, 0x74, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x08,
|
|
0x2e, 0x43, 0x68, 0x61, 0x70, 0x74, 0x65, 0x72, 0x52, 0x08, 0x63, 0x68, 0x61, 0x70, 0x74, 0x65,
|
|
0x72, 0x73, 0x22, 0x6f, 0x0a, 0x07, 0x43, 0x68, 0x61, 0x70, 0x74, 0x65, 0x72, 0x12, 0x10, 0x0a,
|
|
0x03, 0x63, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x63, 0x69, 0x64, 0x12,
|
|
0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52,
|
|
0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x63, 0x65, 0x69,
|
|
0x76, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x72, 0x65, 0x63, 0x65, 0x69,
|
|
0x76, 0x65, 0x64, 0x12, 0x1e, 0x0a, 0x06, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x73, 0x18, 0x04, 0x20,
|
|
0x03, 0x28, 0x0b, 0x32, 0x06, 0x2e, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x06, 0x6c, 0x65, 0x76,
|
|
0x65, 0x6c, 0x73, 0x22, 0x4d, 0x0a, 0x05, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x10, 0x0a, 0x03,
|
|
0x6c, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x6c, 0x69, 0x64, 0x12, 0x16,
|
|
0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06,
|
|
0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65,
|
|
0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65,
|
|
0x73, 0x73, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
|
|
0x6f, 0x33,
|
|
}
|
|
|
|
var (
|
|
file_oldtimes_oldtimes_db_proto_rawDescOnce sync.Once
|
|
file_oldtimes_oldtimes_db_proto_rawDescData = file_oldtimes_oldtimes_db_proto_rawDesc
|
|
)
|
|
|
|
func file_oldtimes_oldtimes_db_proto_rawDescGZIP() []byte {
|
|
file_oldtimes_oldtimes_db_proto_rawDescOnce.Do(func() {
|
|
file_oldtimes_oldtimes_db_proto_rawDescData = protoimpl.X.CompressGZIP(file_oldtimes_oldtimes_db_proto_rawDescData)
|
|
})
|
|
return file_oldtimes_oldtimes_db_proto_rawDescData
|
|
}
|
|
|
|
var file_oldtimes_oldtimes_db_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
|
|
var file_oldtimes_oldtimes_db_proto_goTypes = []interface{}{
|
|
(*DBOldtimes)(nil), // 0: DBOldtimes
|
|
(*Chapter)(nil), // 1: Chapter
|
|
(*Level)(nil), // 2: Level
|
|
}
|
|
var file_oldtimes_oldtimes_db_proto_depIdxs = []int32{
|
|
1, // 0: DBOldtimes.chapters:type_name -> Chapter
|
|
2, // 1: Chapter.levels:type_name -> Level
|
|
2, // [2:2] is the sub-list for method output_type
|
|
2, // [2:2] is the sub-list for method input_type
|
|
2, // [2:2] is the sub-list for extension type_name
|
|
2, // [2:2] is the sub-list for extension extendee
|
|
0, // [0:2] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_oldtimes_oldtimes_db_proto_init() }
|
|
func file_oldtimes_oldtimes_db_proto_init() {
|
|
if File_oldtimes_oldtimes_db_proto != nil {
|
|
return
|
|
}
|
|
if !protoimpl.UnsafeEnabled {
|
|
file_oldtimes_oldtimes_db_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*DBOldtimes); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_oldtimes_oldtimes_db_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*Chapter); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_oldtimes_oldtimes_db_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*Level); 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_oldtimes_oldtimes_db_proto_rawDesc,
|
|
NumEnums: 0,
|
|
NumMessages: 3,
|
|
NumExtensions: 0,
|
|
NumServices: 0,
|
|
},
|
|
GoTypes: file_oldtimes_oldtimes_db_proto_goTypes,
|
|
DependencyIndexes: file_oldtimes_oldtimes_db_proto_depIdxs,
|
|
MessageInfos: file_oldtimes_oldtimes_db_proto_msgTypes,
|
|
}.Build()
|
|
File_oldtimes_oldtimes_db_proto = out.File
|
|
file_oldtimes_oldtimes_db_proto_rawDesc = nil
|
|
file_oldtimes_oldtimes_db_proto_goTypes = nil
|
|
file_oldtimes_oldtimes_db_proto_depIdxs = nil
|
|
}
|