313 lines
9.1 KiB
Go
313 lines
9.1 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||
// versions:
|
||
// protoc-gen-go v1.36.6
|
||
// protoc v6.31.0
|
||
// source: match.proto
|
||
|
||
package pb
|
||
|
||
import (
|
||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||
reflect "reflect"
|
||
sync "sync"
|
||
unsafe "unsafe"
|
||
)
|
||
|
||
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 C2SMatchRoom struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
PlayType int32 `protobuf:"varint,1,opt,name=PlayType,proto3" json:"PlayType,omitempty"` // 玩法id
|
||
RoomType int32 `protobuf:"varint,2,opt,name=RoomType,proto3" json:"RoomType,omitempty"` // 房间类型,低级,中级,高级等
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *C2SMatchRoom) Reset() {
|
||
*x = C2SMatchRoom{}
|
||
mi := &file_match_proto_msgTypes[0]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *C2SMatchRoom) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*C2SMatchRoom) ProtoMessage() {}
|
||
|
||
func (x *C2SMatchRoom) ProtoReflect() protoreflect.Message {
|
||
mi := &file_match_proto_msgTypes[0]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use C2SMatchRoom.ProtoReflect.Descriptor instead.
|
||
func (*C2SMatchRoom) Descriptor() ([]byte, []int) {
|
||
return file_match_proto_rawDescGZIP(), []int{0}
|
||
}
|
||
|
||
func (x *C2SMatchRoom) GetPlayType() int32 {
|
||
if x != nil {
|
||
return x.PlayType
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *C2SMatchRoom) GetRoomType() int32 {
|
||
if x != nil {
|
||
return x.RoomType
|
||
}
|
||
return 0
|
||
}
|
||
|
||
// 玩家进房间返回 匹配服返回该消息,假房间。匹配成功后发给对应玩法服,玩法服发NotifyUserEnterRoom才是真房间
|
||
type S2CMatchRoom struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Code ErrCode `protobuf:"varint,1,opt,name=code,proto3,enum=pb.ErrCode" json:"code,omitempty"`
|
||
PlayType int32 `protobuf:"varint,2,opt,name=PlayType,proto3" json:"PlayType,omitempty"` // 玩法id
|
||
RoomType int32 `protobuf:"varint,3,opt,name=RoomType,proto3" json:"RoomType,omitempty"` // 房间类型,低级,中级,高级等
|
||
User *GameUser `protobuf:"bytes,4,opt,name=User,proto3" json:"User,omitempty"` // 玩家数据
|
||
ColorInfo *S2CMatchRoom_ColorInfo `protobuf:"bytes,20,opt,name=colorInfo,proto3" json:"colorInfo,omitempty"` // color玩法配置信息
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *S2CMatchRoom) Reset() {
|
||
*x = S2CMatchRoom{}
|
||
mi := &file_match_proto_msgTypes[1]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *S2CMatchRoom) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*S2CMatchRoom) ProtoMessage() {}
|
||
|
||
func (x *S2CMatchRoom) ProtoReflect() protoreflect.Message {
|
||
mi := &file_match_proto_msgTypes[1]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use S2CMatchRoom.ProtoReflect.Descriptor instead.
|
||
func (*S2CMatchRoom) Descriptor() ([]byte, []int) {
|
||
return file_match_proto_rawDescGZIP(), []int{1}
|
||
}
|
||
|
||
func (x *S2CMatchRoom) GetCode() ErrCode {
|
||
if x != nil {
|
||
return x.Code
|
||
}
|
||
return ErrCode_OK
|
||
}
|
||
|
||
func (x *S2CMatchRoom) GetPlayType() int32 {
|
||
if x != nil {
|
||
return x.PlayType
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *S2CMatchRoom) GetRoomType() int32 {
|
||
if x != nil {
|
||
return x.RoomType
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *S2CMatchRoom) GetUser() *GameUser {
|
||
if x != nil {
|
||
return x.User
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *S2CMatchRoom) GetColorInfo() *S2CMatchRoom_ColorInfo {
|
||
if x != nil {
|
||
return x.ColorInfo
|
||
}
|
||
return nil
|
||
}
|
||
|
||
type NotifyUserEnterRoom struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
User []*GameUser `protobuf:"bytes,1,rep,name=User,proto3" json:"User,omitempty"` // 玩家进房间广播
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *NotifyUserEnterRoom) Reset() {
|
||
*x = NotifyUserEnterRoom{}
|
||
mi := &file_match_proto_msgTypes[2]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *NotifyUserEnterRoom) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*NotifyUserEnterRoom) ProtoMessage() {}
|
||
|
||
func (x *NotifyUserEnterRoom) ProtoReflect() protoreflect.Message {
|
||
mi := &file_match_proto_msgTypes[2]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use NotifyUserEnterRoom.ProtoReflect.Descriptor instead.
|
||
func (*NotifyUserEnterRoom) Descriptor() ([]byte, []int) {
|
||
return file_match_proto_rawDescGZIP(), []int{2}
|
||
}
|
||
|
||
func (x *NotifyUserEnterRoom) GetUser() []*GameUser {
|
||
if x != nil {
|
||
return x.User
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// color玩法配置信息
|
||
type S2CMatchRoom_ColorInfo struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *S2CMatchRoom_ColorInfo) Reset() {
|
||
*x = S2CMatchRoom_ColorInfo{}
|
||
mi := &file_match_proto_msgTypes[3]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *S2CMatchRoom_ColorInfo) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*S2CMatchRoom_ColorInfo) ProtoMessage() {}
|
||
|
||
func (x *S2CMatchRoom_ColorInfo) ProtoReflect() protoreflect.Message {
|
||
mi := &file_match_proto_msgTypes[3]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use S2CMatchRoom_ColorInfo.ProtoReflect.Descriptor instead.
|
||
func (*S2CMatchRoom_ColorInfo) Descriptor() ([]byte, []int) {
|
||
return file_match_proto_rawDescGZIP(), []int{1, 0}
|
||
}
|
||
|
||
var File_match_proto protoreflect.FileDescriptor
|
||
|
||
const file_match_proto_rawDesc = "" +
|
||
"\n" +
|
||
"\vmatch.proto\x12\x02pb\x1a\n" +
|
||
"code.proto\x1a\n" +
|
||
"user.proto\"F\n" +
|
||
"\fC2SMatchRoom\x12\x1a\n" +
|
||
"\bPlayType\x18\x01 \x01(\x05R\bPlayType\x12\x1a\n" +
|
||
"\bRoomType\x18\x02 \x01(\x05R\bRoomType\"\xd0\x01\n" +
|
||
"\fS2CMatchRoom\x12\x1f\n" +
|
||
"\x04code\x18\x01 \x01(\x0e2\v.pb.ErrCodeR\x04code\x12\x1a\n" +
|
||
"\bPlayType\x18\x02 \x01(\x05R\bPlayType\x12\x1a\n" +
|
||
"\bRoomType\x18\x03 \x01(\x05R\bRoomType\x12 \n" +
|
||
"\x04User\x18\x04 \x01(\v2\f.pb.GameUserR\x04User\x128\n" +
|
||
"\tcolorInfo\x18\x14 \x01(\v2\x1a.pb.S2CMatchRoom.ColorInfoR\tcolorInfo\x1a\v\n" +
|
||
"\tColorInfo\"7\n" +
|
||
"\x13NotifyUserEnterRoom\x12 \n" +
|
||
"\x04User\x18\x01 \x03(\v2\f.pb.GameUserR\x04UserB\x11Z\x0fcommon/proto/pbb\x06proto3"
|
||
|
||
var (
|
||
file_match_proto_rawDescOnce sync.Once
|
||
file_match_proto_rawDescData []byte
|
||
)
|
||
|
||
func file_match_proto_rawDescGZIP() []byte {
|
||
file_match_proto_rawDescOnce.Do(func() {
|
||
file_match_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_match_proto_rawDesc), len(file_match_proto_rawDesc)))
|
||
})
|
||
return file_match_proto_rawDescData
|
||
}
|
||
|
||
var file_match_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
|
||
var file_match_proto_goTypes = []any{
|
||
(*C2SMatchRoom)(nil), // 0: pb.C2SMatchRoom
|
||
(*S2CMatchRoom)(nil), // 1: pb.S2CMatchRoom
|
||
(*NotifyUserEnterRoom)(nil), // 2: pb.NotifyUserEnterRoom
|
||
(*S2CMatchRoom_ColorInfo)(nil), // 3: pb.S2CMatchRoom.ColorInfo
|
||
(ErrCode)(0), // 4: pb.ErrCode
|
||
(*GameUser)(nil), // 5: pb.GameUser
|
||
}
|
||
var file_match_proto_depIdxs = []int32{
|
||
4, // 0: pb.S2CMatchRoom.code:type_name -> pb.ErrCode
|
||
5, // 1: pb.S2CMatchRoom.User:type_name -> pb.GameUser
|
||
3, // 2: pb.S2CMatchRoom.colorInfo:type_name -> pb.S2CMatchRoom.ColorInfo
|
||
5, // 3: pb.NotifyUserEnterRoom.User:type_name -> pb.GameUser
|
||
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_match_proto_init() }
|
||
func file_match_proto_init() {
|
||
if File_match_proto != nil {
|
||
return
|
||
}
|
||
file_code_proto_init()
|
||
file_user_proto_init()
|
||
type x struct{}
|
||
out := protoimpl.TypeBuilder{
|
||
File: protoimpl.DescBuilder{
|
||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_match_proto_rawDesc), len(file_match_proto_rawDesc)),
|
||
NumEnums: 0,
|
||
NumMessages: 4,
|
||
NumExtensions: 0,
|
||
NumServices: 0,
|
||
},
|
||
GoTypes: file_match_proto_goTypes,
|
||
DependencyIndexes: file_match_proto_depIdxs,
|
||
MessageInfos: file_match_proto_msgTypes,
|
||
}.Build()
|
||
File_match_proto = out.File
|
||
file_match_proto_goTypes = nil
|
||
file_match_proto_depIdxs = nil
|
||
}
|