game/common/pb/msgId.proto
2025-06-06 20:02:58 +08:00

31 lines
747 B
Protocol Buffer
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.

syntax = "proto3";
package pb;
option go_package = "common/proto/pb";
/*
命名规则:
1. 所有消息id都在msgId.proto的MsgId中定义前缀需有C2S,S2C,Ntf三种之一后缀统一为Id
2. 所有错误码都在code.proto的ErrCode中定义
3. 所有消息名为对应消息id去掉后缀Id组成
*/
enum MsgId
{
MI_Unknown = 0;
NtfMaintainId = 1000; // 通知维护
// 聊天服 2000-2100
C2SChatId = 2000; // 玩家聊天消息
S2CChatId = 2001; // 复用C2SChatMsg
// 登陆服 2100-2200
C2SUserLoginId = 2100; // 玩家登陆
S2CUserLoginId = 2101;
NtfUserOnlineId = 2102;
C2SUserLogoutId = 2104;
S2CUserLogoutId = 2105;
NtfUserOfflineId = 2106;
}