mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-02 12:16:03 +08:00
459 lines
15 KiB
C#
459 lines
15 KiB
C#
// <auto-generated>
|
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: MonsterProperty.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 MonsterProperty.proto</summary>
|
|
public static partial class MonsterPropertyReflection {
|
|
|
|
#region Descriptor
|
|
/// <summary>File descriptor for MonsterProperty.proto</summary>
|
|
public static pbr::FileDescriptor Descriptor {
|
|
get { return descriptor; }
|
|
}
|
|
private static pbr::FileDescriptor descriptor;
|
|
|
|
static MonsterPropertyReflection() {
|
|
byte[] descriptorData = global::System.Convert.FromBase64String(
|
|
string.Concat(
|
|
"ChVNb25zdGVyUHJvcGVydHkucHJvdG8iiwEKD01vbnN0ZXJQcm9wZXJ0eRIO",
|
|
"CgZtYXhfaHAYASABKAESDgoGYXR0YWNrGAIgASgBEg8KB2RlZmVuY2UYAyAB",
|
|
"KAESDgoGc2hpZWxkGAQgASgBEg0KBXNwZWVkGAUgASgBEg8KB2xlZnRfaHAY",
|
|
"BiABKAESFwoPZW50ZXJfYmF0dGxlX2hwGAcgASgBQh6qAhtFZ2dMaW5rLkRh",
|
|
"bmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw=="));
|
|
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
|
new pbr::FileDescriptor[] { },
|
|
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.MonsterProperty), global::EggLink.DanhengServer.Proto.MonsterProperty.Parser, new[]{ "MaxHp", "Attack", "Defence", "Shield", "Speed", "LeftHp", "EnterBattleHp" }, null, null, null, null)
|
|
}));
|
|
}
|
|
#endregion
|
|
|
|
}
|
|
#region Messages
|
|
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
|
public sealed partial class MonsterProperty : pb::IMessage<MonsterProperty>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<MonsterProperty> _parser = new pb::MessageParser<MonsterProperty>(() => new MonsterProperty());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<MonsterProperty> 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.MonsterPropertyReflection.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 MonsterProperty() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public MonsterProperty(MonsterProperty other) : this() {
|
|
maxHp_ = other.maxHp_;
|
|
attack_ = other.attack_;
|
|
defence_ = other.defence_;
|
|
shield_ = other.shield_;
|
|
speed_ = other.speed_;
|
|
leftHp_ = other.leftHp_;
|
|
enterBattleHp_ = other.enterBattleHp_;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public MonsterProperty Clone() {
|
|
return new MonsterProperty(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 "shield" field.</summary>
|
|
public const int ShieldFieldNumber = 4;
|
|
private double shield_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public double Shield {
|
|
get { return shield_; }
|
|
set {
|
|
shield_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "speed" field.</summary>
|
|
public const int SpeedFieldNumber = 5;
|
|
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 = 6;
|
|
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 "enter_battle_hp" field.</summary>
|
|
public const int EnterBattleHpFieldNumber = 7;
|
|
private double enterBattleHp_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public double EnterBattleHp {
|
|
get { return enterBattleHp_; }
|
|
set {
|
|
enterBattleHp_ = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as MonsterProperty);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Equals(MonsterProperty 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(Shield, other.Shield)) 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(EnterBattleHp, other.EnterBattleHp)) 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 (Shield != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Shield);
|
|
if (Speed != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Speed);
|
|
if (LeftHp != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(LeftHp);
|
|
if (EnterBattleHp != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(EnterBattleHp);
|
|
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 (Shield != 0D) {
|
|
output.WriteRawTag(33);
|
|
output.WriteDouble(Shield);
|
|
}
|
|
if (Speed != 0D) {
|
|
output.WriteRawTag(41);
|
|
output.WriteDouble(Speed);
|
|
}
|
|
if (LeftHp != 0D) {
|
|
output.WriteRawTag(49);
|
|
output.WriteDouble(LeftHp);
|
|
}
|
|
if (EnterBattleHp != 0D) {
|
|
output.WriteRawTag(57);
|
|
output.WriteDouble(EnterBattleHp);
|
|
}
|
|
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 (Shield != 0D) {
|
|
output.WriteRawTag(33);
|
|
output.WriteDouble(Shield);
|
|
}
|
|
if (Speed != 0D) {
|
|
output.WriteRawTag(41);
|
|
output.WriteDouble(Speed);
|
|
}
|
|
if (LeftHp != 0D) {
|
|
output.WriteRawTag(49);
|
|
output.WriteDouble(LeftHp);
|
|
}
|
|
if (EnterBattleHp != 0D) {
|
|
output.WriteRawTag(57);
|
|
output.WriteDouble(EnterBattleHp);
|
|
}
|
|
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 (Shield != 0D) {
|
|
size += 1 + 8;
|
|
}
|
|
if (Speed != 0D) {
|
|
size += 1 + 8;
|
|
}
|
|
if (LeftHp != 0D) {
|
|
size += 1 + 8;
|
|
}
|
|
if (EnterBattleHp != 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(MonsterProperty 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.Shield != 0D) {
|
|
Shield = other.Shield;
|
|
}
|
|
if (other.Speed != 0D) {
|
|
Speed = other.Speed;
|
|
}
|
|
if (other.LeftHp != 0D) {
|
|
LeftHp = other.LeftHp;
|
|
}
|
|
if (other.EnterBattleHp != 0D) {
|
|
EnterBattleHp = other.EnterBattleHp;
|
|
}
|
|
_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: {
|
|
Shield = input.ReadDouble();
|
|
break;
|
|
}
|
|
case 41: {
|
|
Speed = input.ReadDouble();
|
|
break;
|
|
}
|
|
case 49: {
|
|
LeftHp = input.ReadDouble();
|
|
break;
|
|
}
|
|
case 57: {
|
|
EnterBattleHp = 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: {
|
|
Shield = input.ReadDouble();
|
|
break;
|
|
}
|
|
case 41: {
|
|
Speed = input.ReadDouble();
|
|
break;
|
|
}
|
|
case 49: {
|
|
LeftHp = input.ReadDouble();
|
|
break;
|
|
}
|
|
case 57: {
|
|
EnterBattleHp = input.ReadDouble();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
}
|
|
|
|
#endregion Designer generated code
|