[+] NetProto

[+] NetProto
This commit is contained in:
ALEXTANG
2023-05-05 22:38:50 +08:00
parent da39314f34
commit f3691e2145
3 changed files with 495 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
syntax = "proto3";
package GameProto;
// 这个文件只放协议,和协议头
// 消息协议
message CSPkg
{
CSPkgHead Head = 1; //消息协议头
CSPkgBody Body = 2; //消息协议体
}
// 消息协议头
message CSPkgHead
{
uint32 MsgId = 1; //协议号
uint32 MsgLength = 2; //协议长度
uint32 MsgVersion = 3; //协议版本
uint32 Echo = 4; //回带字段
uint32 SvrTime = 5; //服务器时间
}
// 消息协议体
message CSPkgBody
{
}
// 协议ID
enum CSMsgID
{
CS_START = 0;
CS_HeartBeat = 10001;
CS_END = 10000;
}