mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
[+] Proto
[+] Proto
This commit is contained in:
@@ -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; //帐号登录回包
|
||||
}
|
||||
|
@@ -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; //客户端的请求时间,服务器原包带回
|
||||
|
@@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user