game/internalPb/internal.proto
2025-05-25 20:34:08 +08:00

28 lines
567 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 internal;
option go_package = "common/proto/internal";
enum MsgId
{
Unknown = 0;
Internal = -1; // 玩家申请进入房间
}
message InternalMsg
{
int64 user_id = 1; // 玩家id
int32 msg_id = 2; // 消息id
bytes msg = 3; // 消息
}
// 网关解包客户端消息
message C2SMessage
{
int32 service_type = 1; // 服务类型通过该值判断发往lobby,game,chat等内部服务
int32 msg_id = 2; // 消息id
int64 user_id = 3; // 玩家id
bytes msg = 4; // 消息
}