312 lines
9.5 KiB
Go
312 lines
9.5 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.28.0
|
|
// protoc v3.20.0
|
|
// source: maincity/maincity_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 MainCityScene int32
|
|
|
|
const (
|
|
MainCityScene_MainCity MainCityScene = 0 //主城
|
|
MainCityScene_WUGUAN MainCityScene = 1 //武馆
|
|
)
|
|
|
|
// Enum value maps for MainCityScene.
|
|
var (
|
|
MainCityScene_name = map[int32]string{
|
|
0: "MainCity",
|
|
1: "WUGUAN",
|
|
}
|
|
MainCityScene_value = map[string]int32{
|
|
"MainCity": 0,
|
|
"WUGUAN": 1,
|
|
}
|
|
)
|
|
|
|
func (x MainCityScene) Enum() *MainCityScene {
|
|
p := new(MainCityScene)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x MainCityScene) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (MainCityScene) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_maincity_maincity_db_proto_enumTypes[0].Descriptor()
|
|
}
|
|
|
|
func (MainCityScene) Type() protoreflect.EnumType {
|
|
return &file_maincity_maincity_db_proto_enumTypes[0]
|
|
}
|
|
|
|
func (x MainCityScene) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use MainCityScene.Descriptor instead.
|
|
func (MainCityScene) EnumDescriptor() ([]byte, []int) {
|
|
return file_maincity_maincity_db_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
type DBVector3 struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
X float32 `protobuf:"fixed32,1,opt,name=x,proto3" json:"x"`
|
|
Y float32 `protobuf:"fixed32,2,opt,name=y,proto3" json:"y"`
|
|
Z float32 `protobuf:"fixed32,3,opt,name=z,proto3" json:"z"`
|
|
}
|
|
|
|
func (x *DBVector3) Reset() {
|
|
*x = DBVector3{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_maincity_maincity_db_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *DBVector3) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DBVector3) ProtoMessage() {}
|
|
|
|
func (x *DBVector3) ProtoReflect() protoreflect.Message {
|
|
mi := &file_maincity_maincity_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 DBVector3.ProtoReflect.Descriptor instead.
|
|
func (*DBVector3) Descriptor() ([]byte, []int) {
|
|
return file_maincity_maincity_db_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *DBVector3) GetX() float32 {
|
|
if x != nil {
|
|
return x.X
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *DBVector3) GetY() float32 {
|
|
if x != nil {
|
|
return x.Y
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *DBVector3) GetZ() float32 {
|
|
if x != nil {
|
|
return x.Z
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type DBMainCityPos struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Player *BaseUserInfo `protobuf:"bytes,1,opt,name=player,proto3" json:"player"`
|
|
Pos *DBVector3 `protobuf:"bytes,2,opt,name=pos,proto3" json:"pos"`
|
|
Target *DBVector3 `protobuf:"bytes,3,opt,name=target,proto3" json:"target"`
|
|
Scene MainCityScene `protobuf:"varint,4,opt,name=scene,proto3,enum=MainCityScene" json:"scene"`
|
|
}
|
|
|
|
func (x *DBMainCityPos) Reset() {
|
|
*x = DBMainCityPos{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_maincity_maincity_db_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *DBMainCityPos) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DBMainCityPos) ProtoMessage() {}
|
|
|
|
func (x *DBMainCityPos) ProtoReflect() protoreflect.Message {
|
|
mi := &file_maincity_maincity_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 DBMainCityPos.ProtoReflect.Descriptor instead.
|
|
func (*DBMainCityPos) Descriptor() ([]byte, []int) {
|
|
return file_maincity_maincity_db_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *DBMainCityPos) GetPlayer() *BaseUserInfo {
|
|
if x != nil {
|
|
return x.Player
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *DBMainCityPos) GetPos() *DBVector3 {
|
|
if x != nil {
|
|
return x.Pos
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *DBMainCityPos) GetTarget() *DBVector3 {
|
|
if x != nil {
|
|
return x.Target
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *DBMainCityPos) GetScene() MainCityScene {
|
|
if x != nil {
|
|
return x.Scene
|
|
}
|
|
return MainCityScene_MainCity
|
|
}
|
|
|
|
var File_maincity_maincity_db_proto protoreflect.FileDescriptor
|
|
|
|
var file_maincity_maincity_db_proto_rawDesc = []byte{
|
|
0x0a, 0x1a, 0x6d, 0x61, 0x69, 0x6e, 0x63, 0x69, 0x74, 0x79, 0x2f, 0x6d, 0x61, 0x69, 0x6e, 0x63,
|
|
0x69, 0x74, 0x79, 0x5f, 0x64, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0a, 0x63, 0x6f,
|
|
0x6d, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x35, 0x0a, 0x09, 0x44, 0x42, 0x56, 0x65,
|
|
0x63, 0x74, 0x6f, 0x72, 0x33, 0x12, 0x0c, 0x0a, 0x01, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x02,
|
|
0x52, 0x01, 0x78, 0x12, 0x0c, 0x0a, 0x01, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x02, 0x52, 0x01,
|
|
0x79, 0x12, 0x0c, 0x0a, 0x01, 0x7a, 0x18, 0x03, 0x20, 0x01, 0x28, 0x02, 0x52, 0x01, 0x7a, 0x22,
|
|
0x9e, 0x01, 0x0a, 0x0d, 0x44, 0x42, 0x4d, 0x61, 0x69, 0x6e, 0x43, 0x69, 0x74, 0x79, 0x50, 0x6f,
|
|
0x73, 0x12, 0x25, 0x0a, 0x06, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28,
|
|
0x0b, 0x32, 0x0d, 0x2e, 0x42, 0x61, 0x73, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f,
|
|
0x52, 0x06, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x12, 0x1c, 0x0a, 0x03, 0x70, 0x6f, 0x73, 0x18,
|
|
0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x44, 0x42, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72,
|
|
0x33, 0x52, 0x03, 0x70, 0x6f, 0x73, 0x12, 0x22, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74,
|
|
0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x44, 0x42, 0x56, 0x65, 0x63, 0x74, 0x6f,
|
|
0x72, 0x33, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x24, 0x0a, 0x05, 0x73, 0x63,
|
|
0x65, 0x6e, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0e, 0x2e, 0x4d, 0x61, 0x69, 0x6e,
|
|
0x43, 0x69, 0x74, 0x79, 0x53, 0x63, 0x65, 0x6e, 0x65, 0x52, 0x05, 0x73, 0x63, 0x65, 0x6e, 0x65,
|
|
0x2a, 0x29, 0x0a, 0x0d, 0x4d, 0x61, 0x69, 0x6e, 0x43, 0x69, 0x74, 0x79, 0x53, 0x63, 0x65, 0x6e,
|
|
0x65, 0x12, 0x0c, 0x0a, 0x08, 0x4d, 0x61, 0x69, 0x6e, 0x43, 0x69, 0x74, 0x79, 0x10, 0x00, 0x12,
|
|
0x0a, 0x0a, 0x06, 0x57, 0x55, 0x47, 0x55, 0x41, 0x4e, 0x10, 0x01, 0x42, 0x06, 0x5a, 0x04, 0x2e,
|
|
0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
}
|
|
|
|
var (
|
|
file_maincity_maincity_db_proto_rawDescOnce sync.Once
|
|
file_maincity_maincity_db_proto_rawDescData = file_maincity_maincity_db_proto_rawDesc
|
|
)
|
|
|
|
func file_maincity_maincity_db_proto_rawDescGZIP() []byte {
|
|
file_maincity_maincity_db_proto_rawDescOnce.Do(func() {
|
|
file_maincity_maincity_db_proto_rawDescData = protoimpl.X.CompressGZIP(file_maincity_maincity_db_proto_rawDescData)
|
|
})
|
|
return file_maincity_maincity_db_proto_rawDescData
|
|
}
|
|
|
|
var file_maincity_maincity_db_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
|
var file_maincity_maincity_db_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
|
var file_maincity_maincity_db_proto_goTypes = []interface{}{
|
|
(MainCityScene)(0), // 0: MainCityScene
|
|
(*DBVector3)(nil), // 1: DBVector3
|
|
(*DBMainCityPos)(nil), // 2: DBMainCityPos
|
|
(*BaseUserInfo)(nil), // 3: BaseUserInfo
|
|
}
|
|
var file_maincity_maincity_db_proto_depIdxs = []int32{
|
|
3, // 0: DBMainCityPos.player:type_name -> BaseUserInfo
|
|
1, // 1: DBMainCityPos.pos:type_name -> DBVector3
|
|
1, // 2: DBMainCityPos.target:type_name -> DBVector3
|
|
0, // 3: DBMainCityPos.scene:type_name -> MainCityScene
|
|
4, // [4:4] is the sub-list for method output_type
|
|
4, // [4:4] is the sub-list for method input_type
|
|
4, // [4:4] is the sub-list for extension type_name
|
|
4, // [4:4] is the sub-list for extension extendee
|
|
0, // [0:4] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_maincity_maincity_db_proto_init() }
|
|
func file_maincity_maincity_db_proto_init() {
|
|
if File_maincity_maincity_db_proto != nil {
|
|
return
|
|
}
|
|
file_comm_proto_init()
|
|
if !protoimpl.UnsafeEnabled {
|
|
file_maincity_maincity_db_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*DBVector3); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_maincity_maincity_db_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*DBMainCityPos); 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_maincity_maincity_db_proto_rawDesc,
|
|
NumEnums: 1,
|
|
NumMessages: 2,
|
|
NumExtensions: 0,
|
|
NumServices: 0,
|
|
},
|
|
GoTypes: file_maincity_maincity_db_proto_goTypes,
|
|
DependencyIndexes: file_maincity_maincity_db_proto_depIdxs,
|
|
EnumInfos: file_maincity_maincity_db_proto_enumTypes,
|
|
MessageInfos: file_maincity_maincity_db_proto_msgTypes,
|
|
}.Build()
|
|
File_maincity_maincity_db_proto = out.File
|
|
file_maincity_maincity_db_proto_rawDesc = nil
|
|
file_maincity_maincity_db_proto_goTypes = nil
|
|
file_maincity_maincity_db_proto_depIdxs = nil
|
|
}
|