game/common/proto/pb/match.pb.go

313 lines
9.1 KiB
Go
Raw Normal View History

2025-06-07 22:53:54 +08:00
// 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)
)
// 房间匹配
2025-06-08 22:42:58 +08:00
type ReqMatchRoom struct {
2025-06-07 22:53:54 +08:00
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
}
2025-06-08 22:42:58 +08:00
func (x *ReqMatchRoom) Reset() {
*x = ReqMatchRoom{}
2025-06-07 22:53:54 +08:00
mi := &file_match_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
2025-06-08 22:42:58 +08:00
func (x *ReqMatchRoom) String() string {
2025-06-07 22:53:54 +08:00
return protoimpl.X.MessageStringOf(x)
}
2025-06-08 22:42:58 +08:00
func (*ReqMatchRoom) ProtoMessage() {}
2025-06-07 22:53:54 +08:00
2025-06-08 22:42:58 +08:00
func (x *ReqMatchRoom) ProtoReflect() protoreflect.Message {
2025-06-07 22:53:54 +08:00
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)
}
2025-06-08 22:42:58 +08:00
// Deprecated: Use ReqMatchRoom.ProtoReflect.Descriptor instead.
func (*ReqMatchRoom) Descriptor() ([]byte, []int) {
2025-06-07 22:53:54 +08:00
return file_match_proto_rawDescGZIP(), []int{0}
}
2025-06-08 22:42:58 +08:00
func (x *ReqMatchRoom) GetPlayType() int32 {
2025-06-07 22:53:54 +08:00
if x != nil {
return x.PlayType
}
return 0
}
2025-06-08 22:42:58 +08:00
func (x *ReqMatchRoom) GetRoomType() int32 {
2025-06-07 22:53:54 +08:00
if x != nil {
return x.RoomType
}
return 0
}
// 玩家进房间返回 匹配服返回该消息假房间。匹配成功后发给对应玩法服玩法服发NotifyUserEnterRoom才是真房间
2025-06-08 22:42:58 +08:00
type RspMatchRoom struct {
2025-06-07 22:53:54 +08:00
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"` // 玩家数据
2025-06-08 22:42:58 +08:00
ColorInfo *RspMatchRoom_ColorInfo `protobuf:"bytes,20,opt,name=colorInfo,proto3" json:"colorInfo,omitempty"` // color玩法配置信息
2025-06-07 22:53:54 +08:00
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
2025-06-08 22:42:58 +08:00
func (x *RspMatchRoom) Reset() {
*x = RspMatchRoom{}
2025-06-07 22:53:54 +08:00
mi := &file_match_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
2025-06-08 22:42:58 +08:00
func (x *RspMatchRoom) String() string {
2025-06-07 22:53:54 +08:00
return protoimpl.X.MessageStringOf(x)
}
2025-06-08 22:42:58 +08:00
func (*RspMatchRoom) ProtoMessage() {}
2025-06-07 22:53:54 +08:00
2025-06-08 22:42:58 +08:00
func (x *RspMatchRoom) ProtoReflect() protoreflect.Message {
2025-06-07 22:53:54 +08:00
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)
}
2025-06-08 22:42:58 +08:00
// Deprecated: Use RspMatchRoom.ProtoReflect.Descriptor instead.
func (*RspMatchRoom) Descriptor() ([]byte, []int) {
2025-06-07 22:53:54 +08:00
return file_match_proto_rawDescGZIP(), []int{1}
}
2025-06-08 22:42:58 +08:00
func (x *RspMatchRoom) GetCode() ErrCode {
2025-06-07 22:53:54 +08:00
if x != nil {
return x.Code
}
return ErrCode_OK
}
2025-06-08 22:42:58 +08:00
func (x *RspMatchRoom) GetPlayType() int32 {
2025-06-07 22:53:54 +08:00
if x != nil {
return x.PlayType
}
return 0
}
2025-06-08 22:42:58 +08:00
func (x *RspMatchRoom) GetRoomType() int32 {
2025-06-07 22:53:54 +08:00
if x != nil {
return x.RoomType
}
return 0
}
2025-06-08 22:42:58 +08:00
func (x *RspMatchRoom) GetUser() *GameUser {
2025-06-07 22:53:54 +08:00
if x != nil {
return x.User
}
return nil
}
2025-06-08 22:42:58 +08:00
func (x *RspMatchRoom) GetColorInfo() *RspMatchRoom_ColorInfo {
2025-06-07 22:53:54 +08:00
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玩法配置信息
2025-06-08 22:42:58 +08:00
type RspMatchRoom_ColorInfo struct {
2025-06-07 22:53:54 +08:00
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
2025-06-08 22:42:58 +08:00
func (x *RspMatchRoom_ColorInfo) Reset() {
*x = RspMatchRoom_ColorInfo{}
2025-06-07 22:53:54 +08:00
mi := &file_match_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
2025-06-08 22:42:58 +08:00
func (x *RspMatchRoom_ColorInfo) String() string {
2025-06-07 22:53:54 +08:00
return protoimpl.X.MessageStringOf(x)
}
2025-06-08 22:42:58 +08:00
func (*RspMatchRoom_ColorInfo) ProtoMessage() {}
2025-06-07 22:53:54 +08:00
2025-06-08 22:42:58 +08:00
func (x *RspMatchRoom_ColorInfo) ProtoReflect() protoreflect.Message {
2025-06-07 22:53:54 +08:00
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)
}
2025-06-08 22:42:58 +08:00
// Deprecated: Use RspMatchRoom_ColorInfo.ProtoReflect.Descriptor instead.
func (*RspMatchRoom_ColorInfo) Descriptor() ([]byte, []int) {
2025-06-07 22:53:54 +08:00
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" +
2025-06-08 22:42:58 +08:00
"\fReqMatchRoom\x12\x1a\n" +
2025-06-07 22:53:54 +08:00
"\bPlayType\x18\x01 \x01(\x05R\bPlayType\x12\x1a\n" +
"\bRoomType\x18\x02 \x01(\x05R\bRoomType\"\xd0\x01\n" +
2025-06-08 22:42:58 +08:00
"\fRspMatchRoom\x12\x1f\n" +
2025-06-07 22:53:54 +08:00
"\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" +
2025-06-08 22:42:58 +08:00
"\tcolorInfo\x18\x14 \x01(\v2\x1a.pb.RspMatchRoom.ColorInfoR\tcolorInfo\x1a\v\n" +
2025-06-07 22:53:54 +08:00
"\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{
2025-06-08 22:42:58 +08:00
(*ReqMatchRoom)(nil), // 0: pb.ReqMatchRoom
(*RspMatchRoom)(nil), // 1: pb.RspMatchRoom
2025-06-07 22:53:54 +08:00
(*NotifyUserEnterRoom)(nil), // 2: pb.NotifyUserEnterRoom
2025-06-08 22:42:58 +08:00
(*RspMatchRoom_ColorInfo)(nil), // 3: pb.RspMatchRoom.ColorInfo
2025-06-07 22:53:54 +08:00
(ErrCode)(0), // 4: pb.ErrCode
(*GameUser)(nil), // 5: pb.GameUser
}
var file_match_proto_depIdxs = []int32{
2025-06-08 22:42:58 +08:00
4, // 0: pb.RspMatchRoom.code:type_name -> pb.ErrCode
5, // 1: pb.RspMatchRoom.User:type_name -> pb.GameUser
3, // 2: pb.RspMatchRoom.colorInfo:type_name -> pb.RspMatchRoom.ColorInfo
2025-06-07 22:53:54 +08:00
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
}