Files
TEngine/Luban/Proto/pb_schemas/proto_cs_common.proto
ALEXTANG 07c459051f [+] Proto
[+] Proto
2023-05-19 00:03:18 +08:00

25 lines
499 B
Protocol Buffer

syntax = "proto3";
package GameProto;
// 常用协议
// 消息结果
message ProtoResult
{
int32 Ret =1; //操作结果,0 为成功, 其他为错误码
int32 ParamCnt =2; //文本参数数目
repeated string Params = 3;//Ret描述的文本参数
}
// 心跳请求
message CSHeatBeatReq
{
float HeatEchoTime = 1; //客户端的请求时间,服务器原包带回
}
// 心跳返回
message CSHeatBeatRes
{
float HeatEchoTime = 1; //客户端的请求时间,服务器原包带回
}