Files
DanhengServer-OpenSource/Proto/RogueMapInfo.cs
2024-10-05 22:40:41 +08:00

374 lines
13 KiB
C#

// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: RogueMapInfo.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 RogueMapInfo.proto</summary>
public static partial class RogueMapInfoReflection {
#region Descriptor
/// <summary>File descriptor for RogueMapInfo.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static RogueMapInfoReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"ChJSb2d1ZU1hcEluZm8ucHJvdG8aD1JvZ3VlUm9vbS5wcm90byJ4CgxSb2d1",
"ZU1hcEluZm8SEwoLY3VyX3Jvb21faWQYCSABKA0SEwoLY3VyX3NpdGVfaWQY",
"ASABKA0SDgoGbWFwX2lkGAogASgNEg8KB2FyZWFfaWQYBCABKA0SHQoJcm9v",
"bV9saXN0GA4gAygLMgouUm9ndWVSb29tQh6qAhtFZ2dMaW5rLkRhbmhlbmdT",
"ZXJ2ZXIuUHJvdG9iBnByb3RvMw=="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.RogueRoomReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.RogueMapInfo), global::EggLink.DanhengServer.Proto.RogueMapInfo.Parser, new[]{ "CurRoomId", "CurSiteId", "MapId", "AreaId", "RoomList" }, null, null, null, null)
}));
}
#endregion
}
#region Messages
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
public sealed partial class RogueMapInfo : pb::IMessage<RogueMapInfo>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<RogueMapInfo> _parser = new pb::MessageParser<RogueMapInfo>(() => new RogueMapInfo());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<RogueMapInfo> 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.RogueMapInfoReflection.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 RogueMapInfo() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public RogueMapInfo(RogueMapInfo other) : this() {
curRoomId_ = other.curRoomId_;
curSiteId_ = other.curSiteId_;
mapId_ = other.mapId_;
areaId_ = other.areaId_;
roomList_ = other.roomList_.Clone();
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public RogueMapInfo Clone() {
return new RogueMapInfo(this);
}
/// <summary>Field number for the "cur_room_id" field.</summary>
public const int CurRoomIdFieldNumber = 9;
private uint curRoomId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public uint CurRoomId {
get { return curRoomId_; }
set {
curRoomId_ = value;
}
}
/// <summary>Field number for the "cur_site_id" field.</summary>
public const int CurSiteIdFieldNumber = 1;
private uint curSiteId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public uint CurSiteId {
get { return curSiteId_; }
set {
curSiteId_ = value;
}
}
/// <summary>Field number for the "map_id" field.</summary>
public const int MapIdFieldNumber = 10;
private uint mapId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public uint MapId {
get { return mapId_; }
set {
mapId_ = value;
}
}
/// <summary>Field number for the "area_id" field.</summary>
public const int AreaIdFieldNumber = 4;
private uint areaId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public uint AreaId {
get { return areaId_; }
set {
areaId_ = value;
}
}
/// <summary>Field number for the "room_list" field.</summary>
public const int RoomListFieldNumber = 14;
private static readonly pb::FieldCodec<global::EggLink.DanhengServer.Proto.RogueRoom> _repeated_roomList_codec
= pb::FieldCodec.ForMessage(114, global::EggLink.DanhengServer.Proto.RogueRoom.Parser);
private readonly pbc::RepeatedField<global::EggLink.DanhengServer.Proto.RogueRoom> roomList_ = new pbc::RepeatedField<global::EggLink.DanhengServer.Proto.RogueRoom>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField<global::EggLink.DanhengServer.Proto.RogueRoom> RoomList {
get { return roomList_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as RogueMapInfo);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(RogueMapInfo other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (CurRoomId != other.CurRoomId) return false;
if (CurSiteId != other.CurSiteId) return false;
if (MapId != other.MapId) return false;
if (AreaId != other.AreaId) return false;
if(!roomList_.Equals(other.roomList_)) 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 (CurRoomId != 0) hash ^= CurRoomId.GetHashCode();
if (CurSiteId != 0) hash ^= CurSiteId.GetHashCode();
if (MapId != 0) hash ^= MapId.GetHashCode();
if (AreaId != 0) hash ^= AreaId.GetHashCode();
hash ^= roomList_.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 (CurSiteId != 0) {
output.WriteRawTag(8);
output.WriteUInt32(CurSiteId);
}
if (AreaId != 0) {
output.WriteRawTag(32);
output.WriteUInt32(AreaId);
}
if (CurRoomId != 0) {
output.WriteRawTag(72);
output.WriteUInt32(CurRoomId);
}
if (MapId != 0) {
output.WriteRawTag(80);
output.WriteUInt32(MapId);
}
roomList_.WriteTo(output, _repeated_roomList_codec);
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 (CurSiteId != 0) {
output.WriteRawTag(8);
output.WriteUInt32(CurSiteId);
}
if (AreaId != 0) {
output.WriteRawTag(32);
output.WriteUInt32(AreaId);
}
if (CurRoomId != 0) {
output.WriteRawTag(72);
output.WriteUInt32(CurRoomId);
}
if (MapId != 0) {
output.WriteRawTag(80);
output.WriteUInt32(MapId);
}
roomList_.WriteTo(ref output, _repeated_roomList_codec);
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 (CurRoomId != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(CurRoomId);
}
if (CurSiteId != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(CurSiteId);
}
if (MapId != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MapId);
}
if (AreaId != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(AreaId);
}
size += roomList_.CalculateSize(_repeated_roomList_codec);
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(RogueMapInfo other) {
if (other == null) {
return;
}
if (other.CurRoomId != 0) {
CurRoomId = other.CurRoomId;
}
if (other.CurSiteId != 0) {
CurSiteId = other.CurSiteId;
}
if (other.MapId != 0) {
MapId = other.MapId;
}
if (other.AreaId != 0) {
AreaId = other.AreaId;
}
roomList_.Add(other.roomList_);
_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 8: {
CurSiteId = input.ReadUInt32();
break;
}
case 32: {
AreaId = input.ReadUInt32();
break;
}
case 72: {
CurRoomId = input.ReadUInt32();
break;
}
case 80: {
MapId = input.ReadUInt32();
break;
}
case 114: {
roomList_.AddEntriesFrom(input, _repeated_roomList_codec);
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 8: {
CurSiteId = input.ReadUInt32();
break;
}
case 32: {
AreaId = input.ReadUInt32();
break;
}
case 72: {
CurRoomId = input.ReadUInt32();
break;
}
case 80: {
MapId = input.ReadUInt32();
break;
}
case 114: {
roomList_.AddEntriesFrom(ref input, _repeated_roomList_codec);
break;
}
}
}
}
#endif
}
#endregion
}
#endregion Designer generated code