300 lines
9.7 KiB
Go
300 lines
9.7 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_Scene_None MainCityScene = 0
|
|
MainCityScene_Scene_MainCity MainCityScene = 1 //主城
|
|
MainCityScene_Scene_WUGUAN MainCityScene = 2 //武馆
|
|
)
|
|
|
|
// Enum value maps for MainCityScene.
|
|
var (
|
|
MainCityScene_name = map[int32]string{
|
|
0: "Scene_None",
|
|
1: "Scene_MainCity",
|
|
2: "Scene_WUGUAN",
|
|
}
|
|
MainCityScene_value = map[string]int32{
|
|
"Scene_None": 0,
|
|
"Scene_MainCity": 1,
|
|
"Scene_WUGUAN": 2,
|
|
}
|
|
)
|
|
|
|
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 MainCitySyncType int32
|
|
|
|
const (
|
|
MainCitySyncType_Target MainCitySyncType = 0
|
|
MainCitySyncType_Direction MainCitySyncType = 1
|
|
)
|
|
|
|
// Enum value maps for MainCitySyncType.
|
|
var (
|
|
MainCitySyncType_name = map[int32]string{
|
|
0: "Target",
|
|
1: "Direction",
|
|
}
|
|
MainCitySyncType_value = map[string]int32{
|
|
"Target": 0,
|
|
"Direction": 1,
|
|
}
|
|
)
|
|
|
|
func (x MainCitySyncType) Enum() *MainCitySyncType {
|
|
p := new(MainCitySyncType)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x MainCitySyncType) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (MainCitySyncType) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_maincity_maincity_db_proto_enumTypes[1].Descriptor()
|
|
}
|
|
|
|
func (MainCitySyncType) Type() protoreflect.EnumType {
|
|
return &file_maincity_maincity_db_proto_enumTypes[1]
|
|
}
|
|
|
|
func (x MainCitySyncType) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use MainCitySyncType.Descriptor instead.
|
|
func (MainCitySyncType) EnumDescriptor() ([]byte, []int) {
|
|
return file_maincity_maincity_db_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
type DBMainCityPos struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Player *BaseUserInfo `protobuf:"bytes,1,opt,name=player,proto3" json:"player"`
|
|
Stype MainCitySyncType `protobuf:"varint,2,opt,name=stype,proto3,enum=MainCitySyncType" json:"stype"`
|
|
Pos *DBVector3 `protobuf:"bytes,3,opt,name=pos,proto3" json:"pos"`
|
|
Target *DBVector3 `protobuf:"bytes,4,opt,name=target,proto3" json:"target"`
|
|
Scene MainCityScene `protobuf:"varint,5,opt,name=scene,proto3,enum=MainCityScene" json:"scene"`
|
|
}
|
|
|
|
func (x *DBMainCityPos) Reset() {
|
|
*x = DBMainCityPos{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_maincity_maincity_db_proto_msgTypes[0]
|
|
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[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 DBMainCityPos.ProtoReflect.Descriptor instead.
|
|
func (*DBMainCityPos) Descriptor() ([]byte, []int) {
|
|
return file_maincity_maincity_db_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *DBMainCityPos) GetPlayer() *BaseUserInfo {
|
|
if x != nil {
|
|
return x.Player
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *DBMainCityPos) GetStype() MainCitySyncType {
|
|
if x != nil {
|
|
return x.Stype
|
|
}
|
|
return MainCitySyncType_Target
|
|
}
|
|
|
|
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_Scene_None
|
|
}
|
|
|
|
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, 0xc7, 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, 0x27, 0x0a, 0x05, 0x73, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e,
|
|
0x32, 0x11, 0x2e, 0x4d, 0x61, 0x69, 0x6e, 0x43, 0x69, 0x74, 0x79, 0x53, 0x79, 0x6e, 0x63, 0x54,
|
|
0x79, 0x70, 0x65, 0x52, 0x05, 0x73, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1c, 0x0a, 0x03, 0x70, 0x6f,
|
|
0x73, 0x18, 0x03, 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, 0x04, 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, 0x05, 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, 0x45, 0x0a, 0x0d, 0x4d, 0x61, 0x69, 0x6e, 0x43, 0x69, 0x74, 0x79, 0x53, 0x63,
|
|
0x65, 0x6e, 0x65, 0x12, 0x0e, 0x0a, 0x0a, 0x53, 0x63, 0x65, 0x6e, 0x65, 0x5f, 0x4e, 0x6f, 0x6e,
|
|
0x65, 0x10, 0x00, 0x12, 0x12, 0x0a, 0x0e, 0x53, 0x63, 0x65, 0x6e, 0x65, 0x5f, 0x4d, 0x61, 0x69,
|
|
0x6e, 0x43, 0x69, 0x74, 0x79, 0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x53, 0x63, 0x65, 0x6e, 0x65,
|
|
0x5f, 0x57, 0x55, 0x47, 0x55, 0x41, 0x4e, 0x10, 0x02, 0x2a, 0x2d, 0x0a, 0x10, 0x4d, 0x61, 0x69,
|
|
0x6e, 0x43, 0x69, 0x74, 0x79, 0x53, 0x79, 0x6e, 0x63, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0a, 0x0a,
|
|
0x06, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x44, 0x69, 0x72,
|
|
0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 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, 2)
|
|
var file_maincity_maincity_db_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
|
|
var file_maincity_maincity_db_proto_goTypes = []interface{}{
|
|
(MainCityScene)(0), // 0: MainCityScene
|
|
(MainCitySyncType)(0), // 1: MainCitySyncType
|
|
(*DBMainCityPos)(nil), // 2: DBMainCityPos
|
|
(*BaseUserInfo)(nil), // 3: BaseUserInfo
|
|
(*DBVector3)(nil), // 4: DBVector3
|
|
}
|
|
var file_maincity_maincity_db_proto_depIdxs = []int32{
|
|
3, // 0: DBMainCityPos.player:type_name -> BaseUserInfo
|
|
1, // 1: DBMainCityPos.stype:type_name -> MainCitySyncType
|
|
4, // 2: DBMainCityPos.pos:type_name -> DBVector3
|
|
4, // 3: DBMainCityPos.target:type_name -> DBVector3
|
|
0, // 4: DBMainCityPos.scene:type_name -> MainCityScene
|
|
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_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.(*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: 2,
|
|
NumMessages: 1,
|
|
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
|
|
}
|