game/common/pb/chat.proto
2025-06-08 22:42:34 +08:00

30 lines
631 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";
import "user.proto";
import "service.proto";
// 聊天类型
enum ChatType
{
CT_Unknown = 0;
CT_Private = 1; // 私聊,一对一
CT_World = 2; // 世界频道聊天
CT_Marquee = 3; // 跑马灯,滚动信息
}
// 聊天消息
message ReqChat
{
ChatUser src_user = 1; // 说话的人
ChatUser dst_user = 2; // 接收者
ChatType type = 3; // 聊天类型
ServiceTypeId game_id = 4; // 游戏id只在本玩法中显示的聊天信息
string content = 5; // 内容
}