mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-02 20:26:03 +08:00
376 lines
14 KiB
C#
376 lines
14 KiB
C#
// <auto-generated>
|
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: RogueMagicLayerInfo.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 RogueMagicLayerInfo.proto</summary>
|
|
public static partial class RogueMagicLayerInfoReflection {
|
|
|
|
#region Descriptor
|
|
/// <summary>File descriptor for RogueMagicLayerInfo.proto</summary>
|
|
public static pbr::FileDescriptor Descriptor {
|
|
get { return descriptor; }
|
|
}
|
|
private static pbr::FileDescriptor descriptor;
|
|
|
|
static RogueMagicLayerInfoReflection() {
|
|
byte[] descriptorData = global::System.Convert.FromBase64String(
|
|
string.Concat(
|
|
"ChlSb2d1ZU1hZ2ljTGF5ZXJJbmZvLnByb3RvGhtSb2d1ZU1hZ2ljTGF5ZXJT",
|
|
"dGF0dXMucHJvdG8aGFJvZ3VlTWFnaWNSb29tSW5mby5wcm90byKqAQoTUm9n",
|
|
"dWVNYWdpY0xheWVySW5mbxIQCghsYXllcl9pZBgFIAEoDRITCgtsZXZlbF9p",
|
|
"bmRleBgGIAEoDRImCgZzdGF0dXMYCSABKA4yFi5Sb2d1ZU1hZ2ljTGF5ZXJT",
|
|
"dGF0dXMSFgoOY3VyX3Jvb21faW5kZXgYByABKA0SLAoPdG91cm5fcm9vbV9s",
|
|
"aXN0GAMgAygLMhMuUm9ndWVNYWdpY1Jvb21JbmZvQh6qAhtFZ2dMaW5rLkRh",
|
|
"bmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw=="));
|
|
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
|
new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.RogueMagicLayerStatusReflection.Descriptor, global::EggLink.DanhengServer.Proto.RogueMagicRoomInfoReflection.Descriptor, },
|
|
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RogueMagicLayerInfo), global::EggLink.DanhengServer.Proto.RogueMagicLayerInfo.Parser, new[]{ "LayerId", "LevelIndex", "Status", "CurRoomIndex", "TournRoomList" }, null, null, null, null)
|
|
}));
|
|
}
|
|
#endregion
|
|
|
|
}
|
|
#region Messages
|
|
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
|
public sealed partial class RogueMagicLayerInfo : pb::IMessage<RogueMagicLayerInfo>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<RogueMagicLayerInfo> _parser = new pb::MessageParser<RogueMagicLayerInfo>(() => new RogueMagicLayerInfo());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<RogueMagicLayerInfo> 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.RogueMagicLayerInfoReflection.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 RogueMagicLayerInfo() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public RogueMagicLayerInfo(RogueMagicLayerInfo other) : this() {
|
|
layerId_ = other.layerId_;
|
|
levelIndex_ = other.levelIndex_;
|
|
status_ = other.status_;
|
|
curRoomIndex_ = other.curRoomIndex_;
|
|
tournRoomList_ = other.tournRoomList_.Clone();
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public RogueMagicLayerInfo Clone() {
|
|
return new RogueMagicLayerInfo(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "layer_id" field.</summary>
|
|
public const int LayerIdFieldNumber = 5;
|
|
private uint layerId_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public uint LayerId {
|
|
get { return layerId_; }
|
|
set {
|
|
layerId_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "level_index" field.</summary>
|
|
public const int LevelIndexFieldNumber = 6;
|
|
private uint levelIndex_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public uint LevelIndex {
|
|
get { return levelIndex_; }
|
|
set {
|
|
levelIndex_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "status" field.</summary>
|
|
public const int StatusFieldNumber = 9;
|
|
private global::EggLink.DanhengServer.Proto.RogueMagicLayerStatus status_ = global::EggLink.DanhengServer.Proto.RogueMagicLayerStatus.None;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public global::EggLink.DanhengServer.Proto.RogueMagicLayerStatus Status {
|
|
get { return status_; }
|
|
set {
|
|
status_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "cur_room_index" field.</summary>
|
|
public const int CurRoomIndexFieldNumber = 7;
|
|
private uint curRoomIndex_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public uint CurRoomIndex {
|
|
get { return curRoomIndex_; }
|
|
set {
|
|
curRoomIndex_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "tourn_room_list" field.</summary>
|
|
public const int TournRoomListFieldNumber = 3;
|
|
private static readonly pb::FieldCodec<global::EggLink.DanhengServer.Proto.RogueMagicRoomInfo> _repeated_tournRoomList_codec
|
|
= pb::FieldCodec.ForMessage(26, global::EggLink.DanhengServer.Proto.RogueMagicRoomInfo.Parser);
|
|
private readonly pbc::RepeatedField<global::EggLink.DanhengServer.Proto.RogueMagicRoomInfo> tournRoomList_ = new pbc::RepeatedField<global::EggLink.DanhengServer.Proto.RogueMagicRoomInfo>();
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public pbc::RepeatedField<global::EggLink.DanhengServer.Proto.RogueMagicRoomInfo> TournRoomList {
|
|
get { return tournRoomList_; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as RogueMagicLayerInfo);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Equals(RogueMagicLayerInfo other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (LayerId != other.LayerId) return false;
|
|
if (LevelIndex != other.LevelIndex) return false;
|
|
if (Status != other.Status) return false;
|
|
if (CurRoomIndex != other.CurRoomIndex) return false;
|
|
if(!tournRoomList_.Equals(other.tournRoomList_)) 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 (LayerId != 0) hash ^= LayerId.GetHashCode();
|
|
if (LevelIndex != 0) hash ^= LevelIndex.GetHashCode();
|
|
if (Status != global::EggLink.DanhengServer.Proto.RogueMagicLayerStatus.None) hash ^= Status.GetHashCode();
|
|
if (CurRoomIndex != 0) hash ^= CurRoomIndex.GetHashCode();
|
|
hash ^= tournRoomList_.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
|
|
tournRoomList_.WriteTo(output, _repeated_tournRoomList_codec);
|
|
if (LayerId != 0) {
|
|
output.WriteRawTag(40);
|
|
output.WriteUInt32(LayerId);
|
|
}
|
|
if (LevelIndex != 0) {
|
|
output.WriteRawTag(48);
|
|
output.WriteUInt32(LevelIndex);
|
|
}
|
|
if (CurRoomIndex != 0) {
|
|
output.WriteRawTag(56);
|
|
output.WriteUInt32(CurRoomIndex);
|
|
}
|
|
if (Status != global::EggLink.DanhengServer.Proto.RogueMagicLayerStatus.None) {
|
|
output.WriteRawTag(72);
|
|
output.WriteEnum((int) Status);
|
|
}
|
|
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) {
|
|
tournRoomList_.WriteTo(ref output, _repeated_tournRoomList_codec);
|
|
if (LayerId != 0) {
|
|
output.WriteRawTag(40);
|
|
output.WriteUInt32(LayerId);
|
|
}
|
|
if (LevelIndex != 0) {
|
|
output.WriteRawTag(48);
|
|
output.WriteUInt32(LevelIndex);
|
|
}
|
|
if (CurRoomIndex != 0) {
|
|
output.WriteRawTag(56);
|
|
output.WriteUInt32(CurRoomIndex);
|
|
}
|
|
if (Status != global::EggLink.DanhengServer.Proto.RogueMagicLayerStatus.None) {
|
|
output.WriteRawTag(72);
|
|
output.WriteEnum((int) Status);
|
|
}
|
|
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 (LayerId != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(LayerId);
|
|
}
|
|
if (LevelIndex != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(LevelIndex);
|
|
}
|
|
if (Status != global::EggLink.DanhengServer.Proto.RogueMagicLayerStatus.None) {
|
|
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status);
|
|
}
|
|
if (CurRoomIndex != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(CurRoomIndex);
|
|
}
|
|
size += tournRoomList_.CalculateSize(_repeated_tournRoomList_codec);
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(RogueMagicLayerInfo other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.LayerId != 0) {
|
|
LayerId = other.LayerId;
|
|
}
|
|
if (other.LevelIndex != 0) {
|
|
LevelIndex = other.LevelIndex;
|
|
}
|
|
if (other.Status != global::EggLink.DanhengServer.Proto.RogueMagicLayerStatus.None) {
|
|
Status = other.Status;
|
|
}
|
|
if (other.CurRoomIndex != 0) {
|
|
CurRoomIndex = other.CurRoomIndex;
|
|
}
|
|
tournRoomList_.Add(other.tournRoomList_);
|
|
_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 26: {
|
|
tournRoomList_.AddEntriesFrom(input, _repeated_tournRoomList_codec);
|
|
break;
|
|
}
|
|
case 40: {
|
|
LayerId = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 48: {
|
|
LevelIndex = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 56: {
|
|
CurRoomIndex = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 72: {
|
|
Status = (global::EggLink.DanhengServer.Proto.RogueMagicLayerStatus) 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 26: {
|
|
tournRoomList_.AddEntriesFrom(ref input, _repeated_tournRoomList_codec);
|
|
break;
|
|
}
|
|
case 40: {
|
|
LayerId = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 48: {
|
|
LevelIndex = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 56: {
|
|
CurRoomIndex = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 72: {
|
|
Status = (global::EggLink.DanhengServer.Proto.RogueMagicLayerStatus) input.ReadEnum();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
}
|
|
|
|
#endregion Designer generated code
|