mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
[+] NetProto
[+] NetProto
This commit is contained in:
@@ -15,6 +15,10 @@ namespace GameProto
|
||||
{
|
||||
public partial class NetMsgId
|
||||
{
|
||||
//心跳请求
|
||||
public const int CS_CMD_HEATBEAT_REQ = 1001;
|
||||
//心跳回包
|
||||
public const int CS_CMD_HEATBEAT_RES = 1002;
|
||||
//帐号登录请求
|
||||
public const int CS_CMD_ACT_LOGIN_REQ = 2001;
|
||||
//帐号登录回包
|
||||
|
@@ -52,19 +52,16 @@ namespace GameProto
|
||||
public partial class CSPkgBody
|
||||
{
|
||||
[global::ProtoBuf.ProtoMember(1)]
|
||||
public CSActLoginReq ActLoginReq { get; set; }
|
||||
public CSHeatBeatReq HeatBeatReq { get; set; }
|
||||
|
||||
[global::ProtoBuf.ProtoMember(2)]
|
||||
public CSActLoginRes ActLoginRes { get; set; }
|
||||
public CSHeatBeatRes HeatBeatRes { get; set; }
|
||||
|
||||
}
|
||||
|
||||
// 消息结果
|
||||
[Serializable,global::ProtoBuf.ProtoContract(Name = @"ProtoResult")]
|
||||
public partial class ProtoResult
|
||||
{
|
||||
[global::ProtoBuf.ProtoMember(3)]
|
||||
public List<string> Params = new List<string>();
|
||||
public CSActLoginReq ActLoginReq { get; set; }
|
||||
|
||||
[global::ProtoBuf.ProtoMember(4)]
|
||||
public CSActLoginRes ActLoginRes { get; set; }
|
||||
|
||||
}
|
||||
|
||||
|
44
Luban/Proto/Gen/proto_cs_common.cs
Normal file
44
Luban/Proto/Gen/proto_cs_common.cs
Normal file
@@ -0,0 +1,44 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using System;
|
||||
using ProtoBuf;
|
||||
using TEngine;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace GameProto
|
||||
{
|
||||
// 常用协议
|
||||
// 消息结果
|
||||
[Serializable,global::ProtoBuf.ProtoContract(Name = @"ProtoResult")]
|
||||
public partial class ProtoResult
|
||||
{
|
||||
[global::ProtoBuf.ProtoMember(3)]
|
||||
public List<string> Params = new List<string>();
|
||||
|
||||
}
|
||||
|
||||
// 心跳请求
|
||||
[Serializable,global::ProtoBuf.ProtoContract(Name = @"CSHeatBeatReq")]
|
||||
public partial class CSHeatBeatReq
|
||||
{
|
||||
[global::ProtoBuf.ProtoMember(1)]
|
||||
public float HeatEchoTime { get; set; }
|
||||
|
||||
}
|
||||
|
||||
// 角色登录结果返回
|
||||
[Serializable,global::ProtoBuf.ProtoContract(Name = @"CSHeatBeatRes")]
|
||||
public partial class CSHeatBeatRes
|
||||
{
|
||||
[global::ProtoBuf.ProtoMember(1)]
|
||||
public float HeatEchoTime { get; set; }
|
||||
|
||||
}
|
||||
|
||||
}
|
@@ -13,7 +13,7 @@ using System.Collections.Generic;
|
||||
|
||||
namespace GameProto
|
||||
{
|
||||
// 这个文件只放协议,和协议头
|
||||
// 玩家协议
|
||||
// 角色登录结果请求
|
||||
[Serializable,global::ProtoBuf.ProtoContract(Name = @"CSActLoginReq")]
|
||||
public partial class CSActLoginReq
|
||||
|
Reference in New Issue
Block a user