game/common/proto/pb/common.pb.go
2025-06-15 01:42:51 +08:00

372 lines
10 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.6
// protoc v6.31.0
// source: common.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 NtfKickOutUser struct {
state protoimpl.MessageState `protogen:"open.v1"`
Code ErrCode `protobuf:"varint,1,opt,name=code,proto3,enum=pb.ErrCode" json:"code,omitempty"` // 踢出原因
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *NtfKickOutUser) Reset() {
*x = NtfKickOutUser{}
mi := &file_common_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *NtfKickOutUser) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*NtfKickOutUser) ProtoMessage() {}
func (x *NtfKickOutUser) ProtoReflect() protoreflect.Message {
mi := &file_common_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 NtfKickOutUser.ProtoReflect.Descriptor instead.
func (*NtfKickOutUser) Descriptor() ([]byte, []int) {
return file_common_proto_rawDescGZIP(), []int{0}
}
func (x *NtfKickOutUser) GetCode() ErrCode {
if x != nil {
return x.Code
}
return ErrCode_OK
}
// 玩家进入房间。首次玩家通过匹配服匹配进入玩法服,不需要发该消息
// 玩家上线后lobby服查找玩家在哪个玩法服并通知给玩家
// 玩家收到消息后发送ReqEnterRoom进入对应玩法服
type ReqEnterRoom struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ReqEnterRoom) Reset() {
*x = ReqEnterRoom{}
mi := &file_common_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ReqEnterRoom) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ReqEnterRoom) ProtoMessage() {}
func (x *ReqEnterRoom) ProtoReflect() protoreflect.Message {
mi := &file_common_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 ReqEnterRoom.ProtoReflect.Descriptor instead.
func (*ReqEnterRoom) Descriptor() ([]byte, []int) {
return file_common_proto_rawDescGZIP(), []int{1}
}
// 玩家进房间返回。之后玩法服同步房间信息给玩家
type RspEnterRoom struct {
state protoimpl.MessageState `protogen:"open.v1"`
Code ErrCode `protobuf:"varint,1,opt,name=code,proto3,enum=pb.ErrCode" json:"code,omitempty"`
GameId int32 `protobuf:"varint,2,opt,name=gameId,proto3" json:"gameId,omitempty"` // 玩法id
RoomType int32 `protobuf:"varint,3,opt,name=roomType,proto3" json:"roomType,omitempty"` // 房间类型,低级,中级,高级等
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *RspEnterRoom) Reset() {
*x = RspEnterRoom{}
mi := &file_common_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *RspEnterRoom) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RspEnterRoom) ProtoMessage() {}
func (x *RspEnterRoom) ProtoReflect() protoreflect.Message {
mi := &file_common_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 RspEnterRoom.ProtoReflect.Descriptor instead.
func (*RspEnterRoom) Descriptor() ([]byte, []int) {
return file_common_proto_rawDescGZIP(), []int{2}
}
func (x *RspEnterRoom) GetCode() ErrCode {
if x != nil {
return x.Code
}
return ErrCode_OK
}
func (x *RspEnterRoom) GetGameId() int32 {
if x != nil {
return x.GameId
}
return 0
}
func (x *RspEnterRoom) GetRoomType() int32 {
if x != nil {
return x.RoomType
}
return 0
}
// 玩家离开房间
type ReqLeaveRoom struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ReqLeaveRoom) Reset() {
*x = ReqLeaveRoom{}
mi := &file_common_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ReqLeaveRoom) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ReqLeaveRoom) ProtoMessage() {}
func (x *ReqLeaveRoom) ProtoReflect() protoreflect.Message {
mi := &file_common_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 ReqLeaveRoom.ProtoReflect.Descriptor instead.
func (*ReqLeaveRoom) Descriptor() ([]byte, []int) {
return file_common_proto_rawDescGZIP(), []int{3}
}
type RspLeaveRoom struct {
state protoimpl.MessageState `protogen:"open.v1"`
Code ErrCode `protobuf:"varint,1,opt,name=code,proto3,enum=pb.ErrCode" json:"code,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *RspLeaveRoom) Reset() {
*x = RspLeaveRoom{}
mi := &file_common_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *RspLeaveRoom) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RspLeaveRoom) ProtoMessage() {}
func (x *RspLeaveRoom) ProtoReflect() protoreflect.Message {
mi := &file_common_proto_msgTypes[4]
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 RspLeaveRoom.ProtoReflect.Descriptor instead.
func (*RspLeaveRoom) Descriptor() ([]byte, []int) {
return file_common_proto_rawDescGZIP(), []int{4}
}
func (x *RspLeaveRoom) GetCode() ErrCode {
if x != nil {
return x.Code
}
return ErrCode_OK
}
// 加钱或扣钱失败通知
type NtfPayoutFail struct {
state protoimpl.MessageState `protogen:"open.v1"`
Code ErrCode `protobuf:"varint,1,opt,name=code,proto3,enum=pb.ErrCode" json:"code,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *NtfPayoutFail) Reset() {
*x = NtfPayoutFail{}
mi := &file_common_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *NtfPayoutFail) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*NtfPayoutFail) ProtoMessage() {}
func (x *NtfPayoutFail) ProtoReflect() protoreflect.Message {
mi := &file_common_proto_msgTypes[5]
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 NtfPayoutFail.ProtoReflect.Descriptor instead.
func (*NtfPayoutFail) Descriptor() ([]byte, []int) {
return file_common_proto_rawDescGZIP(), []int{5}
}
func (x *NtfPayoutFail) GetCode() ErrCode {
if x != nil {
return x.Code
}
return ErrCode_OK
}
var File_common_proto protoreflect.FileDescriptor
const file_common_proto_rawDesc = "" +
"\n" +
"\fcommon.proto\x12\x02pb\x1a\n" +
"code.proto\"1\n" +
"\x0eNtfKickOutUser\x12\x1f\n" +
"\x04code\x18\x01 \x01(\x0e2\v.pb.ErrCodeR\x04code\"\x0e\n" +
"\fReqEnterRoom\"c\n" +
"\fRspEnterRoom\x12\x1f\n" +
"\x04code\x18\x01 \x01(\x0e2\v.pb.ErrCodeR\x04code\x12\x16\n" +
"\x06gameId\x18\x02 \x01(\x05R\x06gameId\x12\x1a\n" +
"\broomType\x18\x03 \x01(\x05R\broomType\"\x0e\n" +
"\fReqLeaveRoom\"/\n" +
"\fRspLeaveRoom\x12\x1f\n" +
"\x04code\x18\x01 \x01(\x0e2\v.pb.ErrCodeR\x04code\"0\n" +
"\rNtfPayoutFail\x12\x1f\n" +
"\x04code\x18\x01 \x01(\x0e2\v.pb.ErrCodeR\x04codeB\x11Z\x0fcommon/proto/pbb\x06proto3"
var (
file_common_proto_rawDescOnce sync.Once
file_common_proto_rawDescData []byte
)
func file_common_proto_rawDescGZIP() []byte {
file_common_proto_rawDescOnce.Do(func() {
file_common_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_common_proto_rawDesc), len(file_common_proto_rawDesc)))
})
return file_common_proto_rawDescData
}
var file_common_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
var file_common_proto_goTypes = []any{
(*NtfKickOutUser)(nil), // 0: pb.NtfKickOutUser
(*ReqEnterRoom)(nil), // 1: pb.ReqEnterRoom
(*RspEnterRoom)(nil), // 2: pb.RspEnterRoom
(*ReqLeaveRoom)(nil), // 3: pb.ReqLeaveRoom
(*RspLeaveRoom)(nil), // 4: pb.RspLeaveRoom
(*NtfPayoutFail)(nil), // 5: pb.NtfPayoutFail
(ErrCode)(0), // 6: pb.ErrCode
}
var file_common_proto_depIdxs = []int32{
6, // 0: pb.NtfKickOutUser.code:type_name -> pb.ErrCode
6, // 1: pb.RspEnterRoom.code:type_name -> pb.ErrCode
6, // 2: pb.RspLeaveRoom.code:type_name -> pb.ErrCode
6, // 3: pb.NtfPayoutFail.code:type_name -> pb.ErrCode
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_common_proto_init() }
func file_common_proto_init() {
if File_common_proto != nil {
return
}
file_code_proto_init()
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_common_proto_rawDesc), len(file_common_proto_rawDesc)),
NumEnums: 0,
NumMessages: 6,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_common_proto_goTypes,
DependencyIndexes: file_common_proto_depIdxs,
MessageInfos: file_common_proto_msgTypes,
}.Build()
File_common_proto = out.File
file_common_proto_goTypes = nil
file_common_proto_depIdxs = nil
}