syntax = "proto3"; package Chat; // 频道 enum ChatChannel { // 系统频道 System = 0; // 世界频道 World = 1; // 公会频道 Guild =2; // 密语(单独发送给某人) Single =3; } // 聊天, 登录 message CS_ChatLogin { int32 Zoneid = 1; string Uid = 2; string Name =3; } // 聊天, 发送消息 message CS_ChatSendMsg { ChatChannel ToChannel = 1; string Msg = 2; string ToNickName=3; } // 聊天, 初始化返回值 message SC_ChatLogin { // 错误码 enum ErrorCode { // 成功 OK = 0; // 未知的UID AccIDInvalid = 1; // 重复登入 LoginRepeat = 2; // 内部错误 InnerError = 3; } // 错误码 ErrorCode code = 1; } // 聊天, 新的消息 message SC_ChatNewMsg { ChatChannel FromChannel = 1; string Msg = 2; string SenderName = 3; string SenderUid = 4; }