Files
RecRoom.Protobuf/RoomHudData.cs
2026-05-10 13:39:01 -07:00

989 lines
36 KiB
C#

// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: circuits_v2/room_hud_data.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 CircuitsV2.Protobuf {
/// <summary>Holder for reflection information generated from circuits_v2/room_hud_data.proto</summary>
public static partial class RoomHudDataReflection {
#region Descriptor
/// <summary>File descriptor for circuits_v2/room_hud_data.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static RoomHudDataReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"Ch9jaXJjdWl0c192Mi9yb29tX2h1ZF9kYXRhLnByb3RvEgtjaXJjdWl0c192",
"MhoUY29yZS9ndWlkX2RhdGEucHJvdG8iygIKC1Jvb21IdWREYXRhEhMKC3Rp",
"dGxlT3B0aW9uGAEgASgFEhYKDnN1YnRpdGxlT3B0aW9uGAIgASgFEhEKCWJh",
"ck9wdGlvbhgDIAEoBRIbChNwcm9ncmVzc1doZWVsT3B0aW9uGAQgASgFEhQK",
"DHNob3dQcm9ncmVzcxgFIAEoCBI6Cg9pbnZlbnRvcnlPcHRpb24YBiABKAsy",
"IS5jaXJjdWl0c192Mi5Sb29tSHVkSW52ZW50b3J5RGF0YRI7ChBpbnZlbnRv",
"cnlPcHRpb24xGAcgASgLMiEuY2lyY3VpdHNfdjIuUm9vbUh1ZEludmVudG9y",
"eURhdGESOwoQaW52ZW50b3J5T3B0aW9uMhgIIAEoCzIhLmNpcmN1aXRzX3Yy",
"LlJvb21IdWRJbnZlbnRvcnlEYXRhEhIKCmJhcjFPcHRpb24YCSABKAUi1QEK",
"FFJvb21IdWRJbnZlbnRvcnlEYXRhEhcKD2ludmVudG9yeU9wdGlvbhgBIAEo",
"BRIbChNyb29tSW52ZW50b3J5T3B0aW9uGAIgASgFEhAKCHNob3dJY29uGAMg",
"ASgIEiQKDGNvbnN1bWFibGVJZBgEIAEoCzIOLmNvcmUuR3VpZERhdGESIgoK",
"Y3VycmVuY3lJZBgFIAEoCzIOLmNvcmUuR3VpZERhdGESKwoTcm9vbUludmVu",
"dG9yeUl0ZW1JZBgGIAEoCzIOLmNvcmUuR3VpZERhdGFCFqoCE0NpcmN1aXRz",
"VjIuUHJvdG9idWZiBnByb3RvMw=="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::RecRoom.Protobuf.Core.GuidDataReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::CircuitsV2.Protobuf.RoomHudData), global::CircuitsV2.Protobuf.RoomHudData.Parser, new[]{ "TitleOption", "SubtitleOption", "BarOption", "ProgressWheelOption", "ShowProgress", "InventoryOption", "InventoryOption1", "InventoryOption2", "Bar1Option" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::CircuitsV2.Protobuf.RoomHudInventoryData), global::CircuitsV2.Protobuf.RoomHudInventoryData.Parser, new[]{ "InventoryOption", "RoomInventoryOption", "ShowIcon", "ConsumableId", "CurrencyId", "RoomInventoryItemId" }, null, null, null, null)
}));
}
#endregion
}
#region Messages
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
public sealed partial class RoomHudData : pb::IMessage<RoomHudData>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<RoomHudData> _parser = new pb::MessageParser<RoomHudData>(() => new RoomHudData());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<RoomHudData> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::CircuitsV2.Protobuf.RoomHudDataReflection.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 RoomHudData() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public RoomHudData(RoomHudData other) : this() {
titleOption_ = other.titleOption_;
subtitleOption_ = other.subtitleOption_;
barOption_ = other.barOption_;
progressWheelOption_ = other.progressWheelOption_;
showProgress_ = other.showProgress_;
inventoryOption_ = other.inventoryOption_ != null ? other.inventoryOption_.Clone() : null;
inventoryOption1_ = other.inventoryOption1_ != null ? other.inventoryOption1_.Clone() : null;
inventoryOption2_ = other.inventoryOption2_ != null ? other.inventoryOption2_.Clone() : null;
bar1Option_ = other.bar1Option_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public RoomHudData Clone() {
return new RoomHudData(this);
}
/// <summary>Field number for the "titleOption" field.</summary>
public const int TitleOptionFieldNumber = 1;
private int titleOption_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int TitleOption {
get { return titleOption_; }
set {
titleOption_ = value;
}
}
/// <summary>Field number for the "subtitleOption" field.</summary>
public const int SubtitleOptionFieldNumber = 2;
private int subtitleOption_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int SubtitleOption {
get { return subtitleOption_; }
set {
subtitleOption_ = value;
}
}
/// <summary>Field number for the "barOption" field.</summary>
public const int BarOptionFieldNumber = 3;
private int barOption_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int BarOption {
get { return barOption_; }
set {
barOption_ = value;
}
}
/// <summary>Field number for the "progressWheelOption" field.</summary>
public const int ProgressWheelOptionFieldNumber = 4;
private int progressWheelOption_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int ProgressWheelOption {
get { return progressWheelOption_; }
set {
progressWheelOption_ = value;
}
}
/// <summary>Field number for the "showProgress" field.</summary>
public const int ShowProgressFieldNumber = 5;
private bool showProgress_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool ShowProgress {
get { return showProgress_; }
set {
showProgress_ = value;
}
}
/// <summary>Field number for the "inventoryOption" field.</summary>
public const int InventoryOptionFieldNumber = 6;
private global::CircuitsV2.Protobuf.RoomHudInventoryData inventoryOption_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::CircuitsV2.Protobuf.RoomHudInventoryData InventoryOption {
get { return inventoryOption_; }
set {
inventoryOption_ = value;
}
}
/// <summary>Field number for the "inventoryOption1" field.</summary>
public const int InventoryOption1FieldNumber = 7;
private global::CircuitsV2.Protobuf.RoomHudInventoryData inventoryOption1_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::CircuitsV2.Protobuf.RoomHudInventoryData InventoryOption1 {
get { return inventoryOption1_; }
set {
inventoryOption1_ = value;
}
}
/// <summary>Field number for the "inventoryOption2" field.</summary>
public const int InventoryOption2FieldNumber = 8;
private global::CircuitsV2.Protobuf.RoomHudInventoryData inventoryOption2_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::CircuitsV2.Protobuf.RoomHudInventoryData InventoryOption2 {
get { return inventoryOption2_; }
set {
inventoryOption2_ = value;
}
}
/// <summary>Field number for the "bar1Option" field.</summary>
public const int Bar1OptionFieldNumber = 9;
private int bar1Option_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int Bar1Option {
get { return bar1Option_; }
set {
bar1Option_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as RoomHudData);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(RoomHudData other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (TitleOption != other.TitleOption) return false;
if (SubtitleOption != other.SubtitleOption) return false;
if (BarOption != other.BarOption) return false;
if (ProgressWheelOption != other.ProgressWheelOption) return false;
if (ShowProgress != other.ShowProgress) return false;
if (!object.Equals(InventoryOption, other.InventoryOption)) return false;
if (!object.Equals(InventoryOption1, other.InventoryOption1)) return false;
if (!object.Equals(InventoryOption2, other.InventoryOption2)) return false;
if (Bar1Option != other.Bar1Option) 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 (TitleOption != 0) hash ^= TitleOption.GetHashCode();
if (SubtitleOption != 0) hash ^= SubtitleOption.GetHashCode();
if (BarOption != 0) hash ^= BarOption.GetHashCode();
if (ProgressWheelOption != 0) hash ^= ProgressWheelOption.GetHashCode();
if (ShowProgress != false) hash ^= ShowProgress.GetHashCode();
if (inventoryOption_ != null) hash ^= InventoryOption.GetHashCode();
if (inventoryOption1_ != null) hash ^= InventoryOption1.GetHashCode();
if (inventoryOption2_ != null) hash ^= InventoryOption2.GetHashCode();
if (Bar1Option != 0) hash ^= Bar1Option.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 (TitleOption != 0) {
output.WriteRawTag(8);
output.WriteInt32(TitleOption);
}
if (SubtitleOption != 0) {
output.WriteRawTag(16);
output.WriteInt32(SubtitleOption);
}
if (BarOption != 0) {
output.WriteRawTag(24);
output.WriteInt32(BarOption);
}
if (ProgressWheelOption != 0) {
output.WriteRawTag(32);
output.WriteInt32(ProgressWheelOption);
}
if (ShowProgress != false) {
output.WriteRawTag(40);
output.WriteBool(ShowProgress);
}
if (inventoryOption_ != null) {
output.WriteRawTag(50);
output.WriteMessage(InventoryOption);
}
if (inventoryOption1_ != null) {
output.WriteRawTag(58);
output.WriteMessage(InventoryOption1);
}
if (inventoryOption2_ != null) {
output.WriteRawTag(66);
output.WriteMessage(InventoryOption2);
}
if (Bar1Option != 0) {
output.WriteRawTag(72);
output.WriteInt32(Bar1Option);
}
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 (TitleOption != 0) {
output.WriteRawTag(8);
output.WriteInt32(TitleOption);
}
if (SubtitleOption != 0) {
output.WriteRawTag(16);
output.WriteInt32(SubtitleOption);
}
if (BarOption != 0) {
output.WriteRawTag(24);
output.WriteInt32(BarOption);
}
if (ProgressWheelOption != 0) {
output.WriteRawTag(32);
output.WriteInt32(ProgressWheelOption);
}
if (ShowProgress != false) {
output.WriteRawTag(40);
output.WriteBool(ShowProgress);
}
if (inventoryOption_ != null) {
output.WriteRawTag(50);
output.WriteMessage(InventoryOption);
}
if (inventoryOption1_ != null) {
output.WriteRawTag(58);
output.WriteMessage(InventoryOption1);
}
if (inventoryOption2_ != null) {
output.WriteRawTag(66);
output.WriteMessage(InventoryOption2);
}
if (Bar1Option != 0) {
output.WriteRawTag(72);
output.WriteInt32(Bar1Option);
}
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 (TitleOption != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(TitleOption);
}
if (SubtitleOption != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(SubtitleOption);
}
if (BarOption != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(BarOption);
}
if (ProgressWheelOption != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(ProgressWheelOption);
}
if (ShowProgress != false) {
size += 1 + 1;
}
if (inventoryOption_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(InventoryOption);
}
if (inventoryOption1_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(InventoryOption1);
}
if (inventoryOption2_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(InventoryOption2);
}
if (Bar1Option != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Bar1Option);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(RoomHudData other) {
if (other == null) {
return;
}
if (other.TitleOption != 0) {
TitleOption = other.TitleOption;
}
if (other.SubtitleOption != 0) {
SubtitleOption = other.SubtitleOption;
}
if (other.BarOption != 0) {
BarOption = other.BarOption;
}
if (other.ProgressWheelOption != 0) {
ProgressWheelOption = other.ProgressWheelOption;
}
if (other.ShowProgress != false) {
ShowProgress = other.ShowProgress;
}
if (other.inventoryOption_ != null) {
if (inventoryOption_ == null) {
InventoryOption = new global::CircuitsV2.Protobuf.RoomHudInventoryData();
}
InventoryOption.MergeFrom(other.InventoryOption);
}
if (other.inventoryOption1_ != null) {
if (inventoryOption1_ == null) {
InventoryOption1 = new global::CircuitsV2.Protobuf.RoomHudInventoryData();
}
InventoryOption1.MergeFrom(other.InventoryOption1);
}
if (other.inventoryOption2_ != null) {
if (inventoryOption2_ == null) {
InventoryOption2 = new global::CircuitsV2.Protobuf.RoomHudInventoryData();
}
InventoryOption2.MergeFrom(other.InventoryOption2);
}
if (other.Bar1Option != 0) {
Bar1Option = other.Bar1Option;
}
_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) {
if ((tag & 7) == 4) {
// Abort on any end group tag.
return;
}
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 8: {
TitleOption = input.ReadInt32();
break;
}
case 16: {
SubtitleOption = input.ReadInt32();
break;
}
case 24: {
BarOption = input.ReadInt32();
break;
}
case 32: {
ProgressWheelOption = input.ReadInt32();
break;
}
case 40: {
ShowProgress = input.ReadBool();
break;
}
case 50: {
if (inventoryOption_ == null) {
InventoryOption = new global::CircuitsV2.Protobuf.RoomHudInventoryData();
}
input.ReadMessage(InventoryOption);
break;
}
case 58: {
if (inventoryOption1_ == null) {
InventoryOption1 = new global::CircuitsV2.Protobuf.RoomHudInventoryData();
}
input.ReadMessage(InventoryOption1);
break;
}
case 66: {
if (inventoryOption2_ == null) {
InventoryOption2 = new global::CircuitsV2.Protobuf.RoomHudInventoryData();
}
input.ReadMessage(InventoryOption2);
break;
}
case 72: {
Bar1Option = input.ReadInt32();
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) {
if ((tag & 7) == 4) {
// Abort on any end group tag.
return;
}
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 8: {
TitleOption = input.ReadInt32();
break;
}
case 16: {
SubtitleOption = input.ReadInt32();
break;
}
case 24: {
BarOption = input.ReadInt32();
break;
}
case 32: {
ProgressWheelOption = input.ReadInt32();
break;
}
case 40: {
ShowProgress = input.ReadBool();
break;
}
case 50: {
if (inventoryOption_ == null) {
InventoryOption = new global::CircuitsV2.Protobuf.RoomHudInventoryData();
}
input.ReadMessage(InventoryOption);
break;
}
case 58: {
if (inventoryOption1_ == null) {
InventoryOption1 = new global::CircuitsV2.Protobuf.RoomHudInventoryData();
}
input.ReadMessage(InventoryOption1);
break;
}
case 66: {
if (inventoryOption2_ == null) {
InventoryOption2 = new global::CircuitsV2.Protobuf.RoomHudInventoryData();
}
input.ReadMessage(InventoryOption2);
break;
}
case 72: {
Bar1Option = input.ReadInt32();
break;
}
}
}
}
#endif
}
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
public sealed partial class RoomHudInventoryData : pb::IMessage<RoomHudInventoryData>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<RoomHudInventoryData> _parser = new pb::MessageParser<RoomHudInventoryData>(() => new RoomHudInventoryData());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<RoomHudInventoryData> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::CircuitsV2.Protobuf.RoomHudDataReflection.Descriptor.MessageTypes[1]; }
}
[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 RoomHudInventoryData() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public RoomHudInventoryData(RoomHudInventoryData other) : this() {
inventoryOption_ = other.inventoryOption_;
roomInventoryOption_ = other.roomInventoryOption_;
showIcon_ = other.showIcon_;
consumableId_ = other.consumableId_ != null ? other.consumableId_.Clone() : null;
currencyId_ = other.currencyId_ != null ? other.currencyId_.Clone() : null;
roomInventoryItemId_ = other.roomInventoryItemId_ != null ? other.roomInventoryItemId_.Clone() : null;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public RoomHudInventoryData Clone() {
return new RoomHudInventoryData(this);
}
/// <summary>Field number for the "inventoryOption" field.</summary>
public const int InventoryOptionFieldNumber = 1;
private int inventoryOption_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int InventoryOption {
get { return inventoryOption_; }
set {
inventoryOption_ = value;
}
}
/// <summary>Field number for the "roomInventoryOption" field.</summary>
public const int RoomInventoryOptionFieldNumber = 2;
private int roomInventoryOption_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int RoomInventoryOption {
get { return roomInventoryOption_; }
set {
roomInventoryOption_ = value;
}
}
/// <summary>Field number for the "showIcon" field.</summary>
public const int ShowIconFieldNumber = 3;
private bool showIcon_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool ShowIcon {
get { return showIcon_; }
set {
showIcon_ = value;
}
}
/// <summary>Field number for the "consumableId" field.</summary>
public const int ConsumableIdFieldNumber = 4;
private global::RecRoom.Protobuf.Core.GuidData consumableId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::RecRoom.Protobuf.Core.GuidData ConsumableId {
get { return consumableId_; }
set {
consumableId_ = value;
}
}
/// <summary>Field number for the "currencyId" field.</summary>
public const int CurrencyIdFieldNumber = 5;
private global::RecRoom.Protobuf.Core.GuidData currencyId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::RecRoom.Protobuf.Core.GuidData CurrencyId {
get { return currencyId_; }
set {
currencyId_ = value;
}
}
/// <summary>Field number for the "roomInventoryItemId" field.</summary>
public const int RoomInventoryItemIdFieldNumber = 6;
private global::RecRoom.Protobuf.Core.GuidData roomInventoryItemId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::RecRoom.Protobuf.Core.GuidData RoomInventoryItemId {
get { return roomInventoryItemId_; }
set {
roomInventoryItemId_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as RoomHudInventoryData);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(RoomHudInventoryData other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (InventoryOption != other.InventoryOption) return false;
if (RoomInventoryOption != other.RoomInventoryOption) return false;
if (ShowIcon != other.ShowIcon) return false;
if (!object.Equals(ConsumableId, other.ConsumableId)) return false;
if (!object.Equals(CurrencyId, other.CurrencyId)) return false;
if (!object.Equals(RoomInventoryItemId, other.RoomInventoryItemId)) 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 (InventoryOption != 0) hash ^= InventoryOption.GetHashCode();
if (RoomInventoryOption != 0) hash ^= RoomInventoryOption.GetHashCode();
if (ShowIcon != false) hash ^= ShowIcon.GetHashCode();
if (consumableId_ != null) hash ^= ConsumableId.GetHashCode();
if (currencyId_ != null) hash ^= CurrencyId.GetHashCode();
if (roomInventoryItemId_ != null) hash ^= RoomInventoryItemId.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 (InventoryOption != 0) {
output.WriteRawTag(8);
output.WriteInt32(InventoryOption);
}
if (RoomInventoryOption != 0) {
output.WriteRawTag(16);
output.WriteInt32(RoomInventoryOption);
}
if (ShowIcon != false) {
output.WriteRawTag(24);
output.WriteBool(ShowIcon);
}
if (consumableId_ != null) {
output.WriteRawTag(34);
output.WriteMessage(ConsumableId);
}
if (currencyId_ != null) {
output.WriteRawTag(42);
output.WriteMessage(CurrencyId);
}
if (roomInventoryItemId_ != null) {
output.WriteRawTag(50);
output.WriteMessage(RoomInventoryItemId);
}
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 (InventoryOption != 0) {
output.WriteRawTag(8);
output.WriteInt32(InventoryOption);
}
if (RoomInventoryOption != 0) {
output.WriteRawTag(16);
output.WriteInt32(RoomInventoryOption);
}
if (ShowIcon != false) {
output.WriteRawTag(24);
output.WriteBool(ShowIcon);
}
if (consumableId_ != null) {
output.WriteRawTag(34);
output.WriteMessage(ConsumableId);
}
if (currencyId_ != null) {
output.WriteRawTag(42);
output.WriteMessage(CurrencyId);
}
if (roomInventoryItemId_ != null) {
output.WriteRawTag(50);
output.WriteMessage(RoomInventoryItemId);
}
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 (InventoryOption != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(InventoryOption);
}
if (RoomInventoryOption != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(RoomInventoryOption);
}
if (ShowIcon != false) {
size += 1 + 1;
}
if (consumableId_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(ConsumableId);
}
if (currencyId_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(CurrencyId);
}
if (roomInventoryItemId_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(RoomInventoryItemId);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(RoomHudInventoryData other) {
if (other == null) {
return;
}
if (other.InventoryOption != 0) {
InventoryOption = other.InventoryOption;
}
if (other.RoomInventoryOption != 0) {
RoomInventoryOption = other.RoomInventoryOption;
}
if (other.ShowIcon != false) {
ShowIcon = other.ShowIcon;
}
if (other.consumableId_ != null) {
if (consumableId_ == null) {
ConsumableId = new global::RecRoom.Protobuf.Core.GuidData();
}
ConsumableId.MergeFrom(other.ConsumableId);
}
if (other.currencyId_ != null) {
if (currencyId_ == null) {
CurrencyId = new global::RecRoom.Protobuf.Core.GuidData();
}
CurrencyId.MergeFrom(other.CurrencyId);
}
if (other.roomInventoryItemId_ != null) {
if (roomInventoryItemId_ == null) {
RoomInventoryItemId = new global::RecRoom.Protobuf.Core.GuidData();
}
RoomInventoryItemId.MergeFrom(other.RoomInventoryItemId);
}
_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) {
if ((tag & 7) == 4) {
// Abort on any end group tag.
return;
}
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 8: {
InventoryOption = input.ReadInt32();
break;
}
case 16: {
RoomInventoryOption = input.ReadInt32();
break;
}
case 24: {
ShowIcon = input.ReadBool();
break;
}
case 34: {
if (consumableId_ == null) {
ConsumableId = new global::RecRoom.Protobuf.Core.GuidData();
}
input.ReadMessage(ConsumableId);
break;
}
case 42: {
if (currencyId_ == null) {
CurrencyId = new global::RecRoom.Protobuf.Core.GuidData();
}
input.ReadMessage(CurrencyId);
break;
}
case 50: {
if (roomInventoryItemId_ == null) {
RoomInventoryItemId = new global::RecRoom.Protobuf.Core.GuidData();
}
input.ReadMessage(RoomInventoryItemId);
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) {
if ((tag & 7) == 4) {
// Abort on any end group tag.
return;
}
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 8: {
InventoryOption = input.ReadInt32();
break;
}
case 16: {
RoomInventoryOption = input.ReadInt32();
break;
}
case 24: {
ShowIcon = input.ReadBool();
break;
}
case 34: {
if (consumableId_ == null) {
ConsumableId = new global::RecRoom.Protobuf.Core.GuidData();
}
input.ReadMessage(ConsumableId);
break;
}
case 42: {
if (currencyId_ == null) {
CurrencyId = new global::RecRoom.Protobuf.Core.GuidData();
}
input.ReadMessage(CurrencyId);
break;
}
case 50: {
if (roomInventoryItemId_ == null) {
RoomInventoryItemId = new global::RecRoom.Protobuf.Core.GuidData();
}
input.ReadMessage(RoomInventoryItemId);
break;
}
}
}
}
#endif
}
#endregion
}
#endregion Designer generated code