Files
DanhengServer-OpenSource/Proto/SceneMonsterWave.cs
2024-12-06 22:14:26 +08:00

374 lines
14 KiB
C#

// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: SceneMonsterWave.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 SceneMonsterWave.proto</summary>
public static partial class SceneMonsterWaveReflection {
#region Descriptor
/// <summary>File descriptor for SceneMonsterWave.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static SceneMonsterWaveReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"ChZTY2VuZU1vbnN0ZXJXYXZlLnByb3RvGhtTY2VuZU1vbnN0ZXJXYXZlUGFy",
"YW0ucHJvdG8aDkl0ZW1MaXN0LnByb3RvGhJTY2VuZU1vbnN0ZXIucHJvdG8i",
"tQEKEFNjZW5lTW9uc3RlcldhdmUSIwoMbW9uc3Rlcl9saXN0GAYgAygLMg0u",
"U2NlbmVNb25zdGVyEhwKCWRyb3BfbGlzdBgCIAMoCzIJLkl0ZW1MaXN0EhYK",
"DmJhdHRsZV93YXZlX2lkGAwgASgNEi0KDW1vbnN0ZXJfcGFyYW0YASABKAsy",
"Fi5TY2VuZU1vbnN0ZXJXYXZlUGFyYW0SFwoPYmF0dGxlX3N0YWdlX2lkGA4g",
"ASgNQh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw=="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.SceneMonsterWaveParamReflection.Descriptor, global::EggLink.DanhengServer.Proto.ItemListReflection.Descriptor, global::EggLink.DanhengServer.Proto.SceneMonsterReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.SceneMonsterWave), global::EggLink.DanhengServer.Proto.SceneMonsterWave.Parser, new[]{ "MonsterList", "DropList", "BattleWaveId", "MonsterParam", "BattleStageId" }, null, null, null, null)
}));
}
#endregion
}
#region Messages
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
public sealed partial class SceneMonsterWave : pb::IMessage<SceneMonsterWave>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<SceneMonsterWave> _parser = new pb::MessageParser<SceneMonsterWave>(() => new SceneMonsterWave());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<SceneMonsterWave> 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.SceneMonsterWaveReflection.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 SceneMonsterWave() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public SceneMonsterWave(SceneMonsterWave other) : this() {
monsterList_ = other.monsterList_.Clone();
dropList_ = other.dropList_.Clone();
battleWaveId_ = other.battleWaveId_;
monsterParam_ = other.monsterParam_ != null ? other.monsterParam_.Clone() : null;
battleStageId_ = other.battleStageId_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public SceneMonsterWave Clone() {
return new SceneMonsterWave(this);
}
/// <summary>Field number for the "monster_list" field.</summary>
public const int MonsterListFieldNumber = 6;
private static readonly pb::FieldCodec<global::EggLink.DanhengServer.Proto.SceneMonster> _repeated_monsterList_codec
= pb::FieldCodec.ForMessage(50, global::EggLink.DanhengServer.Proto.SceneMonster.Parser);
private readonly pbc::RepeatedField<global::EggLink.DanhengServer.Proto.SceneMonster> monsterList_ = new pbc::RepeatedField<global::EggLink.DanhengServer.Proto.SceneMonster>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField<global::EggLink.DanhengServer.Proto.SceneMonster> MonsterList {
get { return monsterList_; }
}
/// <summary>Field number for the "drop_list" field.</summary>
public const int DropListFieldNumber = 2;
private static readonly pb::FieldCodec<global::EggLink.DanhengServer.Proto.ItemList> _repeated_dropList_codec
= pb::FieldCodec.ForMessage(18, global::EggLink.DanhengServer.Proto.ItemList.Parser);
private readonly pbc::RepeatedField<global::EggLink.DanhengServer.Proto.ItemList> dropList_ = new pbc::RepeatedField<global::EggLink.DanhengServer.Proto.ItemList>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField<global::EggLink.DanhengServer.Proto.ItemList> DropList {
get { return dropList_; }
}
/// <summary>Field number for the "battle_wave_id" field.</summary>
public const int BattleWaveIdFieldNumber = 12;
private uint battleWaveId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public uint BattleWaveId {
get { return battleWaveId_; }
set {
battleWaveId_ = value;
}
}
/// <summary>Field number for the "monster_param" field.</summary>
public const int MonsterParamFieldNumber = 1;
private global::EggLink.DanhengServer.Proto.SceneMonsterWaveParam monsterParam_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::EggLink.DanhengServer.Proto.SceneMonsterWaveParam MonsterParam {
get { return monsterParam_; }
set {
monsterParam_ = value;
}
}
/// <summary>Field number for the "battle_stage_id" field.</summary>
public const int BattleStageIdFieldNumber = 14;
private uint battleStageId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public uint BattleStageId {
get { return battleStageId_; }
set {
battleStageId_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as SceneMonsterWave);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(SceneMonsterWave other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if(!monsterList_.Equals(other.monsterList_)) return false;
if(!dropList_.Equals(other.dropList_)) return false;
if (BattleWaveId != other.BattleWaveId) return false;
if (!object.Equals(MonsterParam, other.MonsterParam)) return false;
if (BattleStageId != other.BattleStageId) 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;
hash ^= monsterList_.GetHashCode();
hash ^= dropList_.GetHashCode();
if (BattleWaveId != 0) hash ^= BattleWaveId.GetHashCode();
if (monsterParam_ != null) hash ^= MonsterParam.GetHashCode();
if (BattleStageId != 0) hash ^= BattleStageId.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 (monsterParam_ != null) {
output.WriteRawTag(10);
output.WriteMessage(MonsterParam);
}
dropList_.WriteTo(output, _repeated_dropList_codec);
monsterList_.WriteTo(output, _repeated_monsterList_codec);
if (BattleWaveId != 0) {
output.WriteRawTag(96);
output.WriteUInt32(BattleWaveId);
}
if (BattleStageId != 0) {
output.WriteRawTag(112);
output.WriteUInt32(BattleStageId);
}
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 (monsterParam_ != null) {
output.WriteRawTag(10);
output.WriteMessage(MonsterParam);
}
dropList_.WriteTo(ref output, _repeated_dropList_codec);
monsterList_.WriteTo(ref output, _repeated_monsterList_codec);
if (BattleWaveId != 0) {
output.WriteRawTag(96);
output.WriteUInt32(BattleWaveId);
}
if (BattleStageId != 0) {
output.WriteRawTag(112);
output.WriteUInt32(BattleStageId);
}
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;
size += monsterList_.CalculateSize(_repeated_monsterList_codec);
size += dropList_.CalculateSize(_repeated_dropList_codec);
if (BattleWaveId != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(BattleWaveId);
}
if (monsterParam_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(MonsterParam);
}
if (BattleStageId != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(BattleStageId);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(SceneMonsterWave other) {
if (other == null) {
return;
}
monsterList_.Add(other.monsterList_);
dropList_.Add(other.dropList_);
if (other.BattleWaveId != 0) {
BattleWaveId = other.BattleWaveId;
}
if (other.monsterParam_ != null) {
if (monsterParam_ == null) {
MonsterParam = new global::EggLink.DanhengServer.Proto.SceneMonsterWaveParam();
}
MonsterParam.MergeFrom(other.MonsterParam);
}
if (other.BattleStageId != 0) {
BattleStageId = other.BattleStageId;
}
_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 (monsterParam_ == null) {
MonsterParam = new global::EggLink.DanhengServer.Proto.SceneMonsterWaveParam();
}
input.ReadMessage(MonsterParam);
break;
}
case 18: {
dropList_.AddEntriesFrom(input, _repeated_dropList_codec);
break;
}
case 50: {
monsterList_.AddEntriesFrom(input, _repeated_monsterList_codec);
break;
}
case 96: {
BattleWaveId = input.ReadUInt32();
break;
}
case 112: {
BattleStageId = 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 (monsterParam_ == null) {
MonsterParam = new global::EggLink.DanhengServer.Proto.SceneMonsterWaveParam();
}
input.ReadMessage(MonsterParam);
break;
}
case 18: {
dropList_.AddEntriesFrom(ref input, _repeated_dropList_codec);
break;
}
case 50: {
monsterList_.AddEntriesFrom(ref input, _repeated_monsterList_codec);
break;
}
case 96: {
BattleWaveId = input.ReadUInt32();
break;
}
case 112: {
BattleStageId = input.ReadUInt32();
break;
}
}
}
}
#endif
}
#endregion
}
#endregion Designer generated code