mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-07 16:45:10 +00:00
[-] Remove Old ProtoGenerate
[-] Remove Old Proto Generate
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -1,702 +0,0 @@
|
||||
// <auto-generated>
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: proto_cs_common.proto
|
||||
// </auto-generated>
|
||||
#pragma warning disable 1591, 0612, 3021, 8981
|
||||
#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 GameProto {
|
||||
|
||||
/// <summary>Holder for reflection information generated from proto_cs_common.proto</summary>
|
||||
public static partial class ProtoCsCommonReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for proto_cs_common.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static ProtoCsCommonReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"ChVwcm90b19jc19jb21tb24ucHJvdG8SCUdhbWVQcm90byI8CgtQcm90b1Jl",
|
||||
"c3VsdBILCgNSZXQYASABKAUSEAoIUGFyYW1DbnQYAiABKAUSDgoGUGFyYW1z",
|
||||
"GAMgAygJIiUKDUNTSGVhdEJlYXRSZXESFAoMSGVhdEVjaG9UaW1lGAEgASgC",
|
||||
"IiUKDUNTSGVhdEJlYXRSZXMSFAoMSGVhdEVjaG9UaW1lGAEgASgCYgZwcm90",
|
||||
"bzM="));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { },
|
||||
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::GameProto.ProtoResult), global::GameProto.ProtoResult.Parser, new[]{ "Ret", "ParamCnt", "Params" }, null, null, null, null),
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::GameProto.CSHeatBeatReq), global::GameProto.CSHeatBeatReq.Parser, new[]{ "HeatEchoTime" }, null, null, null, null),
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::GameProto.CSHeatBeatRes), global::GameProto.CSHeatBeatRes.Parser, new[]{ "HeatEchoTime" }, null, null, null, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
/// <summary>
|
||||
/// 消息结果
|
||||
/// </summary>
|
||||
public sealed partial class ProtoResult : pb::IMessage<ProtoResult>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<ProtoResult> _parser = new pb::MessageParser<ProtoResult>(() => new ProtoResult());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<ProtoResult> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::GameProto.ProtoCsCommonReflection.Descriptor.MessageTypes[0]; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public ProtoResult() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public ProtoResult(ProtoResult other) : this() {
|
||||
ret_ = other.ret_;
|
||||
paramCnt_ = other.paramCnt_;
|
||||
params_ = other.params_.Clone();
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public ProtoResult Clone() {
|
||||
return new ProtoResult(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "Ret" field.</summary>
|
||||
public const int RetFieldNumber = 1;
|
||||
private int ret_;
|
||||
/// <summary>
|
||||
///操作结果,0 为成功, 其他为错误码
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int Ret {
|
||||
get { return ret_; }
|
||||
set {
|
||||
ret_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "ParamCnt" field.</summary>
|
||||
public const int ParamCntFieldNumber = 2;
|
||||
private int paramCnt_;
|
||||
/// <summary>
|
||||
///文本参数数目
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int ParamCnt {
|
||||
get { return paramCnt_; }
|
||||
set {
|
||||
paramCnt_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "Params" field.</summary>
|
||||
public const int ParamsFieldNumber = 3;
|
||||
private static readonly pb::FieldCodec<string> _repeated_params_codec
|
||||
= pb::FieldCodec.ForString(26);
|
||||
private readonly pbc::RepeatedField<string> params_ = new pbc::RepeatedField<string>();
|
||||
/// <summary>
|
||||
///Ret描述的文本参数
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public pbc::RepeatedField<string> Params {
|
||||
get { return params_; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as ProtoResult);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(ProtoResult other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (Ret != other.Ret) return false;
|
||||
if (ParamCnt != other.ParamCnt) return false;
|
||||
if(!params_.Equals(other.params_)) return false;
|
||||
return Equals(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
if (Ret != 0) hash ^= Ret.GetHashCode();
|
||||
if (ParamCnt != 0) hash ^= ParamCnt.GetHashCode();
|
||||
hash ^= params_.GetHashCode();
|
||||
if (_unknownFields != null) {
|
||||
hash ^= _unknownFields.GetHashCode();
|
||||
}
|
||||
return hash;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override string ToString() {
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void WriteTo(pb::CodedOutputStream output) {
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
output.WriteRawMessage(this);
|
||||
#else
|
||||
if (Ret != 0) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteInt32(Ret);
|
||||
}
|
||||
if (ParamCnt != 0) {
|
||||
output.WriteRawTag(16);
|
||||
output.WriteInt32(ParamCnt);
|
||||
}
|
||||
params_.WriteTo(output, _repeated_params_codec);
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(output);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
|
||||
if (Ret != 0) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteInt32(Ret);
|
||||
}
|
||||
if (ParamCnt != 0) {
|
||||
output.WriteRawTag(16);
|
||||
output.WriteInt32(ParamCnt);
|
||||
}
|
||||
params_.WriteTo(ref output, _repeated_params_codec);
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(ref output);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
if (Ret != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Ret);
|
||||
}
|
||||
if (ParamCnt != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeInt32Size(ParamCnt);
|
||||
}
|
||||
size += params_.CalculateSize(_repeated_params_codec);
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(ProtoResult other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.Ret != 0) {
|
||||
Ret = other.Ret;
|
||||
}
|
||||
if (other.ParamCnt != 0) {
|
||||
ParamCnt = other.ParamCnt;
|
||||
}
|
||||
params_.Add(other.params_);
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
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: {
|
||||
Ret = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
ParamCnt = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 26: {
|
||||
params_.AddEntriesFrom(input, _repeated_params_codec);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
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: {
|
||||
Ret = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
ParamCnt = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 26: {
|
||||
params_.AddEntriesFrom(ref input, _repeated_params_codec);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 心跳请求
|
||||
/// </summary>
|
||||
public sealed partial class CSHeatBeatReq : pb::IMessage<CSHeatBeatReq>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<CSHeatBeatReq> _parser = new pb::MessageParser<CSHeatBeatReq>(() => new CSHeatBeatReq());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<CSHeatBeatReq> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::GameProto.ProtoCsCommonReflection.Descriptor.MessageTypes[1]; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public CSHeatBeatReq() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public CSHeatBeatReq(CSHeatBeatReq other) : this() {
|
||||
heatEchoTime_ = other.heatEchoTime_;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public CSHeatBeatReq Clone() {
|
||||
return new CSHeatBeatReq(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "HeatEchoTime" field.</summary>
|
||||
public const int HeatEchoTimeFieldNumber = 1;
|
||||
private float heatEchoTime_;
|
||||
/// <summary>
|
||||
///客户端的请求时间,服务器原包带回
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public float HeatEchoTime {
|
||||
get { return heatEchoTime_; }
|
||||
set {
|
||||
heatEchoTime_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as CSHeatBeatReq);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(CSHeatBeatReq other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(HeatEchoTime, other.HeatEchoTime)) return false;
|
||||
return Equals(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
if (HeatEchoTime != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(HeatEchoTime);
|
||||
if (_unknownFields != null) {
|
||||
hash ^= _unknownFields.GetHashCode();
|
||||
}
|
||||
return hash;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override string ToString() {
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void WriteTo(pb::CodedOutputStream output) {
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
output.WriteRawMessage(this);
|
||||
#else
|
||||
if (HeatEchoTime != 0F) {
|
||||
output.WriteRawTag(13);
|
||||
output.WriteFloat(HeatEchoTime);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(output);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
|
||||
if (HeatEchoTime != 0F) {
|
||||
output.WriteRawTag(13);
|
||||
output.WriteFloat(HeatEchoTime);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(ref output);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
if (HeatEchoTime != 0F) {
|
||||
size += 1 + 4;
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(CSHeatBeatReq other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.HeatEchoTime != 0F) {
|
||||
HeatEchoTime = other.HeatEchoTime;
|
||||
}
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
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 13: {
|
||||
HeatEchoTime = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
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 13: {
|
||||
HeatEchoTime = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 心跳返回
|
||||
/// </summary>
|
||||
public sealed partial class CSHeatBeatRes : pb::IMessage<CSHeatBeatRes>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<CSHeatBeatRes> _parser = new pb::MessageParser<CSHeatBeatRes>(() => new CSHeatBeatRes());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<CSHeatBeatRes> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::GameProto.ProtoCsCommonReflection.Descriptor.MessageTypes[2]; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public CSHeatBeatRes() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public CSHeatBeatRes(CSHeatBeatRes other) : this() {
|
||||
heatEchoTime_ = other.heatEchoTime_;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public CSHeatBeatRes Clone() {
|
||||
return new CSHeatBeatRes(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "HeatEchoTime" field.</summary>
|
||||
public const int HeatEchoTimeFieldNumber = 1;
|
||||
private float heatEchoTime_;
|
||||
/// <summary>
|
||||
///客户端的请求时间,服务器原包带回
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public float HeatEchoTime {
|
||||
get { return heatEchoTime_; }
|
||||
set {
|
||||
heatEchoTime_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as CSHeatBeatRes);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(CSHeatBeatRes other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(HeatEchoTime, other.HeatEchoTime)) return false;
|
||||
return Equals(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
if (HeatEchoTime != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(HeatEchoTime);
|
||||
if (_unknownFields != null) {
|
||||
hash ^= _unknownFields.GetHashCode();
|
||||
}
|
||||
return hash;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override string ToString() {
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void WriteTo(pb::CodedOutputStream output) {
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
output.WriteRawMessage(this);
|
||||
#else
|
||||
if (HeatEchoTime != 0F) {
|
||||
output.WriteRawTag(13);
|
||||
output.WriteFloat(HeatEchoTime);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(output);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
|
||||
if (HeatEchoTime != 0F) {
|
||||
output.WriteRawTag(13);
|
||||
output.WriteFloat(HeatEchoTime);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(ref output);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
if (HeatEchoTime != 0F) {
|
||||
size += 1 + 4;
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(CSHeatBeatRes other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.HeatEchoTime != 0F) {
|
||||
HeatEchoTime = other.HeatEchoTime;
|
||||
}
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
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 13: {
|
||||
HeatEchoTime = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
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 13: {
|
||||
HeatEchoTime = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
@@ -1,647 +0,0 @@
|
||||
// <auto-generated>
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: proto_cs_player.proto
|
||||
// </auto-generated>
|
||||
#pragma warning disable 1591, 0612, 3021, 8981
|
||||
#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 GameProto {
|
||||
|
||||
/// <summary>Holder for reflection information generated from proto_cs_player.proto</summary>
|
||||
public static partial class ProtoCsPlayerReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for proto_cs_player.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static ProtoCsPlayerReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"ChVwcm90b19jc19wbGF5ZXIucHJvdG8SCUdhbWVQcm90bxoVcHJvdG9fY3Nf",
|
||||
"Y29tbW9uLnByb3RvIlIKDUNTQWN0TG9naW5SZXESCwoDVWluGAEgASgNEg0K",
|
||||
"BVN2cklEGAIgASgNEhAKCEF1dGhUaW1lGAMgASgNEhMKC05ldHdvcmtUeXBl",
|
||||
"GAQgASgNIlQKDUNTQWN0TG9naW5SZXMSJgoGUmVzdWx0GAEgASgLMhYuR2Ft",
|
||||
"ZVByb3RvLlByb3RvUmVzdWx0EgsKA1VpbhgCIAEoDRIOCgZSb2xlSUQYAyAB",
|
||||
"KA1QAGIGcHJvdG8z"));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { global::GameProto.ProtoCsCommonReflection.Descriptor, },
|
||||
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::GameProto.CSActLoginReq), global::GameProto.CSActLoginReq.Parser, new[]{ "Uin", "SvrID", "AuthTime", "NetworkType" }, null, null, null, null),
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::GameProto.CSActLoginRes), global::GameProto.CSActLoginRes.Parser, new[]{ "Result", "Uin", "RoleID" }, null, null, null, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
/// <summary>
|
||||
/// 角色登录结果请求
|
||||
/// </summary>
|
||||
public sealed partial class CSActLoginReq : pb::IMessage<CSActLoginReq>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<CSActLoginReq> _parser = new pb::MessageParser<CSActLoginReq>(() => new CSActLoginReq());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<CSActLoginReq> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::GameProto.ProtoCsPlayerReflection.Descriptor.MessageTypes[0]; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public CSActLoginReq() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public CSActLoginReq(CSActLoginReq other) : this() {
|
||||
uin_ = other.uin_;
|
||||
svrID_ = other.svrID_;
|
||||
authTime_ = other.authTime_;
|
||||
networkType_ = other.networkType_;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public CSActLoginReq Clone() {
|
||||
return new CSActLoginReq(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "Uin" field.</summary>
|
||||
public const int UinFieldNumber = 1;
|
||||
private uint uin_;
|
||||
/// <summary>
|
||||
///帐号Uin
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public uint Uin {
|
||||
get { return uin_; }
|
||||
set {
|
||||
uin_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "SvrID" field.</summary>
|
||||
public const int SvrIDFieldNumber = 2;
|
||||
private uint svrID_;
|
||||
/// <summary>
|
||||
///服务器ID
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public uint SvrID {
|
||||
get { return svrID_; }
|
||||
set {
|
||||
svrID_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "AuthTime" field.</summary>
|
||||
public const int AuthTimeFieldNumber = 3;
|
||||
private uint authTime_;
|
||||
/// <summary>
|
||||
///账户认证的时间
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public uint AuthTime {
|
||||
get { return authTime_; }
|
||||
set {
|
||||
authTime_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "NetworkType" field.</summary>
|
||||
public const int NetworkTypeFieldNumber = 4;
|
||||
private uint networkType_;
|
||||
/// <summary>
|
||||
///网络类型
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public uint NetworkType {
|
||||
get { return networkType_; }
|
||||
set {
|
||||
networkType_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as CSActLoginReq);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(CSActLoginReq other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (Uin != other.Uin) return false;
|
||||
if (SvrID != other.SvrID) return false;
|
||||
if (AuthTime != other.AuthTime) return false;
|
||||
if (NetworkType != other.NetworkType) return false;
|
||||
return Equals(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
if (Uin != 0) hash ^= Uin.GetHashCode();
|
||||
if (SvrID != 0) hash ^= SvrID.GetHashCode();
|
||||
if (AuthTime != 0) hash ^= AuthTime.GetHashCode();
|
||||
if (NetworkType != 0) hash ^= NetworkType.GetHashCode();
|
||||
if (_unknownFields != null) {
|
||||
hash ^= _unknownFields.GetHashCode();
|
||||
}
|
||||
return hash;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override string ToString() {
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void WriteTo(pb::CodedOutputStream output) {
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
output.WriteRawMessage(this);
|
||||
#else
|
||||
if (Uin != 0) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteUInt32(Uin);
|
||||
}
|
||||
if (SvrID != 0) {
|
||||
output.WriteRawTag(16);
|
||||
output.WriteUInt32(SvrID);
|
||||
}
|
||||
if (AuthTime != 0) {
|
||||
output.WriteRawTag(24);
|
||||
output.WriteUInt32(AuthTime);
|
||||
}
|
||||
if (NetworkType != 0) {
|
||||
output.WriteRawTag(32);
|
||||
output.WriteUInt32(NetworkType);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(output);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
|
||||
if (Uin != 0) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteUInt32(Uin);
|
||||
}
|
||||
if (SvrID != 0) {
|
||||
output.WriteRawTag(16);
|
||||
output.WriteUInt32(SvrID);
|
||||
}
|
||||
if (AuthTime != 0) {
|
||||
output.WriteRawTag(24);
|
||||
output.WriteUInt32(AuthTime);
|
||||
}
|
||||
if (NetworkType != 0) {
|
||||
output.WriteRawTag(32);
|
||||
output.WriteUInt32(NetworkType);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(ref output);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
if (Uin != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Uin);
|
||||
}
|
||||
if (SvrID != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(SvrID);
|
||||
}
|
||||
if (AuthTime != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(AuthTime);
|
||||
}
|
||||
if (NetworkType != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(NetworkType);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(CSActLoginReq other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.Uin != 0) {
|
||||
Uin = other.Uin;
|
||||
}
|
||||
if (other.SvrID != 0) {
|
||||
SvrID = other.SvrID;
|
||||
}
|
||||
if (other.AuthTime != 0) {
|
||||
AuthTime = other.AuthTime;
|
||||
}
|
||||
if (other.NetworkType != 0) {
|
||||
NetworkType = other.NetworkType;
|
||||
}
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
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: {
|
||||
Uin = input.ReadUInt32();
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
SvrID = input.ReadUInt32();
|
||||
break;
|
||||
}
|
||||
case 24: {
|
||||
AuthTime = input.ReadUInt32();
|
||||
break;
|
||||
}
|
||||
case 32: {
|
||||
NetworkType = input.ReadUInt32();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
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: {
|
||||
Uin = input.ReadUInt32();
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
SvrID = input.ReadUInt32();
|
||||
break;
|
||||
}
|
||||
case 24: {
|
||||
AuthTime = input.ReadUInt32();
|
||||
break;
|
||||
}
|
||||
case 32: {
|
||||
NetworkType = input.ReadUInt32();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 角色登录结果返回
|
||||
/// </summary>
|
||||
public sealed partial class CSActLoginRes : pb::IMessage<CSActLoginRes>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<CSActLoginRes> _parser = new pb::MessageParser<CSActLoginRes>(() => new CSActLoginRes());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<CSActLoginRes> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::GameProto.ProtoCsPlayerReflection.Descriptor.MessageTypes[1]; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public CSActLoginRes() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public CSActLoginRes(CSActLoginRes other) : this() {
|
||||
result_ = other.result_ != null ? other.result_.Clone() : null;
|
||||
uin_ = other.uin_;
|
||||
roleID_ = other.roleID_;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public CSActLoginRes Clone() {
|
||||
return new CSActLoginRes(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "Result" field.</summary>
|
||||
public const int ResultFieldNumber = 1;
|
||||
private global::GameProto.ProtoResult result_;
|
||||
/// <summary>
|
||||
///返回操作结果
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public global::GameProto.ProtoResult Result {
|
||||
get { return result_; }
|
||||
set {
|
||||
result_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "Uin" field.</summary>
|
||||
public const int UinFieldNumber = 2;
|
||||
private uint uin_;
|
||||
/// <summary>
|
||||
///帐号Uin
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public uint Uin {
|
||||
get { return uin_; }
|
||||
set {
|
||||
uin_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "RoleID" field.</summary>
|
||||
public const int RoleIDFieldNumber = 3;
|
||||
private uint roleID_;
|
||||
/// <summary>
|
||||
///角色ID
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public uint RoleID {
|
||||
get { return roleID_; }
|
||||
set {
|
||||
roleID_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as CSActLoginRes);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(CSActLoginRes other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (!object.Equals(Result, other.Result)) return false;
|
||||
if (Uin != other.Uin) return false;
|
||||
if (RoleID != other.RoleID) return false;
|
||||
return Equals(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
if (result_ != null) hash ^= Result.GetHashCode();
|
||||
if (Uin != 0) hash ^= Uin.GetHashCode();
|
||||
if (RoleID != 0) hash ^= RoleID.GetHashCode();
|
||||
if (_unknownFields != null) {
|
||||
hash ^= _unknownFields.GetHashCode();
|
||||
}
|
||||
return hash;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override string ToString() {
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void WriteTo(pb::CodedOutputStream output) {
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
output.WriteRawMessage(this);
|
||||
#else
|
||||
if (result_ != null) {
|
||||
output.WriteRawTag(10);
|
||||
output.WriteMessage(Result);
|
||||
}
|
||||
if (Uin != 0) {
|
||||
output.WriteRawTag(16);
|
||||
output.WriteUInt32(Uin);
|
||||
}
|
||||
if (RoleID != 0) {
|
||||
output.WriteRawTag(24);
|
||||
output.WriteUInt32(RoleID);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(output);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
|
||||
if (result_ != null) {
|
||||
output.WriteRawTag(10);
|
||||
output.WriteMessage(Result);
|
||||
}
|
||||
if (Uin != 0) {
|
||||
output.WriteRawTag(16);
|
||||
output.WriteUInt32(Uin);
|
||||
}
|
||||
if (RoleID != 0) {
|
||||
output.WriteRawTag(24);
|
||||
output.WriteUInt32(RoleID);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(ref output);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
if (result_ != null) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Result);
|
||||
}
|
||||
if (Uin != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Uin);
|
||||
}
|
||||
if (RoleID != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RoleID);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(CSActLoginRes other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.result_ != null) {
|
||||
if (result_ == null) {
|
||||
Result = new global::GameProto.ProtoResult();
|
||||
}
|
||||
Result.MergeFrom(other.Result);
|
||||
}
|
||||
if (other.Uin != 0) {
|
||||
Uin = other.Uin;
|
||||
}
|
||||
if (other.RoleID != 0) {
|
||||
RoleID = other.RoleID;
|
||||
}
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
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 10: {
|
||||
if (result_ == null) {
|
||||
Result = new global::GameProto.ProtoResult();
|
||||
}
|
||||
input.ReadMessage(Result);
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
Uin = input.ReadUInt32();
|
||||
break;
|
||||
}
|
||||
case 24: {
|
||||
RoleID = input.ReadUInt32();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
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 10: {
|
||||
if (result_ == null) {
|
||||
Result = new global::GameProto.ProtoResult();
|
||||
}
|
||||
input.ReadMessage(Result);
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
Uin = input.ReadUInt32();
|
||||
break;
|
||||
}
|
||||
case 24: {
|
||||
RoleID = input.ReadUInt32();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
@@ -1,21 +0,0 @@
|
||||
@echo off & setlocal enabledelayedexpansion
|
||||
cd %~dp0
|
||||
echo =================start gen proto code=================
|
||||
set pb_path=pb_schemas
|
||||
set out_path=..\..\Assets\GameScripts\HotFix\GameProto\GameProtocol
|
||||
del /f /s /q %out_path%\*.*
|
||||
for /f "delims=" %%i in ('dir /b %pb_path%') do (
|
||||
echo ------------%%i start gen
|
||||
protoc -I=pb_schemas --csharp_out=../../Assets/GameScripts/HotFix/GameProto/GameProtocol pb_schemas\%%i
|
||||
echo ------------%%i gen success
|
||||
)
|
||||
echo =================end gen proto code=================
|
||||
@REM set cur_path=%~dp0
|
||||
@REM set outEventPath=../../Assets\GameScripts\HotFix\GameProto\GameProtocol
|
||||
@REM call ProtobufResolver.exe %cur_path%pb_schemas %outEventPath%
|
||||
@REM echo =================end gen proto event=================
|
||||
@REM pause
|
||||
|
||||
@REM protoc -I=pb_schemas --csharp_out=Gen pb_schemas\proto_cs.proto proto_cs_common.proto pb_schemas\proto_cs_player.proto
|
||||
|
||||
pause
|
@@ -1,43 +0,0 @@
|
||||
syntax = "proto3";
|
||||
|
||||
import public "proto_cs_common.proto";
|
||||
import public "proto_cs_player.proto";
|
||||
|
||||
package GameProto;
|
||||
// 这个文件只放协议,和协议头
|
||||
|
||||
// 消息协议
|
||||
message CSPkg
|
||||
{
|
||||
CSPkgHead Head = 1; //消息协议头
|
||||
CSPkgBody Body = 2; //消息协议体
|
||||
}
|
||||
|
||||
// 消息协议头
|
||||
message CSPkgHead
|
||||
{
|
||||
uint32 MsgId = 1; //协议号
|
||||
uint32 MsgLength = 2; //协议长度
|
||||
uint32 MsgVersion = 3; //协议版本
|
||||
uint32 Echo = 4; //回带字段
|
||||
uint32 SvrTime = 5; //服务器时间
|
||||
}
|
||||
|
||||
// 消息协议体
|
||||
message CSPkgBody
|
||||
{
|
||||
CSHeatBeatReq HeatBeatReq = 1; //心跳请求
|
||||
CSHeatBeatRes HeatBeatRes = 2; //心跳回包
|
||||
CSActLoginReq ActLoginReq = 3; //帐号登录请求
|
||||
CSActLoginRes ActLoginRes = 4; //帐号登录回包
|
||||
}
|
||||
|
||||
// 协议ID
|
||||
enum CSMsgID
|
||||
{
|
||||
CS_START = 0;
|
||||
CS_CMD_HEATBEAT_REQ = 1001; //心跳请求
|
||||
CS_CMD_HEATBEAT_RES = 1002; //心跳回包
|
||||
CS_CMD_ACT_LOGIN_REQ = 2001; //帐号登录请求
|
||||
CS_CMD_ACT_LOGIN_RES = 2002; //帐号登录回包
|
||||
}
|
@@ -1,24 +0,0 @@
|
||||
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; //客户端的请求时间,服务器原包带回
|
||||
}
|
@@ -1,22 +0,0 @@
|
||||
syntax = "proto3";
|
||||
import public "proto_cs_common.proto";
|
||||
|
||||
package GameProto;
|
||||
// 玩家协议
|
||||
|
||||
// 角色登录结果请求
|
||||
message CSActLoginReq
|
||||
{
|
||||
uint32 Uin = 1; //帐号Uin
|
||||
uint32 SvrID = 2; //服务器ID
|
||||
uint32 AuthTime = 3; //账户认证的时间
|
||||
uint32 NetworkType = 4; //网络类型
|
||||
}
|
||||
|
||||
// 角色登录结果返回
|
||||
message CSActLoginRes
|
||||
{
|
||||
ProtoResult Result = 1; //返回操作结果
|
||||
uint32 Uin = 2; //帐号Uin
|
||||
uint32 RoleID = 3; //角色ID
|
||||
}
|
Binary file not shown.
Reference in New Issue
Block a user