game/common/proto/pb/msgId.pb.go

231 lines
7.2 KiB
Go
Raw Normal View History

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
2025-06-07 01:58:14 +08:00
// protoc-gen-go v1.36.6
// protoc v6.31.0
// source: msgId.proto
package pb
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
2025-06-07 01:58:14 +08:00
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:34 +08:00
// 1. 所有消息id都在msgId.proto的MsgId中定义前缀需有Req,Rsp,Ntf三种之一后缀统一为Id
// 2. 所有错误码都在code.proto的ErrCode中定义
// 3. 所有消息名为对应消息id去掉后缀Id组成
type MsgId int32
const (
2025-06-06 20:02:58 +08:00
MsgId_MI_Unknown MsgId = 0
MsgId_NtfMaintainId MsgId = 1000 // 通知维护
2025-06-07 22:53:54 +08:00
// 聊天服 2000-2099
2025-06-08 22:42:34 +08:00
MsgId_ReqChatId MsgId = 2000 // 玩家聊天消息
MsgId_RspChatId MsgId = 2001 // 复用C2SChatMsg
2025-06-07 22:53:54 +08:00
// 登陆服 2100-2199
2025-06-08 22:42:34 +08:00
MsgId_ReqUserLoginId MsgId = 2100 // 玩家登陆
MsgId_RspUserLoginId MsgId = 2101
MsgId_NtfUserOnlineId MsgId = 2102
2025-06-08 22:42:34 +08:00
MsgId_ReqUserLogoutId MsgId = 2104
MsgId_RspUserLogoutId MsgId = 2105
MsgId_NtfUserOfflineId MsgId = 2106
2025-06-07 22:53:54 +08:00
// 匹配服 2200-2299
2025-06-08 22:42:34 +08:00
MsgId_ReqMatchRoomId MsgId = 2200 // 匹配服
MsgId_RspMatchRoomId MsgId = 2201
2025-06-07 22:53:54 +08:00
MsgId_NtfUserEnterRoomId MsgId = 2202 // 玩家进入房间 所有玩法共用此消息
2025-06-08 22:42:34 +08:00
// color game 2300-2399
MsgId_NtfColorRoomInfoId MsgId = 2300
MsgId_NtfColorGameStartId MsgId = 2305
MsgId_NtfColorBettingId MsgId = 2310
MsgId_ReqColorBettingId MsgId = 2315
MsgId_RspColorBettingId MsgId = 2320
MsgId_NtfColorBetAreaInfoId MsgId = 2325
MsgId_NtfColorEndBettingId MsgId = 2330
MsgId_NtfColorOpenThreeDiceId MsgId = 2335
MsgId_NtfColorSettleId MsgId = 2340
MsgId_NtfColorBigUserId MsgId = 2345
MsgId_NtfColorTrendId MsgId = 2350
MsgId_NtfColorKickOutUserId MsgId = 2355
MsgId_NtfColorMaintainId MsgId = 2360
)
// Enum value maps for MsgId.
var (
MsgId_name = map[int32]string{
0: "MI_Unknown",
2025-06-06 20:02:58 +08:00
1000: "NtfMaintainId",
2025-06-08 22:42:34 +08:00
2000: "ReqChatId",
2001: "RspChatId",
2100: "ReqUserLoginId",
2101: "RspUserLoginId",
2102: "NtfUserOnlineId",
2025-06-08 22:42:34 +08:00
2104: "ReqUserLogoutId",
2105: "RspUserLogoutId",
2106: "NtfUserOfflineId",
2025-06-08 22:42:34 +08:00
2200: "ReqMatchRoomId",
2201: "RspMatchRoomId",
2025-06-07 22:53:54 +08:00
2202: "NtfUserEnterRoomId",
2025-06-08 22:42:34 +08:00
2300: "NtfColorRoomInfoId",
2305: "NtfColorGameStartId",
2310: "NtfColorBettingId",
2315: "ReqColorBettingId",
2320: "RspColorBettingId",
2325: "NtfColorBetAreaInfoId",
2330: "NtfColorEndBettingId",
2335: "NtfColorOpenThreeDiceId",
2340: "NtfColorSettleId",
2345: "NtfColorBigUserId",
2350: "NtfColorTrendId",
2355: "NtfColorKickOutUserId",
2360: "NtfColorMaintainId",
}
MsgId_value = map[string]int32{
2025-06-08 22:42:34 +08:00
"MI_Unknown": 0,
"NtfMaintainId": 1000,
"ReqChatId": 2000,
"RspChatId": 2001,
"ReqUserLoginId": 2100,
"RspUserLoginId": 2101,
"NtfUserOnlineId": 2102,
"ReqUserLogoutId": 2104,
"RspUserLogoutId": 2105,
"NtfUserOfflineId": 2106,
"ReqMatchRoomId": 2200,
"RspMatchRoomId": 2201,
"NtfUserEnterRoomId": 2202,
"NtfColorRoomInfoId": 2300,
"NtfColorGameStartId": 2305,
"NtfColorBettingId": 2310,
"ReqColorBettingId": 2315,
"RspColorBettingId": 2320,
"NtfColorBetAreaInfoId": 2325,
"NtfColorEndBettingId": 2330,
"NtfColorOpenThreeDiceId": 2335,
"NtfColorSettleId": 2340,
"NtfColorBigUserId": 2345,
"NtfColorTrendId": 2350,
"NtfColorKickOutUserId": 2355,
"NtfColorMaintainId": 2360,
}
)
func (x MsgId) Enum() *MsgId {
p := new(MsgId)
*p = x
return p
}
func (x MsgId) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (MsgId) Descriptor() protoreflect.EnumDescriptor {
return file_msgId_proto_enumTypes[0].Descriptor()
}
func (MsgId) Type() protoreflect.EnumType {
return &file_msgId_proto_enumTypes[0]
}
func (x MsgId) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use MsgId.Descriptor instead.
func (MsgId) EnumDescriptor() ([]byte, []int) {
return file_msgId_proto_rawDescGZIP(), []int{0}
}
var File_msgId_proto protoreflect.FileDescriptor
2025-06-07 01:58:14 +08:00
const file_msgId_proto_rawDesc = "" +
"\n" +
2025-06-08 22:42:34 +08:00
"\vmsgId.proto\x12\x02pb*\xdb\x04\n" +
2025-06-07 01:58:14 +08:00
"\x05MsgId\x12\x0e\n" +
"\n" +
"MI_Unknown\x10\x00\x12\x12\n" +
"\rNtfMaintainId\x10\xe8\a\x12\x0e\n" +
2025-06-08 22:42:34 +08:00
"\tReqChatId\x10\xd0\x0f\x12\x0e\n" +
"\tRspChatId\x10\xd1\x0f\x12\x13\n" +
"\x0eReqUserLoginId\x10\xb4\x10\x12\x13\n" +
"\x0eRspUserLoginId\x10\xb5\x10\x12\x14\n" +
2025-06-07 01:58:14 +08:00
"\x0fNtfUserOnlineId\x10\xb6\x10\x12\x14\n" +
2025-06-08 22:42:34 +08:00
"\x0fReqUserLogoutId\x10\xb8\x10\x12\x14\n" +
"\x0fRspUserLogoutId\x10\xb9\x10\x12\x15\n" +
2025-06-07 22:53:54 +08:00
"\x10NtfUserOfflineId\x10\xba\x10\x12\x13\n" +
2025-06-08 22:42:34 +08:00
"\x0eReqMatchRoomId\x10\x98\x11\x12\x13\n" +
"\x0eRspMatchRoomId\x10\x99\x11\x12\x17\n" +
"\x12NtfUserEnterRoomId\x10\x9a\x11\x12\x17\n" +
"\x12NtfColorRoomInfoId\x10\xfc\x11\x12\x18\n" +
"\x13NtfColorGameStartId\x10\x81\x12\x12\x16\n" +
"\x11NtfColorBettingId\x10\x86\x12\x12\x16\n" +
"\x11ReqColorBettingId\x10\x8b\x12\x12\x16\n" +
"\x11RspColorBettingId\x10\x90\x12\x12\x1a\n" +
"\x15NtfColorBetAreaInfoId\x10\x95\x12\x12\x19\n" +
"\x14NtfColorEndBettingId\x10\x9a\x12\x12\x1c\n" +
"\x17NtfColorOpenThreeDiceId\x10\x9f\x12\x12\x15\n" +
"\x10NtfColorSettleId\x10\xa4\x12\x12\x16\n" +
"\x11NtfColorBigUserId\x10\xa9\x12\x12\x14\n" +
"\x0fNtfColorTrendId\x10\xae\x12\x12\x1a\n" +
"\x15NtfColorKickOutUserId\x10\xb3\x12\x12\x17\n" +
"\x12NtfColorMaintainId\x10\xb8\x12B\x11Z\x0fcommon/proto/pbb\x06proto3"
var (
file_msgId_proto_rawDescOnce sync.Once
2025-06-07 01:58:14 +08:00
file_msgId_proto_rawDescData []byte
)
func file_msgId_proto_rawDescGZIP() []byte {
file_msgId_proto_rawDescOnce.Do(func() {
2025-06-07 01:58:14 +08:00
file_msgId_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_msgId_proto_rawDesc), len(file_msgId_proto_rawDesc)))
})
return file_msgId_proto_rawDescData
}
var file_msgId_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
2025-06-07 01:58:14 +08:00
var file_msgId_proto_goTypes = []any{
(MsgId)(0), // 0: pb.MsgId
}
var file_msgId_proto_depIdxs = []int32{
0, // [0:0] is the sub-list for method output_type
0, // [0:0] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_msgId_proto_init() }
func file_msgId_proto_init() {
if File_msgId_proto != nil {
return
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
2025-06-07 01:58:14 +08:00
RawDescriptor: unsafe.Slice(unsafe.StringData(file_msgId_proto_rawDesc), len(file_msgId_proto_rawDesc)),
NumEnums: 1,
NumMessages: 0,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_msgId_proto_goTypes,
DependencyIndexes: file_msgId_proto_depIdxs,
EnumInfos: file_msgId_proto_enumTypes,
}.Build()
File_msgId_proto = out.File
file_msgId_proto_goTypes = nil
file_msgId_proto_depIdxs = nil
}