mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-03 12:46:03 +08:00
338 lines
12 KiB
C#
338 lines
12 KiB
C#
// <auto-generated>
|
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: ChessRogueDice.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 ChessRogueDice.proto</summary>
|
|
public static partial class ChessRogueDiceReflection {
|
|
|
|
#region Descriptor
|
|
/// <summary>File descriptor for ChessRogueDice.proto</summary>
|
|
public static pbr::FileDescriptor Descriptor {
|
|
get { return descriptor; }
|
|
}
|
|
private static pbr::FileDescriptor descriptor;
|
|
|
|
static ChessRogueDiceReflection() {
|
|
byte[] descriptorData = global::System.Convert.FromBase64String(
|
|
string.Concat(
|
|
"ChRDaGVzc1JvZ3VlRGljZS5wcm90bxofQ2hlc3NSb2d1ZURpY2VTdXJmYWNl",
|
|
"SW5mby5wcm90byKNAQoOQ2hlc3NSb2d1ZURpY2USFgoOZGljZV9icmFuY2hf",
|
|
"aWQYBiABKA0SHAoUbWF4X2RpZmZpY3VsdHlfbGV2ZWwYBSABKA0SMAoMc3Vy",
|
|
"ZmFjZV9saXN0GAcgAygLMhouQ2hlc3NSb2d1ZURpY2VTdXJmYWNlSW5mbxIT",
|
|
"CgttYXhfYXJlYV9pZBgIIAEoDUIeqgIbRWdnTGluay5EYW5oZW5nU2VydmVy",
|
|
"LlByb3RvYgZwcm90bzM="));
|
|
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
|
new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.ChessRogueDiceSurfaceInfoReflection.Descriptor, },
|
|
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ChessRogueDice), global::EggLink.DanhengServer.Proto.ChessRogueDice.Parser, new[]{ "DiceBranchId", "MaxDifficultyLevel", "SurfaceList", "MaxAreaId" }, null, null, null, null)
|
|
}));
|
|
}
|
|
#endregion
|
|
|
|
}
|
|
#region Messages
|
|
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
|
public sealed partial class ChessRogueDice : pb::IMessage<ChessRogueDice>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<ChessRogueDice> _parser = new pb::MessageParser<ChessRogueDice>(() => new ChessRogueDice());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<ChessRogueDice> 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.ChessRogueDiceReflection.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 ChessRogueDice() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public ChessRogueDice(ChessRogueDice other) : this() {
|
|
diceBranchId_ = other.diceBranchId_;
|
|
maxDifficultyLevel_ = other.maxDifficultyLevel_;
|
|
surfaceList_ = other.surfaceList_.Clone();
|
|
maxAreaId_ = other.maxAreaId_;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public ChessRogueDice Clone() {
|
|
return new ChessRogueDice(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "dice_branch_id" field.</summary>
|
|
public const int DiceBranchIdFieldNumber = 6;
|
|
private uint diceBranchId_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public uint DiceBranchId {
|
|
get { return diceBranchId_; }
|
|
set {
|
|
diceBranchId_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "max_difficulty_level" field.</summary>
|
|
public const int MaxDifficultyLevelFieldNumber = 5;
|
|
private uint maxDifficultyLevel_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public uint MaxDifficultyLevel {
|
|
get { return maxDifficultyLevel_; }
|
|
set {
|
|
maxDifficultyLevel_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "surface_list" field.</summary>
|
|
public const int SurfaceListFieldNumber = 7;
|
|
private static readonly pb::FieldCodec<global::EggLink.DanhengServer.Proto.ChessRogueDiceSurfaceInfo> _repeated_surfaceList_codec
|
|
= pb::FieldCodec.ForMessage(58, global::EggLink.DanhengServer.Proto.ChessRogueDiceSurfaceInfo.Parser);
|
|
private readonly pbc::RepeatedField<global::EggLink.DanhengServer.Proto.ChessRogueDiceSurfaceInfo> surfaceList_ = new pbc::RepeatedField<global::EggLink.DanhengServer.Proto.ChessRogueDiceSurfaceInfo>();
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public pbc::RepeatedField<global::EggLink.DanhengServer.Proto.ChessRogueDiceSurfaceInfo> SurfaceList {
|
|
get { return surfaceList_; }
|
|
}
|
|
|
|
/// <summary>Field number for the "max_area_id" field.</summary>
|
|
public const int MaxAreaIdFieldNumber = 8;
|
|
private uint maxAreaId_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public uint MaxAreaId {
|
|
get { return maxAreaId_; }
|
|
set {
|
|
maxAreaId_ = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as ChessRogueDice);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Equals(ChessRogueDice other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (DiceBranchId != other.DiceBranchId) return false;
|
|
if (MaxDifficultyLevel != other.MaxDifficultyLevel) return false;
|
|
if(!surfaceList_.Equals(other.surfaceList_)) return false;
|
|
if (MaxAreaId != other.MaxAreaId) 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 (DiceBranchId != 0) hash ^= DiceBranchId.GetHashCode();
|
|
if (MaxDifficultyLevel != 0) hash ^= MaxDifficultyLevel.GetHashCode();
|
|
hash ^= surfaceList_.GetHashCode();
|
|
if (MaxAreaId != 0) hash ^= MaxAreaId.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 (MaxDifficultyLevel != 0) {
|
|
output.WriteRawTag(40);
|
|
output.WriteUInt32(MaxDifficultyLevel);
|
|
}
|
|
if (DiceBranchId != 0) {
|
|
output.WriteRawTag(48);
|
|
output.WriteUInt32(DiceBranchId);
|
|
}
|
|
surfaceList_.WriteTo(output, _repeated_surfaceList_codec);
|
|
if (MaxAreaId != 0) {
|
|
output.WriteRawTag(64);
|
|
output.WriteUInt32(MaxAreaId);
|
|
}
|
|
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 (MaxDifficultyLevel != 0) {
|
|
output.WriteRawTag(40);
|
|
output.WriteUInt32(MaxDifficultyLevel);
|
|
}
|
|
if (DiceBranchId != 0) {
|
|
output.WriteRawTag(48);
|
|
output.WriteUInt32(DiceBranchId);
|
|
}
|
|
surfaceList_.WriteTo(ref output, _repeated_surfaceList_codec);
|
|
if (MaxAreaId != 0) {
|
|
output.WriteRawTag(64);
|
|
output.WriteUInt32(MaxAreaId);
|
|
}
|
|
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 (DiceBranchId != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(DiceBranchId);
|
|
}
|
|
if (MaxDifficultyLevel != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MaxDifficultyLevel);
|
|
}
|
|
size += surfaceList_.CalculateSize(_repeated_surfaceList_codec);
|
|
if (MaxAreaId != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MaxAreaId);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(ChessRogueDice other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.DiceBranchId != 0) {
|
|
DiceBranchId = other.DiceBranchId;
|
|
}
|
|
if (other.MaxDifficultyLevel != 0) {
|
|
MaxDifficultyLevel = other.MaxDifficultyLevel;
|
|
}
|
|
surfaceList_.Add(other.surfaceList_);
|
|
if (other.MaxAreaId != 0) {
|
|
MaxAreaId = other.MaxAreaId;
|
|
}
|
|
_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 40: {
|
|
MaxDifficultyLevel = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 48: {
|
|
DiceBranchId = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 58: {
|
|
surfaceList_.AddEntriesFrom(input, _repeated_surfaceList_codec);
|
|
break;
|
|
}
|
|
case 64: {
|
|
MaxAreaId = 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 40: {
|
|
MaxDifficultyLevel = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 48: {
|
|
DiceBranchId = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 58: {
|
|
surfaceList_.AddEntriesFrom(ref input, _repeated_surfaceList_codec);
|
|
break;
|
|
}
|
|
case 64: {
|
|
MaxAreaId = input.ReadUInt32();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
}
|
|
|
|
#endregion Designer generated code
|