Update ProtoBase.cs

This commit is contained in:
ALEXTANG
2023-04-23 23:19:06 +08:00
parent 1957e30210
commit 2a1217558a

View File

@@ -1,59 +1,68 @@
//------------------------------------------------------------------------------
// <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 System;
using ProtoBuf; using ProtoBuf;
using TEngine; using TEngine;
using System.Collections.Generic; using System.Collections.Generic;
namespace GameProto namespace GameProto
{ {
// 这个文件只放协议,和协议头 // 这个文件只放协议,和协议头
// 消息协议 // 消息协议
[Serializable,global::ProtoBuf.ProtoContract(Name = @"CSPkg")] [Serializable,global::ProtoBuf.ProtoContract(Name = @"CSPkg")]
public partial class CSPkg public partial class CSPkg
{ {
[global::ProtoBuf.ProtoMember(1)] [global::ProtoBuf.ProtoMember(1)]
public CSPkgHead Head { get; set; } public CSPkgHead Head { get; set; }
[global::ProtoBuf.ProtoMember(2)] [global::ProtoBuf.ProtoMember(2)]
public CSPkgBody Body { get; set; } public CSPkgBody Body { get; set; }
} }
// 消息协议头 // 消息协议头
[Serializable,global::ProtoBuf.ProtoContract(Name = @"CSPkgHead")] [Serializable,global::ProtoBuf.ProtoContract(Name = @"CSPkgHead")]
public partial class CSPkgHead public partial class CSPkgHead
{ {
[global::ProtoBuf.ProtoMember(1)] [global::ProtoBuf.ProtoMember(1)]
public uint MsgId { get; set; } public uint MsgId { get; set; }
[global::ProtoBuf.ProtoMember(2)] [global::ProtoBuf.ProtoMember(2)]
public uint MsgLength { get; set; } public uint MsgLength { get; set; }
[global::ProtoBuf.ProtoMember(3)] [global::ProtoBuf.ProtoMember(3)]
public uint MsgVersion { get; set; } public uint MsgVersion { get; set; }
[global::ProtoBuf.ProtoMember(4)] [global::ProtoBuf.ProtoMember(4)]
public uint Echo { get; set; } public uint Echo { get; set; }
[global::ProtoBuf.ProtoMember(5)] [global::ProtoBuf.ProtoMember(5)]
public uint SvrTime { get; set; } public uint SvrTime { get; set; }
} }
// 消息协议体 // 消息协议体
[Serializable,global::ProtoBuf.ProtoContract(Name = @"CSPkgBody")] [Serializable,global::ProtoBuf.ProtoContract(Name = @"CSPkgBody")]
public partial class CSPkgBody public partial class CSPkgBody
{ {
} }
// 协议ID // 协议ID
[global::ProtoBuf.ProtoContract()] [global::ProtoBuf.ProtoContract()]
public enum CSMsgID public enum CSMsgID
{ {
CS_START = 0, CS_START = 0,
CS_HeartBeat = 10001, CS_HeartBeat = 10001,
CS_END = 10000, CS_END = 10000,
} }
} }