From eae301b93d1c2b7ba4fc45389cd580f678c8a0cb Mon Sep 17 00:00:00 2001
From: sin365 <353374337@qq.com>
Date: Wed, 15 May 2024 18:06:31 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3ErrorCode?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
HaoYueNet.sln | 14 -
NetLib/HaoYueNet.ClientNetwork/BaseData.cs | 54 +-
NetLib/HaoYueNet.ServerNetwork/BaseData.cs | 54 +-
.../ProtobufHunterNetCore.cs | 506 ------------------
.../BaseData.cs | 54 +-
.../BaseData.cs | 2 +-
.../ProtobufHunterNetCore.cs | 506 ------------------
7 files changed, 4 insertions(+), 1186 deletions(-)
delete mode 100644 NetLib/HaoYueNet.ServerNetwork/ProtobufHunterNetCore.cs
delete mode 100644 NetLib_Standard2/HaoYueNet.ServerNetwork.Standard2/ProtobufHunterNetCore.cs
diff --git a/HaoYueNet.sln b/HaoYueNet.sln
index cc30c74..fb882b9 100644
--- a/HaoYueNet.sln
+++ b/HaoYueNet.sln
@@ -11,8 +11,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "HaoYueNet.ServerNetwork", "
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "HaoYueNet.ClientNetwork", "NetLib\HaoYueNet.ClientNetwork\HaoYueNet.ClientNetwork.csproj", "{696F6AAE-2D41-48F7-8FCD-E95CFE2A6519}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HaoYueNet.ClientNetworkNet4x", "NetLib\HaoYueNet.ClientNetworkNet4x\HaoYueNet.ClientNetworkNet4x.csproj", "{A741610F-29B9-4F0E-9A3D-0B3E1318F031}"
-EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ServerCore", "Simple\ServerCore\ServerCore.csproj", "{3F26CB3D-ECD1-4D50-8AE6-EB6762CBACF6}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Protobuf", "Simple\Protobuf\Protobuf.csproj", "{E5AE46D9-D809-4E87-8ADD-B1BD28ED60E9}"
@@ -29,8 +27,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "HaoYueNet.ClientNetworkNet.
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "HaoYueNet.ServerNetwork.Standard2", "NetLib_Standard2\HaoYueNet.ServerNetwork.Standard2\HaoYueNet.ServerNetwork.Standard2.csproj", "{6BACBAAB-3777-4165-A2F7-7F9B517286B4}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HaoYueNet.ServerNetworkNet4x", "NetLib\HaoYueNet.ServerNetworkNet4x\HaoYueNet.ServerNetworkNet4x.csproj", "{036F9BD9-308C-4194-AB40-C5952EF0E9F5}"
-EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@@ -45,10 +41,6 @@ Global
{696F6AAE-2D41-48F7-8FCD-E95CFE2A6519}.Debug|Any CPU.Build.0 = Debug|Any CPU
{696F6AAE-2D41-48F7-8FCD-E95CFE2A6519}.Release|Any CPU.ActiveCfg = Release|Any CPU
{696F6AAE-2D41-48F7-8FCD-E95CFE2A6519}.Release|Any CPU.Build.0 = Release|Any CPU
- {A741610F-29B9-4F0E-9A3D-0B3E1318F031}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {A741610F-29B9-4F0E-9A3D-0B3E1318F031}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {A741610F-29B9-4F0E-9A3D-0B3E1318F031}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {A741610F-29B9-4F0E-9A3D-0B3E1318F031}.Release|Any CPU.Build.0 = Release|Any CPU
{3F26CB3D-ECD1-4D50-8AE6-EB6762CBACF6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3F26CB3D-ECD1-4D50-8AE6-EB6762CBACF6}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3F26CB3D-ECD1-4D50-8AE6-EB6762CBACF6}.Release|Any CPU.ActiveCfg = Release|Any CPU
@@ -77,10 +69,6 @@ Global
{6BACBAAB-3777-4165-A2F7-7F9B517286B4}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6BACBAAB-3777-4165-A2F7-7F9B517286B4}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6BACBAAB-3777-4165-A2F7-7F9B517286B4}.Release|Any CPU.Build.0 = Release|Any CPU
- {036F9BD9-308C-4194-AB40-C5952EF0E9F5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {036F9BD9-308C-4194-AB40-C5952EF0E9F5}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {036F9BD9-308C-4194-AB40-C5952EF0E9F5}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {036F9BD9-308C-4194-AB40-C5952EF0E9F5}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
@@ -88,7 +76,6 @@ Global
GlobalSection(NestedProjects) = preSolution
{22ED65D3-E2FB-49E4-BDF5-EB2A70774C2E} = {D0066C06-A89A-4E05-80E0-D8232FB0FF3C}
{696F6AAE-2D41-48F7-8FCD-E95CFE2A6519} = {D0066C06-A89A-4E05-80E0-D8232FB0FF3C}
- {A741610F-29B9-4F0E-9A3D-0B3E1318F031} = {D0066C06-A89A-4E05-80E0-D8232FB0FF3C}
{3F26CB3D-ECD1-4D50-8AE6-EB6762CBACF6} = {A2CAD164-0816-4D1D-9793-1B1F398C9D29}
{E5AE46D9-D809-4E87-8ADD-B1BD28ED60E9} = {A2CAD164-0816-4D1D-9793-1B1F398C9D29}
{3F52D1D0-4B1E-4819-9AB3-A770DD5C505D} = {A2CAD164-0816-4D1D-9793-1B1F398C9D29}
@@ -96,7 +83,6 @@ Global
{45FBC25D-9EC5-4C8E-A979-005F04CE76AB} = {A2CAD164-0816-4D1D-9793-1B1F398C9D29}
{16AF64F5-6BED-4BD5-AD41-39816AD56769} = {F4C45C48-8011-4782-B0B3-99164D611A6C}
{6BACBAAB-3777-4165-A2F7-7F9B517286B4} = {F4C45C48-8011-4782-B0B3-99164D611A6C}
- {036F9BD9-308C-4194-AB40-C5952EF0E9F5} = {D0066C06-A89A-4E05-80E0-D8232FB0FF3C}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {22107F03-013F-4871-AC8E-F082694E2679}
diff --git a/NetLib/HaoYueNet.ClientNetwork/BaseData.cs b/NetLib/HaoYueNet.ClientNetwork/BaseData.cs
index af43dba..b60b043 100644
--- a/NetLib/HaoYueNet.ClientNetwork/BaseData.cs
+++ b/NetLib/HaoYueNet.ClientNetwork/BaseData.cs
@@ -40,58 +40,6 @@ namespace HaoYueNet.ClientNetwork
public static byte[] CreatePkgData(UInt16 CmdID, UInt16 Error, byte[] AddonBytes_Data)
{
- //byte[] AddonBytes_CmdID = BitConverter.GetBytes(CmdID);
- //byte[] AddonBytes_Error = BitConverter.GetBytes(Error);
- //int AllLenght = AddonBytes_CmdID.Length + AddonBytes_Error.Length + AddonBytes_Data.Length + 4;
- //int LastIndex = 0;
- ////包长度
- //byte[] AddonBytes_Lenght = BitConverter.GetBytes(AllLenght);
-
- //byte[] BufferData = new byte[AllLenght];
- ////包长度
- //AddonBytes_Lenght.CopyTo(BufferData, LastIndex);
- //LastIndex += AddonBytes_Lenght.Length;
-
- ////CMDID
- //AddonBytes_CmdID.CopyTo(BufferData, LastIndex);
- //LastIndex += AddonBytes_CmdID.Length;
-
- ////Error
- //AddonBytes_Error.CopyTo(BufferData, LastIndex);
- //LastIndex += AddonBytes_Error.Length;
-
- ////DATA
- //AddonBytes_Data.CopyTo(BufferData, LastIndex);
- //LastIndex += AddonBytes_Data.Length;
- //return BufferData;
-
- ////用Buffer.BlockCopy拷贝
- //byte[] AddonBytes_CmdID = BitConverter.GetBytes(CmdID);
- //byte[] AddonBytes_Error = BitConverter.GetBytes(Error);
- //int AllLenght = AddonBytes_CmdID.Length + AddonBytes_Error.Length + AddonBytes_Data.Length + 4;
- //int LastIndex = 0;
- ////包长度
- //byte[] AddonBytes_Lenght = BitConverter.GetBytes(AllLenght);
-
- //byte[] BufferData = new byte[AllLenght];
- ////包长度
- //Buffer.BlockCopy(AddonBytes_Lenght, 0, BufferData, LastIndex, AddonBytes_Lenght.Length);
- //LastIndex += AddonBytes_Lenght.Length;
-
- ////CMDID
- //Buffer.BlockCopy(AddonBytes_CmdID, 0, BufferData, LastIndex, AddonBytes_CmdID.Length);
- //LastIndex += AddonBytes_CmdID.Length;
-
- ////Error
- //Buffer.BlockCopy(AddonBytes_Error, 0, BufferData, LastIndex, AddonBytes_Error.Length);
- //LastIndex += AddonBytes_Error.Length;
-
- ////DATA
- //Buffer.BlockCopy(AddonBytes_Data, 0, BufferData, LastIndex, AddonBytes_Data.Length);
- //LastIndex += AddonBytes_Data.Length;
-
-
-
//用Buffer.BlockCopy拷贝
//包长度
int AllLenght = 4 + 2 + 2 + AddonBytes_Data.Length;
@@ -104,7 +52,7 @@ namespace HaoYueNet.ClientNetwork
writeUInt16(BufferData, 4, CmdID);
//Error
- writeUInt16(BufferData, 4 + 2, CmdID);
+ writeUInt16(BufferData, 4 + 2, Error);
//DATA
Buffer.BlockCopy(AddonBytes_Data, 0, BufferData, 4 + 2 + 2, AddonBytes_Data.Length);
diff --git a/NetLib/HaoYueNet.ServerNetwork/BaseData.cs b/NetLib/HaoYueNet.ServerNetwork/BaseData.cs
index 6ba2913..ce0fd3d 100644
--- a/NetLib/HaoYueNet.ServerNetwork/BaseData.cs
+++ b/NetLib/HaoYueNet.ServerNetwork/BaseData.cs
@@ -40,58 +40,6 @@ namespace HaoYueNet.ServerNetwork
public static byte[] CreatePkgData(UInt16 CmdID, UInt16 Error, byte[] AddonBytes_Data)
{
- //byte[] AddonBytes_CmdID = BitConverter.GetBytes(CmdID);
- //byte[] AddonBytes_Error = BitConverter.GetBytes(Error);
- //int AllLenght = AddonBytes_CmdID.Length + AddonBytes_Error.Length + AddonBytes_Data.Length + 4;
- //int LastIndex = 0;
- ////包长度
- //byte[] AddonBytes_Lenght = BitConverter.GetBytes(AllLenght);
-
- //byte[] BufferData = new byte[AllLenght];
- ////包长度
- //AddonBytes_Lenght.CopyTo(BufferData, LastIndex);
- //LastIndex += AddonBytes_Lenght.Length;
-
- ////CMDID
- //AddonBytes_CmdID.CopyTo(BufferData, LastIndex);
- //LastIndex += AddonBytes_CmdID.Length;
-
- ////Error
- //AddonBytes_Error.CopyTo(BufferData, LastIndex);
- //LastIndex += AddonBytes_Error.Length;
-
- ////DATA
- //AddonBytes_Data.CopyTo(BufferData, LastIndex);
- //LastIndex += AddonBytes_Data.Length;
- //return BufferData;
-
- ////用Buffer.BlockCopy拷贝
- //byte[] AddonBytes_CmdID = BitConverter.GetBytes(CmdID);
- //byte[] AddonBytes_Error = BitConverter.GetBytes(Error);
- //int AllLenght = AddonBytes_CmdID.Length + AddonBytes_Error.Length + AddonBytes_Data.Length + 4;
- //int LastIndex = 0;
- ////包长度
- //byte[] AddonBytes_Lenght = BitConverter.GetBytes(AllLenght);
-
- //byte[] BufferData = new byte[AllLenght];
- ////包长度
- //Buffer.BlockCopy(AddonBytes_Lenght, 0, BufferData, LastIndex, AddonBytes_Lenght.Length);
- //LastIndex += AddonBytes_Lenght.Length;
-
- ////CMDID
- //Buffer.BlockCopy(AddonBytes_CmdID, 0, BufferData, LastIndex, AddonBytes_CmdID.Length);
- //LastIndex += AddonBytes_CmdID.Length;
-
- ////Error
- //Buffer.BlockCopy(AddonBytes_Error, 0, BufferData, LastIndex, AddonBytes_Error.Length);
- //LastIndex += AddonBytes_Error.Length;
-
- ////DATA
- //Buffer.BlockCopy(AddonBytes_Data, 0, BufferData, LastIndex, AddonBytes_Data.Length);
- //LastIndex += AddonBytes_Data.Length;
-
-
-
//用Buffer.BlockCopy拷贝
//包长度
int AllLenght = 4 + 2 + 2 + AddonBytes_Data.Length;
@@ -104,7 +52,7 @@ namespace HaoYueNet.ServerNetwork
writeUInt16(BufferData, 4, CmdID);
//Error
- writeUInt16(BufferData, 4 + 2, CmdID);
+ writeUInt16(BufferData, 4 + 2, Error);
//DATA
Buffer.BlockCopy(AddonBytes_Data, 0, BufferData, 4 + 2 + 2, AddonBytes_Data.Length);
diff --git a/NetLib/HaoYueNet.ServerNetwork/ProtobufHunterNetCore.cs b/NetLib/HaoYueNet.ServerNetwork/ProtobufHunterNetCore.cs
deleted file mode 100644
index b2904aa..0000000
--- a/NetLib/HaoYueNet.ServerNetwork/ProtobufHunterNetCore.cs
+++ /dev/null
@@ -1,506 +0,0 @@
-////
-//// Generated by the protocol buffer compiler. DO NOT EDIT!
-//// source: protobuf_HunterNetCore.proto
-////
-//#pragma warning disable 1591, 0612, 3021
-//#region Designer generated code
-
-//using pb = global::Google.Protobuf;
-//using pbc = global::Google.Protobuf.Collections;
-//using pbr = global::Google.Protobuf.Reflection;
-//using scg = global::System.Collections.Generic;
-//namespace HunterProtobufCore {
-
-// /// Holder for reflection information generated from protobuf_HunterNetCore.proto
-// public static partial class ProtobufHunterNetCoreReflection {
-
-// #region Descriptor
-// /// File descriptor for protobuf_HunterNetCore.proto
-// public static pbr::FileDescriptor Descriptor {
-// get { return descriptor; }
-// }
-// private static pbr::FileDescriptor descriptor;
-
-// static ProtobufHunterNetCoreReflection() {
-// byte[] descriptorData = global::System.Convert.FromBase64String(
-// string.Concat(
-// "Chxwcm90b2J1Zl9IdW50ZXJOZXRDb3JlLnByb3RvEhJIdW50ZXJQcm90b2J1",
-// "ZkNvcmUiSAoNSHVudGVyTmV0X0MyUxIbChNIdW50ZXJOZXRDb3JlX0NtZElE",
-// "GAEgASgFEhoKEkh1bnRlck5ldENvcmVfRGF0YRgCIAEoDCJpCg1IdW50ZXJO",
-// "ZXRfUzJDEhsKE0h1bnRlck5ldENvcmVfQ21kSUQYASABKAUSHwoXSHVudGVy",
-// "TmV0Q29yZV9FUlJPUkNvZGUYAiABKAUSGgoSSHVudGVyTmV0Q29yZV9EYXRh",
-// "GAMgASgMQgJIAWIGcHJvdG8z"));
-// descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
-// new pbr::FileDescriptor[] { },
-// new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
-// new pbr::GeneratedClrTypeInfo(typeof(global::HunterProtobufCore.HunterNet_C2S), global::HunterProtobufCore.HunterNet_C2S.Parser, new[]{ "HunterNetCoreCmdID", "HunterNetCoreData" }, null, null, null, null),
-// new pbr::GeneratedClrTypeInfo(typeof(global::HunterProtobufCore.HunterNet_S2C), global::HunterProtobufCore.HunterNet_S2C.Parser, new[]{ "HunterNetCoreCmdID", "HunterNetCoreERRORCode", "HunterNetCoreData" }, null, null, null, null)
-// }));
-// }
-// #endregion
-
-// }
-// #region Messages
-// ///
-// ///上行
-// ///
-// public sealed partial class HunterNet_C2S : pb::IMessage
-// #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
-// , pb::IBufferMessage
-// #endif
-// {
-// private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HunterNet_C2S());
-// private pb::UnknownFieldSet _unknownFields;
-// [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-// public static pb::MessageParser Parser { get { return _parser; } }
-
-// [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-// public static pbr::MessageDescriptor Descriptor {
-// get { return global::HunterProtobufCore.ProtobufHunterNetCoreReflection.Descriptor.MessageTypes[0]; }
-// }
-
-// [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-// pbr::MessageDescriptor pb::IMessage.Descriptor {
-// get { return Descriptor; }
-// }
-
-// [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-// public HunterNet_C2S() {
-// OnConstruction();
-// }
-
-// partial void OnConstruction();
-
-// [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-// public HunterNet_C2S(HunterNet_C2S other) : this() {
-// hunterNetCoreCmdID_ = other.hunterNetCoreCmdID_;
-// hunterNetCoreData_ = other.hunterNetCoreData_;
-// _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
-// }
-
-// [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-// public HunterNet_C2S Clone() {
-// return new HunterNet_C2S(this);
-// }
-
-// /// Field number for the "HunterNetCore_CmdID" field.
-// public const int HunterNetCoreCmdIDFieldNumber = 1;
-// private int hunterNetCoreCmdID_;
-// [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-// public int HunterNetCoreCmdID {
-// get { return hunterNetCoreCmdID_; }
-// set {
-// hunterNetCoreCmdID_ = value;
-// }
-// }
-
-// /// Field number for the "HunterNetCore_Data" field.
-// public const int HunterNetCoreDataFieldNumber = 2;
-// private pb::ByteString hunterNetCoreData_ = pb::ByteString.Empty;
-// [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-// public pb::ByteString HunterNetCoreData {
-// get { return hunterNetCoreData_; }
-// set {
-// hunterNetCoreData_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
-// }
-// }
-
-// [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-// public override bool Equals(object other) {
-// return Equals(other as HunterNet_C2S);
-// }
-
-// [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-// public bool Equals(HunterNet_C2S other) {
-// if (ReferenceEquals(other, null)) {
-// return false;
-// }
-// if (ReferenceEquals(other, this)) {
-// return true;
-// }
-// if (HunterNetCoreCmdID != other.HunterNetCoreCmdID) return false;
-// if (HunterNetCoreData != other.HunterNetCoreData) return false;
-// return Equals(_unknownFields, other._unknownFields);
-// }
-
-// [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-// public override int GetHashCode() {
-// int hash = 1;
-// if (HunterNetCoreCmdID != 0) hash ^= HunterNetCoreCmdID.GetHashCode();
-// if (HunterNetCoreData.Length != 0) hash ^= HunterNetCoreData.GetHashCode();
-// if (_unknownFields != null) {
-// hash ^= _unknownFields.GetHashCode();
-// }
-// return hash;
-// }
-
-// [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-// public override string ToString() {
-// return pb::JsonFormatter.ToDiagnosticString(this);
-// }
-
-// [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-// public void WriteTo(pb::CodedOutputStream output) {
-// #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
-// output.WriteRawMessage(this);
-// #else
-// if (HunterNetCoreCmdID != 0) {
-// output.WriteRawTag(8);
-// output.WriteInt32(HunterNetCoreCmdID);
-// }
-// if (HunterNetCoreData.Length != 0) {
-// output.WriteRawTag(18);
-// output.WriteBytes(HunterNetCoreData);
-// }
-// if (_unknownFields != null) {
-// _unknownFields.WriteTo(output);
-// }
-// #endif
-// }
-
-// #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
-// [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-// void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
-// if (HunterNetCoreCmdID != 0) {
-// output.WriteRawTag(8);
-// output.WriteInt32(HunterNetCoreCmdID);
-// }
-// if (HunterNetCoreData.Length != 0) {
-// output.WriteRawTag(18);
-// output.WriteBytes(HunterNetCoreData);
-// }
-// if (_unknownFields != null) {
-// _unknownFields.WriteTo(ref output);
-// }
-// }
-// #endif
-
-// [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-// public int CalculateSize() {
-// int size = 0;
-// if (HunterNetCoreCmdID != 0) {
-// size += 1 + pb::CodedOutputStream.ComputeInt32Size(HunterNetCoreCmdID);
-// }
-// if (HunterNetCoreData.Length != 0) {
-// size += 1 + pb::CodedOutputStream.ComputeBytesSize(HunterNetCoreData);
-// }
-// if (_unknownFields != null) {
-// size += _unknownFields.CalculateSize();
-// }
-// return size;
-// }
-
-// [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-// public void MergeFrom(HunterNet_C2S other) {
-// if (other == null) {
-// return;
-// }
-// if (other.HunterNetCoreCmdID != 0) {
-// HunterNetCoreCmdID = other.HunterNetCoreCmdID;
-// }
-// if (other.HunterNetCoreData.Length != 0) {
-// HunterNetCoreData = other.HunterNetCoreData;
-// }
-// _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
-// }
-
-// [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-// public void MergeFrom(pb::CodedInputStream input) {
-// #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
-// input.ReadRawMessage(this);
-// #else
-// uint tag;
-// while ((tag = input.ReadTag()) != 0) {
-// switch(tag) {
-// default:
-// _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
-// break;
-// case 8: {
-// HunterNetCoreCmdID = input.ReadInt32();
-// break;
-// }
-// case 18: {
-// HunterNetCoreData = input.ReadBytes();
-// break;
-// }
-// }
-// }
-// #endif
-// }
-
-// #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
-// [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-// void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
-// uint tag;
-// while ((tag = input.ReadTag()) != 0) {
-// switch(tag) {
-// default:
-// _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
-// break;
-// case 8: {
-// HunterNetCoreCmdID = input.ReadInt32();
-// break;
-// }
-// case 18: {
-// HunterNetCoreData = input.ReadBytes();
-// break;
-// }
-// }
-// }
-// }
-// #endif
-
-// }
-
-// ///
-// ///下行
-// ///
-// public sealed partial class HunterNet_S2C : pb::IMessage
-// #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
-// , pb::IBufferMessage
-// #endif
-// {
-// private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HunterNet_S2C());
-// private pb::UnknownFieldSet _unknownFields;
-// [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-// public static pb::MessageParser Parser { get { return _parser; } }
-
-// [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-// public static pbr::MessageDescriptor Descriptor {
-// get { return global::HunterProtobufCore.ProtobufHunterNetCoreReflection.Descriptor.MessageTypes[1]; }
-// }
-
-// [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-// pbr::MessageDescriptor pb::IMessage.Descriptor {
-// get { return Descriptor; }
-// }
-
-// [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-// public HunterNet_S2C() {
-// OnConstruction();
-// }
-
-// partial void OnConstruction();
-
-// [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-// public HunterNet_S2C(HunterNet_S2C other) : this() {
-// hunterNetCoreCmdID_ = other.hunterNetCoreCmdID_;
-// hunterNetCoreERRORCode_ = other.hunterNetCoreERRORCode_;
-// hunterNetCoreData_ = other.hunterNetCoreData_;
-// _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
-// }
-
-// [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-// public HunterNet_S2C Clone() {
-// return new HunterNet_S2C(this);
-// }
-
-// /// Field number for the "HunterNetCore_CmdID" field.
-// public const int HunterNetCoreCmdIDFieldNumber = 1;
-// private int hunterNetCoreCmdID_;
-// [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-// public int HunterNetCoreCmdID {
-// get { return hunterNetCoreCmdID_; }
-// set {
-// hunterNetCoreCmdID_ = value;
-// }
-// }
-
-// /// Field number for the "HunterNetCore_ERRORCode" field.
-// public const int HunterNetCoreERRORCodeFieldNumber = 2;
-// private int hunterNetCoreERRORCode_;
-// [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-// public int HunterNetCoreERRORCode {
-// get { return hunterNetCoreERRORCode_; }
-// set {
-// hunterNetCoreERRORCode_ = value;
-// }
-// }
-
-// /// Field number for the "HunterNetCore_Data" field.
-// public const int HunterNetCoreDataFieldNumber = 3;
-// private pb::ByteString hunterNetCoreData_ = pb::ByteString.Empty;
-// [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-// public pb::ByteString HunterNetCoreData {
-// get { return hunterNetCoreData_; }
-// set {
-// hunterNetCoreData_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
-// }
-// }
-
-// [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-// public override bool Equals(object other) {
-// return Equals(other as HunterNet_S2C);
-// }
-
-// [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-// public bool Equals(HunterNet_S2C other) {
-// if (ReferenceEquals(other, null)) {
-// return false;
-// }
-// if (ReferenceEquals(other, this)) {
-// return true;
-// }
-// if (HunterNetCoreCmdID != other.HunterNetCoreCmdID) return false;
-// if (HunterNetCoreERRORCode != other.HunterNetCoreERRORCode) return false;
-// if (HunterNetCoreData != other.HunterNetCoreData) return false;
-// return Equals(_unknownFields, other._unknownFields);
-// }
-
-// [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-// public override int GetHashCode() {
-// int hash = 1;
-// if (HunterNetCoreCmdID != 0) hash ^= HunterNetCoreCmdID.GetHashCode();
-// if (HunterNetCoreERRORCode != 0) hash ^= HunterNetCoreERRORCode.GetHashCode();
-// if (HunterNetCoreData.Length != 0) hash ^= HunterNetCoreData.GetHashCode();
-// if (_unknownFields != null) {
-// hash ^= _unknownFields.GetHashCode();
-// }
-// return hash;
-// }
-
-// [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-// public override string ToString() {
-// return pb::JsonFormatter.ToDiagnosticString(this);
-// }
-
-// [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-// public void WriteTo(pb::CodedOutputStream output) {
-// #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
-// output.WriteRawMessage(this);
-// #else
-// if (HunterNetCoreCmdID != 0) {
-// output.WriteRawTag(8);
-// output.WriteInt32(HunterNetCoreCmdID);
-// }
-// if (HunterNetCoreERRORCode != 0) {
-// output.WriteRawTag(16);
-// output.WriteInt32(HunterNetCoreERRORCode);
-// }
-// if (HunterNetCoreData.Length != 0) {
-// output.WriteRawTag(26);
-// output.WriteBytes(HunterNetCoreData);
-// }
-// if (_unknownFields != null) {
-// _unknownFields.WriteTo(output);
-// }
-// #endif
-// }
-
-// #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
-// [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-// void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
-// if (HunterNetCoreCmdID != 0) {
-// output.WriteRawTag(8);
-// output.WriteInt32(HunterNetCoreCmdID);
-// }
-// if (HunterNetCoreERRORCode != 0) {
-// output.WriteRawTag(16);
-// output.WriteInt32(HunterNetCoreERRORCode);
-// }
-// if (HunterNetCoreData.Length != 0) {
-// output.WriteRawTag(26);
-// output.WriteBytes(HunterNetCoreData);
-// }
-// if (_unknownFields != null) {
-// _unknownFields.WriteTo(ref output);
-// }
-// }
-// #endif
-
-// [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-// public int CalculateSize() {
-// int size = 0;
-// if (HunterNetCoreCmdID != 0) {
-// size += 1 + pb::CodedOutputStream.ComputeInt32Size(HunterNetCoreCmdID);
-// }
-// if (HunterNetCoreERRORCode != 0) {
-// size += 1 + pb::CodedOutputStream.ComputeInt32Size(HunterNetCoreERRORCode);
-// }
-// if (HunterNetCoreData.Length != 0) {
-// size += 1 + pb::CodedOutputStream.ComputeBytesSize(HunterNetCoreData);
-// }
-// if (_unknownFields != null) {
-// size += _unknownFields.CalculateSize();
-// }
-// return size;
-// }
-
-// [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-// public void MergeFrom(HunterNet_S2C other) {
-// if (other == null) {
-// return;
-// }
-// if (other.HunterNetCoreCmdID != 0) {
-// HunterNetCoreCmdID = other.HunterNetCoreCmdID;
-// }
-// if (other.HunterNetCoreERRORCode != 0) {
-// HunterNetCoreERRORCode = other.HunterNetCoreERRORCode;
-// }
-// if (other.HunterNetCoreData.Length != 0) {
-// HunterNetCoreData = other.HunterNetCoreData;
-// }
-// _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
-// }
-
-// [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-// public void MergeFrom(pb::CodedInputStream input) {
-// #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
-// input.ReadRawMessage(this);
-// #else
-// uint tag;
-// while ((tag = input.ReadTag()) != 0) {
-// switch(tag) {
-// default:
-// _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
-// break;
-// case 8: {
-// HunterNetCoreCmdID = input.ReadInt32();
-// break;
-// }
-// case 16: {
-// HunterNetCoreERRORCode = input.ReadInt32();
-// break;
-// }
-// case 26: {
-// HunterNetCoreData = input.ReadBytes();
-// break;
-// }
-// }
-// }
-// #endif
-// }
-
-// #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
-// [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-// void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
-// uint tag;
-// while ((tag = input.ReadTag()) != 0) {
-// switch(tag) {
-// default:
-// _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
-// break;
-// case 8: {
-// HunterNetCoreCmdID = input.ReadInt32();
-// break;
-// }
-// case 16: {
-// HunterNetCoreERRORCode = input.ReadInt32();
-// break;
-// }
-// case 26: {
-// HunterNetCoreData = input.ReadBytes();
-// break;
-// }
-// }
-// }
-// }
-// #endif
-
-// }
-
-// #endregion
-
-//}
-
-//#endregion Designer generated code
diff --git a/NetLib_Standard2/HaoYueNet.ClientNetworkNet.Standard2/BaseData.cs b/NetLib_Standard2/HaoYueNet.ClientNetworkNet.Standard2/BaseData.cs
index 609b902..86f99aa 100644
--- a/NetLib_Standard2/HaoYueNet.ClientNetworkNet.Standard2/BaseData.cs
+++ b/NetLib_Standard2/HaoYueNet.ClientNetworkNet.Standard2/BaseData.cs
@@ -43,58 +43,6 @@ namespace HaoYueNet.ClientNetworkNet.Standard2
public static byte[] CreatePkgData(UInt16 CmdID, UInt16 Error, byte[] AddonBytes_Data)
{
- //byte[] AddonBytes_CmdID = BitConverter.GetBytes(CmdID);
- //byte[] AddonBytes_Error = BitConverter.GetBytes(Error);
- //int AllLenght = AddonBytes_CmdID.Length + AddonBytes_Error.Length + AddonBytes_Data.Length + 4;
- //int LastIndex = 0;
- ////包长度
- //byte[] AddonBytes_Lenght = BitConverter.GetBytes(AllLenght);
-
- //byte[] BufferData = new byte[AllLenght];
- ////包长度
- //AddonBytes_Lenght.CopyTo(BufferData, LastIndex);
- //LastIndex += AddonBytes_Lenght.Length;
-
- ////CMDID
- //AddonBytes_CmdID.CopyTo(BufferData, LastIndex);
- //LastIndex += AddonBytes_CmdID.Length;
-
- ////Error
- //AddonBytes_Error.CopyTo(BufferData, LastIndex);
- //LastIndex += AddonBytes_Error.Length;
-
- ////DATA
- //AddonBytes_Data.CopyTo(BufferData, LastIndex);
- //LastIndex += AddonBytes_Data.Length;
- //return BufferData;
-
- ////用Buffer.BlockCopy拷贝
- //byte[] AddonBytes_CmdID = BitConverter.GetBytes(CmdID);
- //byte[] AddonBytes_Error = BitConverter.GetBytes(Error);
- //int AllLenght = AddonBytes_CmdID.Length + AddonBytes_Error.Length + AddonBytes_Data.Length + 4;
- //int LastIndex = 0;
- ////包长度
- //byte[] AddonBytes_Lenght = BitConverter.GetBytes(AllLenght);
-
- //byte[] BufferData = new byte[AllLenght];
- ////包长度
- //Buffer.BlockCopy(AddonBytes_Lenght, 0, BufferData, LastIndex, AddonBytes_Lenght.Length);
- //LastIndex += AddonBytes_Lenght.Length;
-
- ////CMDID
- //Buffer.BlockCopy(AddonBytes_CmdID, 0, BufferData, LastIndex, AddonBytes_CmdID.Length);
- //LastIndex += AddonBytes_CmdID.Length;
-
- ////Error
- //Buffer.BlockCopy(AddonBytes_Error, 0, BufferData, LastIndex, AddonBytes_Error.Length);
- //LastIndex += AddonBytes_Error.Length;
-
- ////DATA
- //Buffer.BlockCopy(AddonBytes_Data, 0, BufferData, LastIndex, AddonBytes_Data.Length);
- //LastIndex += AddonBytes_Data.Length;
-
-
-
//用Buffer.BlockCopy拷贝
//包长度
int AllLenght = 4 + 2 + 2 + AddonBytes_Data.Length;
@@ -107,7 +55,7 @@ namespace HaoYueNet.ClientNetworkNet.Standard2
writeUInt16(BufferData, 4, CmdID);
//Error
- writeUInt16(BufferData, 4 + 2, CmdID);
+ writeUInt16(BufferData, 4 + 2, Error);
//DATA
Buffer.BlockCopy(AddonBytes_Data, 0, BufferData, 4 + 2 + 2, AddonBytes_Data.Length);
diff --git a/NetLib_Standard2/HaoYueNet.ServerNetwork.Standard2/BaseData.cs b/NetLib_Standard2/HaoYueNet.ServerNetwork.Standard2/BaseData.cs
index a398a69..33a726c 100644
--- a/NetLib_Standard2/HaoYueNet.ServerNetwork.Standard2/BaseData.cs
+++ b/NetLib_Standard2/HaoYueNet.ServerNetwork.Standard2/BaseData.cs
@@ -55,7 +55,7 @@ namespace HaoYueNet.ServerNetwork.Standard2
writeUInt16(BufferData, 4, CmdID);
//Error
- writeUInt16(BufferData, 4 + 2, CmdID);
+ writeUInt16(BufferData, 4 + 2, Error);
//DATA
Buffer.BlockCopy(AddonBytes_Data, 0, BufferData, 4 + 2 + 2, AddonBytes_Data.Length);
diff --git a/NetLib_Standard2/HaoYueNet.ServerNetwork.Standard2/ProtobufHunterNetCore.cs b/NetLib_Standard2/HaoYueNet.ServerNetwork.Standard2/ProtobufHunterNetCore.cs
deleted file mode 100644
index b2904aa..0000000
--- a/NetLib_Standard2/HaoYueNet.ServerNetwork.Standard2/ProtobufHunterNetCore.cs
+++ /dev/null
@@ -1,506 +0,0 @@
-////
-//// Generated by the protocol buffer compiler. DO NOT EDIT!
-//// source: protobuf_HunterNetCore.proto
-////
-//#pragma warning disable 1591, 0612, 3021
-//#region Designer generated code
-
-//using pb = global::Google.Protobuf;
-//using pbc = global::Google.Protobuf.Collections;
-//using pbr = global::Google.Protobuf.Reflection;
-//using scg = global::System.Collections.Generic;
-//namespace HunterProtobufCore {
-
-// /// Holder for reflection information generated from protobuf_HunterNetCore.proto
-// public static partial class ProtobufHunterNetCoreReflection {
-
-// #region Descriptor
-// /// File descriptor for protobuf_HunterNetCore.proto
-// public static pbr::FileDescriptor Descriptor {
-// get { return descriptor; }
-// }
-// private static pbr::FileDescriptor descriptor;
-
-// static ProtobufHunterNetCoreReflection() {
-// byte[] descriptorData = global::System.Convert.FromBase64String(
-// string.Concat(
-// "Chxwcm90b2J1Zl9IdW50ZXJOZXRDb3JlLnByb3RvEhJIdW50ZXJQcm90b2J1",
-// "ZkNvcmUiSAoNSHVudGVyTmV0X0MyUxIbChNIdW50ZXJOZXRDb3JlX0NtZElE",
-// "GAEgASgFEhoKEkh1bnRlck5ldENvcmVfRGF0YRgCIAEoDCJpCg1IdW50ZXJO",
-// "ZXRfUzJDEhsKE0h1bnRlck5ldENvcmVfQ21kSUQYASABKAUSHwoXSHVudGVy",
-// "TmV0Q29yZV9FUlJPUkNvZGUYAiABKAUSGgoSSHVudGVyTmV0Q29yZV9EYXRh",
-// "GAMgASgMQgJIAWIGcHJvdG8z"));
-// descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
-// new pbr::FileDescriptor[] { },
-// new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
-// new pbr::GeneratedClrTypeInfo(typeof(global::HunterProtobufCore.HunterNet_C2S), global::HunterProtobufCore.HunterNet_C2S.Parser, new[]{ "HunterNetCoreCmdID", "HunterNetCoreData" }, null, null, null, null),
-// new pbr::GeneratedClrTypeInfo(typeof(global::HunterProtobufCore.HunterNet_S2C), global::HunterProtobufCore.HunterNet_S2C.Parser, new[]{ "HunterNetCoreCmdID", "HunterNetCoreERRORCode", "HunterNetCoreData" }, null, null, null, null)
-// }));
-// }
-// #endregion
-
-// }
-// #region Messages
-// ///
-// ///上行
-// ///
-// public sealed partial class HunterNet_C2S : pb::IMessage
-// #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
-// , pb::IBufferMessage
-// #endif
-// {
-// private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HunterNet_C2S());
-// private pb::UnknownFieldSet _unknownFields;
-// [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-// public static pb::MessageParser Parser { get { return _parser; } }
-
-// [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-// public static pbr::MessageDescriptor Descriptor {
-// get { return global::HunterProtobufCore.ProtobufHunterNetCoreReflection.Descriptor.MessageTypes[0]; }
-// }
-
-// [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-// pbr::MessageDescriptor pb::IMessage.Descriptor {
-// get { return Descriptor; }
-// }
-
-// [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-// public HunterNet_C2S() {
-// OnConstruction();
-// }
-
-// partial void OnConstruction();
-
-// [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-// public HunterNet_C2S(HunterNet_C2S other) : this() {
-// hunterNetCoreCmdID_ = other.hunterNetCoreCmdID_;
-// hunterNetCoreData_ = other.hunterNetCoreData_;
-// _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
-// }
-
-// [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-// public HunterNet_C2S Clone() {
-// return new HunterNet_C2S(this);
-// }
-
-// /// Field number for the "HunterNetCore_CmdID" field.
-// public const int HunterNetCoreCmdIDFieldNumber = 1;
-// private int hunterNetCoreCmdID_;
-// [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-// public int HunterNetCoreCmdID {
-// get { return hunterNetCoreCmdID_; }
-// set {
-// hunterNetCoreCmdID_ = value;
-// }
-// }
-
-// /// Field number for the "HunterNetCore_Data" field.
-// public const int HunterNetCoreDataFieldNumber = 2;
-// private pb::ByteString hunterNetCoreData_ = pb::ByteString.Empty;
-// [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-// public pb::ByteString HunterNetCoreData {
-// get { return hunterNetCoreData_; }
-// set {
-// hunterNetCoreData_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
-// }
-// }
-
-// [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-// public override bool Equals(object other) {
-// return Equals(other as HunterNet_C2S);
-// }
-
-// [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-// public bool Equals(HunterNet_C2S other) {
-// if (ReferenceEquals(other, null)) {
-// return false;
-// }
-// if (ReferenceEquals(other, this)) {
-// return true;
-// }
-// if (HunterNetCoreCmdID != other.HunterNetCoreCmdID) return false;
-// if (HunterNetCoreData != other.HunterNetCoreData) return false;
-// return Equals(_unknownFields, other._unknownFields);
-// }
-
-// [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-// public override int GetHashCode() {
-// int hash = 1;
-// if (HunterNetCoreCmdID != 0) hash ^= HunterNetCoreCmdID.GetHashCode();
-// if (HunterNetCoreData.Length != 0) hash ^= HunterNetCoreData.GetHashCode();
-// if (_unknownFields != null) {
-// hash ^= _unknownFields.GetHashCode();
-// }
-// return hash;
-// }
-
-// [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-// public override string ToString() {
-// return pb::JsonFormatter.ToDiagnosticString(this);
-// }
-
-// [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-// public void WriteTo(pb::CodedOutputStream output) {
-// #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
-// output.WriteRawMessage(this);
-// #else
-// if (HunterNetCoreCmdID != 0) {
-// output.WriteRawTag(8);
-// output.WriteInt32(HunterNetCoreCmdID);
-// }
-// if (HunterNetCoreData.Length != 0) {
-// output.WriteRawTag(18);
-// output.WriteBytes(HunterNetCoreData);
-// }
-// if (_unknownFields != null) {
-// _unknownFields.WriteTo(output);
-// }
-// #endif
-// }
-
-// #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
-// [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-// void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
-// if (HunterNetCoreCmdID != 0) {
-// output.WriteRawTag(8);
-// output.WriteInt32(HunterNetCoreCmdID);
-// }
-// if (HunterNetCoreData.Length != 0) {
-// output.WriteRawTag(18);
-// output.WriteBytes(HunterNetCoreData);
-// }
-// if (_unknownFields != null) {
-// _unknownFields.WriteTo(ref output);
-// }
-// }
-// #endif
-
-// [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-// public int CalculateSize() {
-// int size = 0;
-// if (HunterNetCoreCmdID != 0) {
-// size += 1 + pb::CodedOutputStream.ComputeInt32Size(HunterNetCoreCmdID);
-// }
-// if (HunterNetCoreData.Length != 0) {
-// size += 1 + pb::CodedOutputStream.ComputeBytesSize(HunterNetCoreData);
-// }
-// if (_unknownFields != null) {
-// size += _unknownFields.CalculateSize();
-// }
-// return size;
-// }
-
-// [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-// public void MergeFrom(HunterNet_C2S other) {
-// if (other == null) {
-// return;
-// }
-// if (other.HunterNetCoreCmdID != 0) {
-// HunterNetCoreCmdID = other.HunterNetCoreCmdID;
-// }
-// if (other.HunterNetCoreData.Length != 0) {
-// HunterNetCoreData = other.HunterNetCoreData;
-// }
-// _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
-// }
-
-// [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-// public void MergeFrom(pb::CodedInputStream input) {
-// #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
-// input.ReadRawMessage(this);
-// #else
-// uint tag;
-// while ((tag = input.ReadTag()) != 0) {
-// switch(tag) {
-// default:
-// _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
-// break;
-// case 8: {
-// HunterNetCoreCmdID = input.ReadInt32();
-// break;
-// }
-// case 18: {
-// HunterNetCoreData = input.ReadBytes();
-// break;
-// }
-// }
-// }
-// #endif
-// }
-
-// #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
-// [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-// void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
-// uint tag;
-// while ((tag = input.ReadTag()) != 0) {
-// switch(tag) {
-// default:
-// _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
-// break;
-// case 8: {
-// HunterNetCoreCmdID = input.ReadInt32();
-// break;
-// }
-// case 18: {
-// HunterNetCoreData = input.ReadBytes();
-// break;
-// }
-// }
-// }
-// }
-// #endif
-
-// }
-
-// ///
-// ///下行
-// ///
-// public sealed partial class HunterNet_S2C : pb::IMessage
-// #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
-// , pb::IBufferMessage
-// #endif
-// {
-// private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HunterNet_S2C());
-// private pb::UnknownFieldSet _unknownFields;
-// [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-// public static pb::MessageParser Parser { get { return _parser; } }
-
-// [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-// public static pbr::MessageDescriptor Descriptor {
-// get { return global::HunterProtobufCore.ProtobufHunterNetCoreReflection.Descriptor.MessageTypes[1]; }
-// }
-
-// [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-// pbr::MessageDescriptor pb::IMessage.Descriptor {
-// get { return Descriptor; }
-// }
-
-// [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-// public HunterNet_S2C() {
-// OnConstruction();
-// }
-
-// partial void OnConstruction();
-
-// [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-// public HunterNet_S2C(HunterNet_S2C other) : this() {
-// hunterNetCoreCmdID_ = other.hunterNetCoreCmdID_;
-// hunterNetCoreERRORCode_ = other.hunterNetCoreERRORCode_;
-// hunterNetCoreData_ = other.hunterNetCoreData_;
-// _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
-// }
-
-// [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-// public HunterNet_S2C Clone() {
-// return new HunterNet_S2C(this);
-// }
-
-// /// Field number for the "HunterNetCore_CmdID" field.
-// public const int HunterNetCoreCmdIDFieldNumber = 1;
-// private int hunterNetCoreCmdID_;
-// [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-// public int HunterNetCoreCmdID {
-// get { return hunterNetCoreCmdID_; }
-// set {
-// hunterNetCoreCmdID_ = value;
-// }
-// }
-
-// /// Field number for the "HunterNetCore_ERRORCode" field.
-// public const int HunterNetCoreERRORCodeFieldNumber = 2;
-// private int hunterNetCoreERRORCode_;
-// [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-// public int HunterNetCoreERRORCode {
-// get { return hunterNetCoreERRORCode_; }
-// set {
-// hunterNetCoreERRORCode_ = value;
-// }
-// }
-
-// /// Field number for the "HunterNetCore_Data" field.
-// public const int HunterNetCoreDataFieldNumber = 3;
-// private pb::ByteString hunterNetCoreData_ = pb::ByteString.Empty;
-// [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-// public pb::ByteString HunterNetCoreData {
-// get { return hunterNetCoreData_; }
-// set {
-// hunterNetCoreData_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
-// }
-// }
-
-// [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-// public override bool Equals(object other) {
-// return Equals(other as HunterNet_S2C);
-// }
-
-// [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-// public bool Equals(HunterNet_S2C other) {
-// if (ReferenceEquals(other, null)) {
-// return false;
-// }
-// if (ReferenceEquals(other, this)) {
-// return true;
-// }
-// if (HunterNetCoreCmdID != other.HunterNetCoreCmdID) return false;
-// if (HunterNetCoreERRORCode != other.HunterNetCoreERRORCode) return false;
-// if (HunterNetCoreData != other.HunterNetCoreData) return false;
-// return Equals(_unknownFields, other._unknownFields);
-// }
-
-// [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-// public override int GetHashCode() {
-// int hash = 1;
-// if (HunterNetCoreCmdID != 0) hash ^= HunterNetCoreCmdID.GetHashCode();
-// if (HunterNetCoreERRORCode != 0) hash ^= HunterNetCoreERRORCode.GetHashCode();
-// if (HunterNetCoreData.Length != 0) hash ^= HunterNetCoreData.GetHashCode();
-// if (_unknownFields != null) {
-// hash ^= _unknownFields.GetHashCode();
-// }
-// return hash;
-// }
-
-// [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-// public override string ToString() {
-// return pb::JsonFormatter.ToDiagnosticString(this);
-// }
-
-// [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-// public void WriteTo(pb::CodedOutputStream output) {
-// #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
-// output.WriteRawMessage(this);
-// #else
-// if (HunterNetCoreCmdID != 0) {
-// output.WriteRawTag(8);
-// output.WriteInt32(HunterNetCoreCmdID);
-// }
-// if (HunterNetCoreERRORCode != 0) {
-// output.WriteRawTag(16);
-// output.WriteInt32(HunterNetCoreERRORCode);
-// }
-// if (HunterNetCoreData.Length != 0) {
-// output.WriteRawTag(26);
-// output.WriteBytes(HunterNetCoreData);
-// }
-// if (_unknownFields != null) {
-// _unknownFields.WriteTo(output);
-// }
-// #endif
-// }
-
-// #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
-// [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-// void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
-// if (HunterNetCoreCmdID != 0) {
-// output.WriteRawTag(8);
-// output.WriteInt32(HunterNetCoreCmdID);
-// }
-// if (HunterNetCoreERRORCode != 0) {
-// output.WriteRawTag(16);
-// output.WriteInt32(HunterNetCoreERRORCode);
-// }
-// if (HunterNetCoreData.Length != 0) {
-// output.WriteRawTag(26);
-// output.WriteBytes(HunterNetCoreData);
-// }
-// if (_unknownFields != null) {
-// _unknownFields.WriteTo(ref output);
-// }
-// }
-// #endif
-
-// [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-// public int CalculateSize() {
-// int size = 0;
-// if (HunterNetCoreCmdID != 0) {
-// size += 1 + pb::CodedOutputStream.ComputeInt32Size(HunterNetCoreCmdID);
-// }
-// if (HunterNetCoreERRORCode != 0) {
-// size += 1 + pb::CodedOutputStream.ComputeInt32Size(HunterNetCoreERRORCode);
-// }
-// if (HunterNetCoreData.Length != 0) {
-// size += 1 + pb::CodedOutputStream.ComputeBytesSize(HunterNetCoreData);
-// }
-// if (_unknownFields != null) {
-// size += _unknownFields.CalculateSize();
-// }
-// return size;
-// }
-
-// [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-// public void MergeFrom(HunterNet_S2C other) {
-// if (other == null) {
-// return;
-// }
-// if (other.HunterNetCoreCmdID != 0) {
-// HunterNetCoreCmdID = other.HunterNetCoreCmdID;
-// }
-// if (other.HunterNetCoreERRORCode != 0) {
-// HunterNetCoreERRORCode = other.HunterNetCoreERRORCode;
-// }
-// if (other.HunterNetCoreData.Length != 0) {
-// HunterNetCoreData = other.HunterNetCoreData;
-// }
-// _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
-// }
-
-// [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-// public void MergeFrom(pb::CodedInputStream input) {
-// #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
-// input.ReadRawMessage(this);
-// #else
-// uint tag;
-// while ((tag = input.ReadTag()) != 0) {
-// switch(tag) {
-// default:
-// _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
-// break;
-// case 8: {
-// HunterNetCoreCmdID = input.ReadInt32();
-// break;
-// }
-// case 16: {
-// HunterNetCoreERRORCode = input.ReadInt32();
-// break;
-// }
-// case 26: {
-// HunterNetCoreData = input.ReadBytes();
-// break;
-// }
-// }
-// }
-// #endif
-// }
-
-// #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
-// [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
-// void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
-// uint tag;
-// while ((tag = input.ReadTag()) != 0) {
-// switch(tag) {
-// default:
-// _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
-// break;
-// case 8: {
-// HunterNetCoreCmdID = input.ReadInt32();
-// break;
-// }
-// case 16: {
-// HunterNetCoreERRORCode = input.ReadInt32();
-// break;
-// }
-// case 26: {
-// HunterNetCoreData = input.ReadBytes();
-// break;
-// }
-// }
-// }
-// }
-// #endif
-
-// }
-
-// #endregion
-
-//}
-
-//#endregion Designer generated code