Files
DanhengServer-OpenSource/Proto/AvatarProperty.cs

459 lines
15 KiB
C#

// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: AvatarProperty.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 AvatarProperty.proto</summary>
public static partial class AvatarPropertyReflection {
#region Descriptor
/// <summary>File descriptor for AvatarProperty.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static AvatarPropertyReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"ChRBdmF0YXJQcm9wZXJ0eS5wcm90byKCAQoOQXZhdGFyUHJvcGVydHkSDgoG",
"bWF4X2hwGAEgASgBEg4KBmF0dGFjaxgCIAEoARIPCgdkZWZlbmNlGAMgASgB",
"Eg0KBXNwZWVkGAQgASgBEg8KB2xlZnRfaHAYBSABKAESDwoHbGVmdF9zcBgG",
"IAEoARIOCgZtYXhfc3AYByABKAFCHqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZl",
"ci5Qcm90b2IGcHJvdG8z"));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.AvatarProperty), global::EggLink.DanhengServer.Proto.AvatarProperty.Parser, new[]{ "MaxHp", "Attack", "Defence", "Speed", "LeftHp", "LeftSp", "MaxSp" }, null, null, null, null)
}));
}
#endregion
}
#region Messages
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
public sealed partial class AvatarProperty : pb::IMessage<AvatarProperty>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<AvatarProperty> _parser = new pb::MessageParser<AvatarProperty>(() => new AvatarProperty());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<AvatarProperty> 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.AvatarPropertyReflection.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 AvatarProperty() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public AvatarProperty(AvatarProperty other) : this() {
maxHp_ = other.maxHp_;
attack_ = other.attack_;
defence_ = other.defence_;
speed_ = other.speed_;
leftHp_ = other.leftHp_;
leftSp_ = other.leftSp_;
maxSp_ = other.maxSp_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public AvatarProperty Clone() {
return new AvatarProperty(this);
}
/// <summary>Field number for the "max_hp" field.</summary>
public const int MaxHpFieldNumber = 1;
private double maxHp_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public double MaxHp {
get { return maxHp_; }
set {
maxHp_ = value;
}
}
/// <summary>Field number for the "attack" field.</summary>
public const int AttackFieldNumber = 2;
private double attack_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public double Attack {
get { return attack_; }
set {
attack_ = value;
}
}
/// <summary>Field number for the "defence" field.</summary>
public const int DefenceFieldNumber = 3;
private double defence_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public double Defence {
get { return defence_; }
set {
defence_ = value;
}
}
/// <summary>Field number for the "speed" field.</summary>
public const int SpeedFieldNumber = 4;
private double speed_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public double Speed {
get { return speed_; }
set {
speed_ = value;
}
}
/// <summary>Field number for the "left_hp" field.</summary>
public const int LeftHpFieldNumber = 5;
private double leftHp_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public double LeftHp {
get { return leftHp_; }
set {
leftHp_ = value;
}
}
/// <summary>Field number for the "left_sp" field.</summary>
public const int LeftSpFieldNumber = 6;
private double leftSp_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public double LeftSp {
get { return leftSp_; }
set {
leftSp_ = value;
}
}
/// <summary>Field number for the "max_sp" field.</summary>
public const int MaxSpFieldNumber = 7;
private double maxSp_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public double MaxSp {
get { return maxSp_; }
set {
maxSp_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as AvatarProperty);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(AvatarProperty other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(MaxHp, other.MaxHp)) return false;
if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Attack, other.Attack)) return false;
if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Defence, other.Defence)) return false;
if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Speed, other.Speed)) return false;
if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(LeftHp, other.LeftHp)) return false;
if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(LeftSp, other.LeftSp)) return false;
if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(MaxSp, other.MaxSp)) 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 (MaxHp != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(MaxHp);
if (Attack != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Attack);
if (Defence != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Defence);
if (Speed != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Speed);
if (LeftHp != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(LeftHp);
if (LeftSp != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(LeftSp);
if (MaxSp != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(MaxSp);
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 (MaxHp != 0D) {
output.WriteRawTag(9);
output.WriteDouble(MaxHp);
}
if (Attack != 0D) {
output.WriteRawTag(17);
output.WriteDouble(Attack);
}
if (Defence != 0D) {
output.WriteRawTag(25);
output.WriteDouble(Defence);
}
if (Speed != 0D) {
output.WriteRawTag(33);
output.WriteDouble(Speed);
}
if (LeftHp != 0D) {
output.WriteRawTag(41);
output.WriteDouble(LeftHp);
}
if (LeftSp != 0D) {
output.WriteRawTag(49);
output.WriteDouble(LeftSp);
}
if (MaxSp != 0D) {
output.WriteRawTag(57);
output.WriteDouble(MaxSp);
}
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 (MaxHp != 0D) {
output.WriteRawTag(9);
output.WriteDouble(MaxHp);
}
if (Attack != 0D) {
output.WriteRawTag(17);
output.WriteDouble(Attack);
}
if (Defence != 0D) {
output.WriteRawTag(25);
output.WriteDouble(Defence);
}
if (Speed != 0D) {
output.WriteRawTag(33);
output.WriteDouble(Speed);
}
if (LeftHp != 0D) {
output.WriteRawTag(41);
output.WriteDouble(LeftHp);
}
if (LeftSp != 0D) {
output.WriteRawTag(49);
output.WriteDouble(LeftSp);
}
if (MaxSp != 0D) {
output.WriteRawTag(57);
output.WriteDouble(MaxSp);
}
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 (MaxHp != 0D) {
size += 1 + 8;
}
if (Attack != 0D) {
size += 1 + 8;
}
if (Defence != 0D) {
size += 1 + 8;
}
if (Speed != 0D) {
size += 1 + 8;
}
if (LeftHp != 0D) {
size += 1 + 8;
}
if (LeftSp != 0D) {
size += 1 + 8;
}
if (MaxSp != 0D) {
size += 1 + 8;
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(AvatarProperty other) {
if (other == null) {
return;
}
if (other.MaxHp != 0D) {
MaxHp = other.MaxHp;
}
if (other.Attack != 0D) {
Attack = other.Attack;
}
if (other.Defence != 0D) {
Defence = other.Defence;
}
if (other.Speed != 0D) {
Speed = other.Speed;
}
if (other.LeftHp != 0D) {
LeftHp = other.LeftHp;
}
if (other.LeftSp != 0D) {
LeftSp = other.LeftSp;
}
if (other.MaxSp != 0D) {
MaxSp = other.MaxSp;
}
_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 9: {
MaxHp = input.ReadDouble();
break;
}
case 17: {
Attack = input.ReadDouble();
break;
}
case 25: {
Defence = input.ReadDouble();
break;
}
case 33: {
Speed = input.ReadDouble();
break;
}
case 41: {
LeftHp = input.ReadDouble();
break;
}
case 49: {
LeftSp = input.ReadDouble();
break;
}
case 57: {
MaxSp = input.ReadDouble();
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 9: {
MaxHp = input.ReadDouble();
break;
}
case 17: {
Attack = input.ReadDouble();
break;
}
case 25: {
Defence = input.ReadDouble();
break;
}
case 33: {
Speed = input.ReadDouble();
break;
}
case 41: {
LeftHp = input.ReadDouble();
break;
}
case 49: {
LeftSp = input.ReadDouble();
break;
}
case 57: {
MaxSp = input.ReadDouble();
break;
}
}
}
}
#endif
}
#endregion
}
#endregion Designer generated code