mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-02 20:26:03 +08:00
274 lines
11 KiB
C#
274 lines
11 KiB
C#
// <auto-generated>
|
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: HitMonsterBattleInfo.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 HitMonsterBattleInfo.proto</summary>
|
|
public static partial class HitMonsterBattleInfoReflection {
|
|
|
|
#region Descriptor
|
|
/// <summary>File descriptor for HitMonsterBattleInfo.proto</summary>
|
|
public static pbr::FileDescriptor Descriptor {
|
|
get { return descriptor; }
|
|
}
|
|
private static pbr::FileDescriptor descriptor;
|
|
|
|
static HitMonsterBattleInfoReflection() {
|
|
byte[] descriptorData = global::System.Convert.FromBase64String(
|
|
string.Concat(
|
|
"ChpIaXRNb25zdGVyQmF0dGxlSW5mby5wcm90bxoXTW9uc3RlckJhdHRsZVR5",
|
|
"cGUucHJvdG8iaQoUSGl0TW9uc3RlckJhdHRsZUluZm8SIAoYdGFyZ2V0X21v",
|
|
"bnN0ZXJfZW50aXR5X2lkGAQgASgNEi8KE21vbnN0ZXJfYmF0dGxlX3R5cGUY",
|
|
"CiABKA4yEi5Nb25zdGVyQmF0dGxlVHlwZUIeqgIbRWdnTGluay5EYW5oZW5n",
|
|
"U2VydmVyLlByb3RvYgZwcm90bzM="));
|
|
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
|
new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.MonsterBattleTypeReflection.Descriptor, },
|
|
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.HitMonsterBattleInfo), global::EggLink.DanhengServer.Proto.HitMonsterBattleInfo.Parser, new[]{ "TargetMonsterEntityId", "MonsterBattleType" }, null, null, null, null)
|
|
}));
|
|
}
|
|
#endregion
|
|
|
|
}
|
|
#region Messages
|
|
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
|
public sealed partial class HitMonsterBattleInfo : pb::IMessage<HitMonsterBattleInfo>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<HitMonsterBattleInfo> _parser = new pb::MessageParser<HitMonsterBattleInfo>(() => new HitMonsterBattleInfo());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<HitMonsterBattleInfo> 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.HitMonsterBattleInfoReflection.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 HitMonsterBattleInfo() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public HitMonsterBattleInfo(HitMonsterBattleInfo other) : this() {
|
|
targetMonsterEntityId_ = other.targetMonsterEntityId_;
|
|
monsterBattleType_ = other.monsterBattleType_;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public HitMonsterBattleInfo Clone() {
|
|
return new HitMonsterBattleInfo(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "target_monster_entity_id" field.</summary>
|
|
public const int TargetMonsterEntityIdFieldNumber = 4;
|
|
private uint targetMonsterEntityId_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public uint TargetMonsterEntityId {
|
|
get { return targetMonsterEntityId_; }
|
|
set {
|
|
targetMonsterEntityId_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "monster_battle_type" field.</summary>
|
|
public const int MonsterBattleTypeFieldNumber = 10;
|
|
private global::EggLink.DanhengServer.Proto.MonsterBattleType monsterBattleType_ = global::EggLink.DanhengServer.Proto.MonsterBattleType.None;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public global::EggLink.DanhengServer.Proto.MonsterBattleType MonsterBattleType {
|
|
get { return monsterBattleType_; }
|
|
set {
|
|
monsterBattleType_ = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as HitMonsterBattleInfo);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Equals(HitMonsterBattleInfo other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (TargetMonsterEntityId != other.TargetMonsterEntityId) return false;
|
|
if (MonsterBattleType != other.MonsterBattleType) 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 (TargetMonsterEntityId != 0) hash ^= TargetMonsterEntityId.GetHashCode();
|
|
if (MonsterBattleType != global::EggLink.DanhengServer.Proto.MonsterBattleType.None) hash ^= MonsterBattleType.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 (TargetMonsterEntityId != 0) {
|
|
output.WriteRawTag(32);
|
|
output.WriteUInt32(TargetMonsterEntityId);
|
|
}
|
|
if (MonsterBattleType != global::EggLink.DanhengServer.Proto.MonsterBattleType.None) {
|
|
output.WriteRawTag(80);
|
|
output.WriteEnum((int) MonsterBattleType);
|
|
}
|
|
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 (TargetMonsterEntityId != 0) {
|
|
output.WriteRawTag(32);
|
|
output.WriteUInt32(TargetMonsterEntityId);
|
|
}
|
|
if (MonsterBattleType != global::EggLink.DanhengServer.Proto.MonsterBattleType.None) {
|
|
output.WriteRawTag(80);
|
|
output.WriteEnum((int) MonsterBattleType);
|
|
}
|
|
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 (TargetMonsterEntityId != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(TargetMonsterEntityId);
|
|
}
|
|
if (MonsterBattleType != global::EggLink.DanhengServer.Proto.MonsterBattleType.None) {
|
|
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) MonsterBattleType);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(HitMonsterBattleInfo other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.TargetMonsterEntityId != 0) {
|
|
TargetMonsterEntityId = other.TargetMonsterEntityId;
|
|
}
|
|
if (other.MonsterBattleType != global::EggLink.DanhengServer.Proto.MonsterBattleType.None) {
|
|
MonsterBattleType = other.MonsterBattleType;
|
|
}
|
|
_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 32: {
|
|
TargetMonsterEntityId = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 80: {
|
|
MonsterBattleType = (global::EggLink.DanhengServer.Proto.MonsterBattleType) 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 32: {
|
|
TargetMonsterEntityId = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 80: {
|
|
MonsterBattleType = (global::EggLink.DanhengServer.Proto.MonsterBattleType) input.ReadEnum();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
}
|
|
|
|
#endregion Designer generated code
|