网络层
This commit is contained in:
22
Server/common/proto/cs/define.proto
Normal file
22
Server/common/proto/cs/define.proto
Normal file
@@ -0,0 +1,22 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option go_package = "common/proto/gen/cs";
|
||||
import "common.proto";
|
||||
|
||||
enum MessageID {
|
||||
MESSAGE_ID_INVALID = 0;
|
||||
|
||||
// 移动指令
|
||||
MESSAGE_TYPE_PLAYER_MOVE = 3;
|
||||
|
||||
// 聊天消息
|
||||
MESSAGE_TYPE_CHAT_MESSAGE = 4;
|
||||
|
||||
// 心跳包
|
||||
MESSAGE_TYPE_HEARTBEAT = 5;
|
||||
}
|
||||
|
||||
message Message {
|
||||
MessageID id = 1;
|
||||
bytes payload = 2;
|
||||
}
|
||||
Reference in New Issue
Block a user