mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-03 04:36:03 +08:00
386 lines
14 KiB
C#
386 lines
14 KiB
C#
// <auto-generated>
|
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: GridFightHpModifyInfo.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 EggLink.DanhengServer.Proto {
|
|
|
|
/// <summary>Holder for reflection information generated from GridFightHpModifyInfo.proto</summary>
|
|
public static partial class GridFightHpModifyInfoReflection {
|
|
|
|
#region Descriptor
|
|
/// <summary>File descriptor for GridFightHpModifyInfo.proto</summary>
|
|
public static pbr::FileDescriptor Descriptor {
|
|
get { return descriptor; }
|
|
}
|
|
private static pbr::FileDescriptor descriptor;
|
|
|
|
static GridFightHpModifyInfoReflection() {
|
|
byte[] descriptorData = global::System.Convert.FromBase64String(
|
|
string.Concat(
|
|
"ChtHcmlkRmlnaHRIcE1vZGlmeUluZm8ucHJvdG8aFFVwZGF0ZUdsb2JhbEhw",
|
|
"LnByb3RvIocBChVHcmlkRmlnaHRIcE1vZGlmeUluZm8SDwoHcHJldl9ocBgJ",
|
|
"IAEoBRIPCgduZXh0X2hwGAIgASgFEh8KBnJlYXNvbhgNIAEoDjIPLlVwZGF0",
|
|
"ZUdsb2JhbEhwEhEKCWNoYW5nZV9ocBgBIAEoDRIYChBocF9tb2RpZnlfc291",
|
|
"cmNlGAsgASgNQh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnBy",
|
|
"b3RvMw=="));
|
|
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
|
new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.UpdateGlobalHpReflection.Descriptor, },
|
|
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.GridFightHpModifyInfo), global::EggLink.DanhengServer.Proto.GridFightHpModifyInfo.Parser, new[]{ "PrevHp", "NextHp", "Reason", "ChangeHp", "HpModifySource" }, null, null, null, null)
|
|
}));
|
|
}
|
|
#endregion
|
|
|
|
}
|
|
#region Messages
|
|
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
|
public sealed partial class GridFightHpModifyInfo : pb::IMessage<GridFightHpModifyInfo>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<GridFightHpModifyInfo> _parser = new pb::MessageParser<GridFightHpModifyInfo>(() => new GridFightHpModifyInfo());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<GridFightHpModifyInfo> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::EggLink.DanhengServer.Proto.GridFightHpModifyInfoReflection.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 GridFightHpModifyInfo() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public GridFightHpModifyInfo(GridFightHpModifyInfo other) : this() {
|
|
prevHp_ = other.prevHp_;
|
|
nextHp_ = other.nextHp_;
|
|
reason_ = other.reason_;
|
|
changeHp_ = other.changeHp_;
|
|
hpModifySource_ = other.hpModifySource_;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public GridFightHpModifyInfo Clone() {
|
|
return new GridFightHpModifyInfo(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "prev_hp" field.</summary>
|
|
public const int PrevHpFieldNumber = 9;
|
|
private int prevHp_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int PrevHp {
|
|
get { return prevHp_; }
|
|
set {
|
|
prevHp_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "next_hp" field.</summary>
|
|
public const int NextHpFieldNumber = 2;
|
|
private int nextHp_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int NextHp {
|
|
get { return nextHp_; }
|
|
set {
|
|
nextHp_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "reason" field.</summary>
|
|
public const int ReasonFieldNumber = 13;
|
|
private global::EggLink.DanhengServer.Proto.UpdateGlobalHp reason_ = global::EggLink.DanhengServer.Proto.UpdateGlobalHp.KUpdateGlobalHpNone;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public global::EggLink.DanhengServer.Proto.UpdateGlobalHp Reason {
|
|
get { return reason_; }
|
|
set {
|
|
reason_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "change_hp" field.</summary>
|
|
public const int ChangeHpFieldNumber = 1;
|
|
private uint changeHp_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public uint ChangeHp {
|
|
get { return changeHp_; }
|
|
set {
|
|
changeHp_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "hp_modify_source" field.</summary>
|
|
public const int HpModifySourceFieldNumber = 11;
|
|
private uint hpModifySource_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public uint HpModifySource {
|
|
get { return hpModifySource_; }
|
|
set {
|
|
hpModifySource_ = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as GridFightHpModifyInfo);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Equals(GridFightHpModifyInfo other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (PrevHp != other.PrevHp) return false;
|
|
if (NextHp != other.NextHp) return false;
|
|
if (Reason != other.Reason) return false;
|
|
if (ChangeHp != other.ChangeHp) return false;
|
|
if (HpModifySource != other.HpModifySource) 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 (PrevHp != 0) hash ^= PrevHp.GetHashCode();
|
|
if (NextHp != 0) hash ^= NextHp.GetHashCode();
|
|
if (Reason != global::EggLink.DanhengServer.Proto.UpdateGlobalHp.KUpdateGlobalHpNone) hash ^= Reason.GetHashCode();
|
|
if (ChangeHp != 0) hash ^= ChangeHp.GetHashCode();
|
|
if (HpModifySource != 0) hash ^= HpModifySource.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 (ChangeHp != 0) {
|
|
output.WriteRawTag(8);
|
|
output.WriteUInt32(ChangeHp);
|
|
}
|
|
if (NextHp != 0) {
|
|
output.WriteRawTag(16);
|
|
output.WriteInt32(NextHp);
|
|
}
|
|
if (PrevHp != 0) {
|
|
output.WriteRawTag(72);
|
|
output.WriteInt32(PrevHp);
|
|
}
|
|
if (HpModifySource != 0) {
|
|
output.WriteRawTag(88);
|
|
output.WriteUInt32(HpModifySource);
|
|
}
|
|
if (Reason != global::EggLink.DanhengServer.Proto.UpdateGlobalHp.KUpdateGlobalHpNone) {
|
|
output.WriteRawTag(104);
|
|
output.WriteEnum((int) Reason);
|
|
}
|
|
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 (ChangeHp != 0) {
|
|
output.WriteRawTag(8);
|
|
output.WriteUInt32(ChangeHp);
|
|
}
|
|
if (NextHp != 0) {
|
|
output.WriteRawTag(16);
|
|
output.WriteInt32(NextHp);
|
|
}
|
|
if (PrevHp != 0) {
|
|
output.WriteRawTag(72);
|
|
output.WriteInt32(PrevHp);
|
|
}
|
|
if (HpModifySource != 0) {
|
|
output.WriteRawTag(88);
|
|
output.WriteUInt32(HpModifySource);
|
|
}
|
|
if (Reason != global::EggLink.DanhengServer.Proto.UpdateGlobalHp.KUpdateGlobalHpNone) {
|
|
output.WriteRawTag(104);
|
|
output.WriteEnum((int) Reason);
|
|
}
|
|
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 (PrevHp != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(PrevHp);
|
|
}
|
|
if (NextHp != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(NextHp);
|
|
}
|
|
if (Reason != global::EggLink.DanhengServer.Proto.UpdateGlobalHp.KUpdateGlobalHpNone) {
|
|
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Reason);
|
|
}
|
|
if (ChangeHp != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ChangeHp);
|
|
}
|
|
if (HpModifySource != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(HpModifySource);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(GridFightHpModifyInfo other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.PrevHp != 0) {
|
|
PrevHp = other.PrevHp;
|
|
}
|
|
if (other.NextHp != 0) {
|
|
NextHp = other.NextHp;
|
|
}
|
|
if (other.Reason != global::EggLink.DanhengServer.Proto.UpdateGlobalHp.KUpdateGlobalHpNone) {
|
|
Reason = other.Reason;
|
|
}
|
|
if (other.ChangeHp != 0) {
|
|
ChangeHp = other.ChangeHp;
|
|
}
|
|
if (other.HpModifySource != 0) {
|
|
HpModifySource = other.HpModifySource;
|
|
}
|
|
_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: {
|
|
ChangeHp = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 16: {
|
|
NextHp = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 72: {
|
|
PrevHp = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 88: {
|
|
HpModifySource = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 104: {
|
|
Reason = (global::EggLink.DanhengServer.Proto.UpdateGlobalHp) input.ReadEnum();
|
|
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: {
|
|
ChangeHp = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 16: {
|
|
NextHp = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 72: {
|
|
PrevHp = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 88: {
|
|
HpModifySource = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 104: {
|
|
Reason = (global::EggLink.DanhengServer.Proto.UpdateGlobalHp) input.ReadEnum();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
}
|
|
|
|
#endregion Designer generated code
|