[+] Proto

[+] Proto
This commit is contained in:
ALEXTANG
2023-05-19 00:03:18 +08:00
parent 4253a81e78
commit 07c459051f
8 changed files with 2402 additions and 9 deletions

View File

@@ -1,5 +1,8 @@
syntax = "proto3";
import public "proto_cs_common.proto";
import public "proto_cs_player.proto";
package GameProto;
// 这个文件只放协议,和协议头
@@ -33,6 +36,8 @@ message CSPkgBody
enum CSMsgID
{
CS_START = 0;
CS_HeartBeat = 10001;
CS_END = 10000;
CS_CMD_HEATBEAT_REQ = 1001; //心跳请求
CS_CMD_HEATBEAT_RES = 1002; //心跳回包
CS_CMD_ACT_LOGIN_REQ = 2001; //帐号登录请求
CS_CMD_ACT_LOGIN_RES = 2002; //帐号登录回包
}

View File

@@ -11,15 +11,13 @@ message ProtoResult
repeated string Params = 3;//Ret描述的文本参数
}
MsgId CS_CMD_HEATBEAT_REQ = 1001; //心跳请求
// 心跳请求
message CSHeatBeatReq
{
float HeatEchoTime = 1; //客户端的请求时间,服务器原包带回
}
MsgId CS_CMD_HEATBEAT_RES = 1002; //心跳回
// 角色登录结果返回
// 心跳
message CSHeatBeatRes
{
float HeatEchoTime = 1; //客户端的请求时间,服务器原包带回

View File

@@ -1,19 +1,18 @@
syntax = "proto3";
import public "proto_cs_common.proto";
package GameProto;
// 玩家协议
MsgId CS_CMD_ACT_LOGIN_REQ = 2001; //帐号登录请求
// 角色登录结果请求
message CSActLoginReq
{
uint32 Uin = 1; //帐号Uin
uint32 SvrID = 2; //服务器ID
uint32 AuthTime = 3; //账户认证的时间
uint32 NetworkType = 4, //网络类型
uint32 NetworkType = 4; //网络类型
}
MsgId CS_CMD_ACT_LOGIN_RES = 2002; //帐号登录回包
// 角色登录结果返回
message CSActLoginRes
{