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

425 lines
16 KiB
C#

// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: rec_room/persistence/spawn_point_v2_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 RecRoom.Protobuf {
/// <summary>Holder for reflection information generated from rec_room/persistence/spawn_point_v2_data.proto</summary>
public static partial class SpawnPointV2DataReflection {
#region Descriptor
/// <summary>File descriptor for rec_room/persistence/spawn_point_v2_data.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static SpawnPointV2DataReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"Ci5yZWNfcm9vbS9wZXJzaXN0ZW5jZS9zcGF3bl9wb2ludF92Ml9kYXRhLnBy",
"b3RvEghyZWNfcm9vbSK5AQoQU3Bhd25Qb2ludFYyRGF0YRIaChJzcGF3bl9w",
"b2ludF9hY3RpdmUYASABKAgSFAoMc3Bhd25fcmFkaXVzGAIgASgCEhUKDWhh",
"emFyZF9yYWRpdXMYAyABKAISFQoNdGFnc190b19zcGF3bhgEIAMoCRIVCg10",
"YWdzX3RvX2F2b2lkGAUgAygJEhYKDnJvbGVzX3RvX3NwYXduGAYgAygJEhYK",
"DnJvbGVzX3RvX2F2b2lkGAcgAygJQhOqAhBSZWNSb29tLlByb3RvYnVmYgZw",
"cm90bzM="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::RecRoom.Protobuf.SpawnPointV2Data), global::RecRoom.Protobuf.SpawnPointV2Data.Parser, new[]{ "SpawnPointActive", "SpawnRadius", "HazardRadius", "TagsToSpawn", "TagsToAvoid", "RolesToSpawn", "RolesToAvoid" }, null, null, null, null)
}));
}
#endregion
}
#region Messages
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
public sealed partial class SpawnPointV2Data : pb::IMessage<SpawnPointV2Data>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<SpawnPointV2Data> _parser = new pb::MessageParser<SpawnPointV2Data>(() => new SpawnPointV2Data());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<SpawnPointV2Data> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::RecRoom.Protobuf.SpawnPointV2DataReflection.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 SpawnPointV2Data() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public SpawnPointV2Data(SpawnPointV2Data other) : this() {
spawnPointActive_ = other.spawnPointActive_;
spawnRadius_ = other.spawnRadius_;
hazardRadius_ = other.hazardRadius_;
tagsToSpawn_ = other.tagsToSpawn_.Clone();
tagsToAvoid_ = other.tagsToAvoid_.Clone();
rolesToSpawn_ = other.rolesToSpawn_.Clone();
rolesToAvoid_ = other.rolesToAvoid_.Clone();
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public SpawnPointV2Data Clone() {
return new SpawnPointV2Data(this);
}
/// <summary>Field number for the "spawn_point_active" field.</summary>
public const int SpawnPointActiveFieldNumber = 1;
private bool spawnPointActive_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool SpawnPointActive {
get { return spawnPointActive_; }
set {
spawnPointActive_ = value;
}
}
/// <summary>Field number for the "spawn_radius" field.</summary>
public const int SpawnRadiusFieldNumber = 2;
private float spawnRadius_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public float SpawnRadius {
get { return spawnRadius_; }
set {
spawnRadius_ = value;
}
}
/// <summary>Field number for the "hazard_radius" field.</summary>
public const int HazardRadiusFieldNumber = 3;
private float hazardRadius_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public float HazardRadius {
get { return hazardRadius_; }
set {
hazardRadius_ = value;
}
}
/// <summary>Field number for the "tags_to_spawn" field.</summary>
public const int TagsToSpawnFieldNumber = 4;
private static readonly pb::FieldCodec<string> _repeated_tagsToSpawn_codec
= pb::FieldCodec.ForString(34);
private readonly pbc::RepeatedField<string> tagsToSpawn_ = new pbc::RepeatedField<string>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField<string> TagsToSpawn {
get { return tagsToSpawn_; }
}
/// <summary>Field number for the "tags_to_avoid" field.</summary>
public const int TagsToAvoidFieldNumber = 5;
private static readonly pb::FieldCodec<string> _repeated_tagsToAvoid_codec
= pb::FieldCodec.ForString(42);
private readonly pbc::RepeatedField<string> tagsToAvoid_ = new pbc::RepeatedField<string>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField<string> TagsToAvoid {
get { return tagsToAvoid_; }
}
/// <summary>Field number for the "roles_to_spawn" field.</summary>
public const int RolesToSpawnFieldNumber = 6;
private static readonly pb::FieldCodec<string> _repeated_rolesToSpawn_codec
= pb::FieldCodec.ForString(50);
private readonly pbc::RepeatedField<string> rolesToSpawn_ = new pbc::RepeatedField<string>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField<string> RolesToSpawn {
get { return rolesToSpawn_; }
}
/// <summary>Field number for the "roles_to_avoid" field.</summary>
public const int RolesToAvoidFieldNumber = 7;
private static readonly pb::FieldCodec<string> _repeated_rolesToAvoid_codec
= pb::FieldCodec.ForString(58);
private readonly pbc::RepeatedField<string> rolesToAvoid_ = new pbc::RepeatedField<string>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField<string> RolesToAvoid {
get { return rolesToAvoid_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as SpawnPointV2Data);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(SpawnPointV2Data other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (SpawnPointActive != other.SpawnPointActive) return false;
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(SpawnRadius, other.SpawnRadius)) return false;
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(HazardRadius, other.HazardRadius)) return false;
if(!tagsToSpawn_.Equals(other.tagsToSpawn_)) return false;
if(!tagsToAvoid_.Equals(other.tagsToAvoid_)) return false;
if(!rolesToSpawn_.Equals(other.rolesToSpawn_)) return false;
if(!rolesToAvoid_.Equals(other.rolesToAvoid_)) 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 (SpawnPointActive != false) hash ^= SpawnPointActive.GetHashCode();
if (SpawnRadius != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(SpawnRadius);
if (HazardRadius != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(HazardRadius);
hash ^= tagsToSpawn_.GetHashCode();
hash ^= tagsToAvoid_.GetHashCode();
hash ^= rolesToSpawn_.GetHashCode();
hash ^= rolesToAvoid_.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 (SpawnPointActive != false) {
output.WriteRawTag(8);
output.WriteBool(SpawnPointActive);
}
if (SpawnRadius != 0F) {
output.WriteRawTag(21);
output.WriteFloat(SpawnRadius);
}
if (HazardRadius != 0F) {
output.WriteRawTag(29);
output.WriteFloat(HazardRadius);
}
tagsToSpawn_.WriteTo(output, _repeated_tagsToSpawn_codec);
tagsToAvoid_.WriteTo(output, _repeated_tagsToAvoid_codec);
rolesToSpawn_.WriteTo(output, _repeated_rolesToSpawn_codec);
rolesToAvoid_.WriteTo(output, _repeated_rolesToAvoid_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 (SpawnPointActive != false) {
output.WriteRawTag(8);
output.WriteBool(SpawnPointActive);
}
if (SpawnRadius != 0F) {
output.WriteRawTag(21);
output.WriteFloat(SpawnRadius);
}
if (HazardRadius != 0F) {
output.WriteRawTag(29);
output.WriteFloat(HazardRadius);
}
tagsToSpawn_.WriteTo(ref output, _repeated_tagsToSpawn_codec);
tagsToAvoid_.WriteTo(ref output, _repeated_tagsToAvoid_codec);
rolesToSpawn_.WriteTo(ref output, _repeated_rolesToSpawn_codec);
rolesToAvoid_.WriteTo(ref output, _repeated_rolesToAvoid_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 (SpawnPointActive != false) {
size += 1 + 1;
}
if (SpawnRadius != 0F) {
size += 1 + 4;
}
if (HazardRadius != 0F) {
size += 1 + 4;
}
size += tagsToSpawn_.CalculateSize(_repeated_tagsToSpawn_codec);
size += tagsToAvoid_.CalculateSize(_repeated_tagsToAvoid_codec);
size += rolesToSpawn_.CalculateSize(_repeated_rolesToSpawn_codec);
size += rolesToAvoid_.CalculateSize(_repeated_rolesToAvoid_codec);
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(SpawnPointV2Data other) {
if (other == null) {
return;
}
if (other.SpawnPointActive != false) {
SpawnPointActive = other.SpawnPointActive;
}
if (other.SpawnRadius != 0F) {
SpawnRadius = other.SpawnRadius;
}
if (other.HazardRadius != 0F) {
HazardRadius = other.HazardRadius;
}
tagsToSpawn_.Add(other.tagsToSpawn_);
tagsToAvoid_.Add(other.tagsToAvoid_);
rolesToSpawn_.Add(other.rolesToSpawn_);
rolesToAvoid_.Add(other.rolesToAvoid_);
_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: {
SpawnPointActive = input.ReadBool();
break;
}
case 21: {
SpawnRadius = input.ReadFloat();
break;
}
case 29: {
HazardRadius = input.ReadFloat();
break;
}
case 34: {
tagsToSpawn_.AddEntriesFrom(input, _repeated_tagsToSpawn_codec);
break;
}
case 42: {
tagsToAvoid_.AddEntriesFrom(input, _repeated_tagsToAvoid_codec);
break;
}
case 50: {
rolesToSpawn_.AddEntriesFrom(input, _repeated_rolesToSpawn_codec);
break;
}
case 58: {
rolesToAvoid_.AddEntriesFrom(input, _repeated_rolesToAvoid_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) {
if ((tag & 7) == 4) {
// Abort on any end group tag.
return;
}
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 8: {
SpawnPointActive = input.ReadBool();
break;
}
case 21: {
SpawnRadius = input.ReadFloat();
break;
}
case 29: {
HazardRadius = input.ReadFloat();
break;
}
case 34: {
tagsToSpawn_.AddEntriesFrom(ref input, _repeated_tagsToSpawn_codec);
break;
}
case 42: {
tagsToAvoid_.AddEntriesFrom(ref input, _repeated_tagsToAvoid_codec);
break;
}
case 50: {
rolesToSpawn_.AddEntriesFrom(ref input, _repeated_rolesToSpawn_codec);
break;
}
case 58: {
rolesToAvoid_.AddEntriesFrom(ref input, _repeated_rolesToAvoid_codec);
break;
}
}
}
}
#endif
}
#endregion
}
#endregion Designer generated code