// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.28.0 // protoc v3.20.0 // source: pvp/pvp_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 PvpState int32 const ( PvpState_void PvpState = 0 //无效状态 PvpState_ready PvpState = 1 //准备中 PvpState_battle PvpState = 2 //战斗中 PvpState_cancel PvpState = 3 //战斗取消 PvpState_finish PvpState = 4 //战斗结束 ) // Enum value maps for PvpState. var ( PvpState_name = map[int32]string{ 0: "void", 1: "ready", 2: "battle", 3: "cancel", 4: "finish", } PvpState_value = map[string]int32{ "void": 0, "ready": 1, "battle": 2, "cancel": 3, "finish": 4, } ) func (x PvpState) Enum() *PvpState { p := new(PvpState) *p = x return p } func (x PvpState) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } func (PvpState) Descriptor() protoreflect.EnumDescriptor { return file_pvp_pvp_db_proto_enumTypes[0].Descriptor() } func (PvpState) Type() protoreflect.EnumType { return &file_pvp_pvp_db_proto_enumTypes[0] } func (x PvpState) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Use PvpState.Descriptor instead. func (PvpState) EnumDescriptor() ([]byte, []int) { return file_pvp_pvp_db_proto_rawDescGZIP(), []int{0} } //游戏规则 type DBPvpRules struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Playtype PlayType `protobuf:"varint,1,opt,name=playtype,proto3,enum=PlayType" json:"playtype"` } func (x *DBPvpRules) Reset() { *x = DBPvpRules{} if protoimpl.UnsafeEnabled { mi := &file_pvp_pvp_db_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *DBPvpRules) String() string { return protoimpl.X.MessageStringOf(x) } func (*DBPvpRules) ProtoMessage() {} func (x *DBPvpRules) ProtoReflect() protoreflect.Message { mi := &file_pvp_pvp_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 DBPvpRules.ProtoReflect.Descriptor instead. func (*DBPvpRules) Descriptor() ([]byte, []int) { return file_pvp_pvp_db_proto_rawDescGZIP(), []int{0} } func (x *DBPvpRules) GetPlaytype() PlayType { if x != nil { return x.Playtype } return PlayType_null } type DBPvpBattle struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id"` //战斗id ServicePath string `protobuf:"bytes,2,opt,name=servicePath,proto3" json:"servicePath"` //战斗区服地址 Playtype PlayType `protobuf:"varint,3,opt,name=playtype,proto3,enum=PlayType" json:"playtype"` //pvp类型 State PvpState `protobuf:"varint,4,opt,name=state,proto3,enum=PvpState" json:"state"` //战斗状态 Red *BaseUserInfo `protobuf:"bytes,5,opt,name=red,proto3" json:"red"` //红方id Blue *BaseUserInfo `protobuf:"bytes,6,opt,name=blue,proto3" json:"blue"` //红方id } func (x *DBPvpBattle) Reset() { *x = DBPvpBattle{} if protoimpl.UnsafeEnabled { mi := &file_pvp_pvp_db_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *DBPvpBattle) String() string { return protoimpl.X.MessageStringOf(x) } func (*DBPvpBattle) ProtoMessage() {} func (x *DBPvpBattle) ProtoReflect() protoreflect.Message { mi := &file_pvp_pvp_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 DBPvpBattle.ProtoReflect.Descriptor instead. func (*DBPvpBattle) Descriptor() ([]byte, []int) { return file_pvp_pvp_db_proto_rawDescGZIP(), []int{1} } func (x *DBPvpBattle) GetId() string { if x != nil { return x.Id } return "" } func (x *DBPvpBattle) GetServicePath() string { if x != nil { return x.ServicePath } return "" } func (x *DBPvpBattle) GetPlaytype() PlayType { if x != nil { return x.Playtype } return PlayType_null } func (x *DBPvpBattle) GetState() PvpState { if x != nil { return x.State } return PvpState_void } func (x *DBPvpBattle) GetRed() *BaseUserInfo { if x != nil { return x.Red } return nil } func (x *DBPvpBattle) GetBlue() *BaseUserInfo { if x != nil { return x.Blue } return nil } var File_pvp_pvp_db_proto protoreflect.FileDescriptor var file_pvp_pvp_db_proto_rawDesc = []byte{ 0x0a, 0x10, 0x70, 0x76, 0x70, 0x2f, 0x70, 0x76, 0x70, 0x5f, 0x64, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0a, 0x63, 0x6f, 0x6d, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x16, 0x62, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x2f, 0x62, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x5f, 0x64, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x33, 0x0a, 0x0a, 0x44, 0x42, 0x50, 0x76, 0x70, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x12, 0x25, 0x0a, 0x08, 0x70, 0x6c, 0x61, 0x79, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x09, 0x2e, 0x50, 0x6c, 0x61, 0x79, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x70, 0x6c, 0x61, 0x79, 0x74, 0x79, 0x70, 0x65, 0x22, 0xcb, 0x01, 0x0a, 0x0b, 0x44, 0x42, 0x50, 0x76, 0x70, 0x42, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x61, 0x74, 0x68, 0x12, 0x25, 0x0a, 0x08, 0x70, 0x6c, 0x61, 0x79, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x09, 0x2e, 0x50, 0x6c, 0x61, 0x79, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x70, 0x6c, 0x61, 0x79, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1f, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x09, 0x2e, 0x50, 0x76, 0x70, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x1f, 0x0a, 0x03, 0x72, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x42, 0x61, 0x73, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x03, 0x72, 0x65, 0x64, 0x12, 0x21, 0x0a, 0x04, 0x62, 0x6c, 0x75, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x42, 0x61, 0x73, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x04, 0x62, 0x6c, 0x75, 0x65, 0x2a, 0x43, 0x0a, 0x08, 0x50, 0x76, 0x70, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x08, 0x0a, 0x04, 0x76, 0x6f, 0x69, 0x64, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x72, 0x65, 0x61, 0x64, 0x79, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x62, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x10, 0x02, 0x12, 0x0a, 0x0a, 0x06, 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x10, 0x03, 0x12, 0x0a, 0x0a, 0x06, 0x66, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x10, 0x04, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( file_pvp_pvp_db_proto_rawDescOnce sync.Once file_pvp_pvp_db_proto_rawDescData = file_pvp_pvp_db_proto_rawDesc ) func file_pvp_pvp_db_proto_rawDescGZIP() []byte { file_pvp_pvp_db_proto_rawDescOnce.Do(func() { file_pvp_pvp_db_proto_rawDescData = protoimpl.X.CompressGZIP(file_pvp_pvp_db_proto_rawDescData) }) return file_pvp_pvp_db_proto_rawDescData } var file_pvp_pvp_db_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_pvp_pvp_db_proto_msgTypes = make([]protoimpl.MessageInfo, 2) var file_pvp_pvp_db_proto_goTypes = []interface{}{ (PvpState)(0), // 0: PvpState (*DBPvpRules)(nil), // 1: DBPvpRules (*DBPvpBattle)(nil), // 2: DBPvpBattle (PlayType)(0), // 3: PlayType (*BaseUserInfo)(nil), // 4: BaseUserInfo } var file_pvp_pvp_db_proto_depIdxs = []int32{ 3, // 0: DBPvpRules.playtype:type_name -> PlayType 3, // 1: DBPvpBattle.playtype:type_name -> PlayType 0, // 2: DBPvpBattle.state:type_name -> PvpState 4, // 3: DBPvpBattle.red:type_name -> BaseUserInfo 4, // 4: DBPvpBattle.blue:type_name -> BaseUserInfo 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_pvp_pvp_db_proto_init() } func file_pvp_pvp_db_proto_init() { if File_pvp_pvp_db_proto != nil { return } file_comm_proto_init() file_battle_battle_db_proto_init() if !protoimpl.UnsafeEnabled { file_pvp_pvp_db_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*DBPvpRules); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_pvp_pvp_db_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*DBPvpBattle); 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_pvp_pvp_db_proto_rawDesc, NumEnums: 1, NumMessages: 2, NumExtensions: 0, NumServices: 0, }, GoTypes: file_pvp_pvp_db_proto_goTypes, DependencyIndexes: file_pvp_pvp_db_proto_depIdxs, EnumInfos: file_pvp_pvp_db_proto_enumTypes, MessageInfos: file_pvp_pvp_db_proto_msgTypes, }.Build() File_pvp_pvp_db_proto = out.File file_pvp_pvp_db_proto_rawDesc = nil file_pvp_pvp_db_proto_goTypes = nil file_pvp_pvp_db_proto_depIdxs = nil }