Files
DanhengServer-OpenSource/Proto/AdventureRoomInfo.cs
2024-12-07 17:06:07 +08:00

443 lines
16 KiB
C#

// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: AdventureRoomInfo.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 AdventureRoomInfo.proto</summary>
public static partial class AdventureRoomInfoReflection {
#region Descriptor
/// <summary>File descriptor for AdventureRoomInfo.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static AdventureRoomInfoReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"ChdBZHZlbnR1cmVSb29tSW5mby5wcm90bxoeUm9ndWVBZHZlbnR1cmVSb29t",
"U3RhdHVzLnByb3RvGitSb2d1ZUFkdmVudHVyZVJvb21HYW1lcGxheVdvbGZH",
"dW5JbmZvLnByb3RvItEBChFBZHZlbnR1cmVSb29tSW5mbxIaChJyZW1haW5f",
"bW9uc3Rlcl9udW0YBiABKA0SOgoKcXVlcnlfaW5mbxgNIAEoCzImLlJvZ3Vl",
"QWR2ZW50dXJlUm9vbUdhbWVwbGF5V29sZkd1bkluZm8SEAoIc2NvcmVfaWQY",
"AyABKA0SCwoDc3VzGA8gASgBEhoKEmNhdWdodF9tb25zdGVyX251bRgIIAEo",
"DRIpCgZzdGF0dXMYCyABKA4yGS5Sb2d1ZUFkdmVudHVyZVJvb21TdGF0dXNC",
"HqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z"));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.RogueAdventureRoomStatusReflection.Descriptor, global::EggLink.DanhengServer.Proto.RogueAdventureRoomGameplayWolfGunInfoReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.AdventureRoomInfo), global::EggLink.DanhengServer.Proto.AdventureRoomInfo.Parser, new[]{ "RemainMonsterNum", "QueryInfo", "ScoreId", "Sus", "CaughtMonsterNum", "Status" }, null, null, null, null)
}));
}
#endregion
}
#region Messages
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
public sealed partial class AdventureRoomInfo : pb::IMessage<AdventureRoomInfo>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<AdventureRoomInfo> _parser = new pb::MessageParser<AdventureRoomInfo>(() => new AdventureRoomInfo());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<AdventureRoomInfo> 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.AdventureRoomInfoReflection.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 AdventureRoomInfo() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public AdventureRoomInfo(AdventureRoomInfo other) : this() {
remainMonsterNum_ = other.remainMonsterNum_;
queryInfo_ = other.queryInfo_ != null ? other.queryInfo_.Clone() : null;
scoreId_ = other.scoreId_;
sus_ = other.sus_;
caughtMonsterNum_ = other.caughtMonsterNum_;
status_ = other.status_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public AdventureRoomInfo Clone() {
return new AdventureRoomInfo(this);
}
/// <summary>Field number for the "remain_monster_num" field.</summary>
public const int RemainMonsterNumFieldNumber = 6;
private uint remainMonsterNum_;
/// <summary>
/// 8
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public uint RemainMonsterNum {
get { return remainMonsterNum_; }
set {
remainMonsterNum_ = value;
}
}
/// <summary>Field number for the "query_info" field.</summary>
public const int QueryInfoFieldNumber = 13;
private global::EggLink.DanhengServer.Proto.RogueAdventureRoomGameplayWolfGunInfo queryInfo_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::EggLink.DanhengServer.Proto.RogueAdventureRoomGameplayWolfGunInfo QueryInfo {
get { return queryInfo_; }
set {
queryInfo_ = value;
}
}
/// <summary>Field number for the "score_id" field.</summary>
public const int ScoreIdFieldNumber = 3;
private uint scoreId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public uint ScoreId {
get { return scoreId_; }
set {
scoreId_ = value;
}
}
/// <summary>Field number for the "sus" field.</summary>
public const int SusFieldNumber = 15;
private double sus_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public double Sus {
get { return sus_; }
set {
sus_ = value;
}
}
/// <summary>Field number for the "caught_monster_num" field.</summary>
public const int CaughtMonsterNumFieldNumber = 8;
private uint caughtMonsterNum_;
/// <summary>
/// 6
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public uint CaughtMonsterNum {
get { return caughtMonsterNum_; }
set {
caughtMonsterNum_ = value;
}
}
/// <summary>Field number for the "status" field.</summary>
public const int StatusFieldNumber = 11;
private global::EggLink.DanhengServer.Proto.RogueAdventureRoomStatus status_ = global::EggLink.DanhengServer.Proto.RogueAdventureRoomStatus.None;
/// <summary>
/// original: uint32
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::EggLink.DanhengServer.Proto.RogueAdventureRoomStatus Status {
get { return status_; }
set {
status_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as AdventureRoomInfo);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(AdventureRoomInfo other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (RemainMonsterNum != other.RemainMonsterNum) return false;
if (!object.Equals(QueryInfo, other.QueryInfo)) return false;
if (ScoreId != other.ScoreId) return false;
if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Sus, other.Sus)) return false;
if (CaughtMonsterNum != other.CaughtMonsterNum) return false;
if (Status != other.Status) 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 (RemainMonsterNum != 0) hash ^= RemainMonsterNum.GetHashCode();
if (queryInfo_ != null) hash ^= QueryInfo.GetHashCode();
if (ScoreId != 0) hash ^= ScoreId.GetHashCode();
if (Sus != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Sus);
if (CaughtMonsterNum != 0) hash ^= CaughtMonsterNum.GetHashCode();
if (Status != global::EggLink.DanhengServer.Proto.RogueAdventureRoomStatus.None) hash ^= Status.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 (ScoreId != 0) {
output.WriteRawTag(24);
output.WriteUInt32(ScoreId);
}
if (RemainMonsterNum != 0) {
output.WriteRawTag(48);
output.WriteUInt32(RemainMonsterNum);
}
if (CaughtMonsterNum != 0) {
output.WriteRawTag(64);
output.WriteUInt32(CaughtMonsterNum);
}
if (Status != global::EggLink.DanhengServer.Proto.RogueAdventureRoomStatus.None) {
output.WriteRawTag(88);
output.WriteEnum((int) Status);
}
if (queryInfo_ != null) {
output.WriteRawTag(106);
output.WriteMessage(QueryInfo);
}
if (Sus != 0D) {
output.WriteRawTag(121);
output.WriteDouble(Sus);
}
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 (ScoreId != 0) {
output.WriteRawTag(24);
output.WriteUInt32(ScoreId);
}
if (RemainMonsterNum != 0) {
output.WriteRawTag(48);
output.WriteUInt32(RemainMonsterNum);
}
if (CaughtMonsterNum != 0) {
output.WriteRawTag(64);
output.WriteUInt32(CaughtMonsterNum);
}
if (Status != global::EggLink.DanhengServer.Proto.RogueAdventureRoomStatus.None) {
output.WriteRawTag(88);
output.WriteEnum((int) Status);
}
if (queryInfo_ != null) {
output.WriteRawTag(106);
output.WriteMessage(QueryInfo);
}
if (Sus != 0D) {
output.WriteRawTag(121);
output.WriteDouble(Sus);
}
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 (RemainMonsterNum != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RemainMonsterNum);
}
if (queryInfo_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(QueryInfo);
}
if (ScoreId != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ScoreId);
}
if (Sus != 0D) {
size += 1 + 8;
}
if (CaughtMonsterNum != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(CaughtMonsterNum);
}
if (Status != global::EggLink.DanhengServer.Proto.RogueAdventureRoomStatus.None) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(AdventureRoomInfo other) {
if (other == null) {
return;
}
if (other.RemainMonsterNum != 0) {
RemainMonsterNum = other.RemainMonsterNum;
}
if (other.queryInfo_ != null) {
if (queryInfo_ == null) {
QueryInfo = new global::EggLink.DanhengServer.Proto.RogueAdventureRoomGameplayWolfGunInfo();
}
QueryInfo.MergeFrom(other.QueryInfo);
}
if (other.ScoreId != 0) {
ScoreId = other.ScoreId;
}
if (other.Sus != 0D) {
Sus = other.Sus;
}
if (other.CaughtMonsterNum != 0) {
CaughtMonsterNum = other.CaughtMonsterNum;
}
if (other.Status != global::EggLink.DanhengServer.Proto.RogueAdventureRoomStatus.None) {
Status = other.Status;
}
_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 24: {
ScoreId = input.ReadUInt32();
break;
}
case 48: {
RemainMonsterNum = input.ReadUInt32();
break;
}
case 64: {
CaughtMonsterNum = input.ReadUInt32();
break;
}
case 88: {
Status = (global::EggLink.DanhengServer.Proto.RogueAdventureRoomStatus) input.ReadEnum();
break;
}
case 106: {
if (queryInfo_ == null) {
QueryInfo = new global::EggLink.DanhengServer.Proto.RogueAdventureRoomGameplayWolfGunInfo();
}
input.ReadMessage(QueryInfo);
break;
}
case 121: {
Sus = 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 24: {
ScoreId = input.ReadUInt32();
break;
}
case 48: {
RemainMonsterNum = input.ReadUInt32();
break;
}
case 64: {
CaughtMonsterNum = input.ReadUInt32();
break;
}
case 88: {
Status = (global::EggLink.DanhengServer.Proto.RogueAdventureRoomStatus) input.ReadEnum();
break;
}
case 106: {
if (queryInfo_ == null) {
QueryInfo = new global::EggLink.DanhengServer.Proto.RogueAdventureRoomGameplayWolfGunInfo();
}
input.ReadMessage(QueryInfo);
break;
}
case 121: {
Sus = input.ReadDouble();
break;
}
}
}
}
#endif
}
#endregion
}
#endregion Designer generated code