// // Generated by the protocol buffer compiler. DO NOT EDIT! // source: rec_room/gameplay/ranged_weapon_data.proto // #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 { /// Holder for reflection information generated from rec_room/gameplay/ranged_weapon_data.proto public static partial class RangedWeaponDataReflection { #region Descriptor /// File descriptor for rec_room/gameplay/ranged_weapon_data.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static RangedWeaponDataReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "CipyZWNfcm9vbS9nYW1lcGxheS9yYW5nZWRfd2VhcG9uX2RhdGEucHJvdG8S", "CHJlY19yb29tIs8CChBSYW5nZWRXZWFwb25EYXRhEh4KFmFtbW9fbWFnYXpp", "bmVfY2FwYWNpdHkYASABKAUSGwoTYW1tb190b3RhbF9jYXBhY2l0eRgCIAEo", "BRImCh5yZXNldF9vbl90b3RhbF9hbW1vX2V4aGF1c3Rpb24YAyABKAgSGQoR", "cHJvamVjdGlsZV9kYW1hZ2UYBCABKAISFAoMcmF0ZV9vZl9maXJlGAUgASgC", "Eh4KFmF1dG9tYXRpY19yYXRlX29mX2ZpcmUYBiABKAISHAoUbWF4X3Byb2pl", "Y3RpbGVfc3BlZWQYByABKAISJgoeY3JpdGljYWxfaGl0X2RhbWFnZV9tdWx0", "aXBsaWVyGAggASgCEh8KF2V4cGxvc2l2ZV9kYW1hZ2VfcmFkaXVzGAkgASgC", "Eh4KFmV4cGxvc2l2ZV9kYW1hZ2VfZGVsYXkYCiABKAJCE6oCEFJlY1Jvb20u", "UHJvdG9idWZiBnByb3RvMw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::RecRoom.Protobuf.RangedWeaponData), global::RecRoom.Protobuf.RangedWeaponData.Parser, new[]{ "AmmoMagazineCapacity", "AmmoTotalCapacity", "ResetOnTotalAmmoExhaustion", "ProjectileDamage", "RateOfFire", "AutomaticRateOfFire", "MaxProjectileSpeed", "CriticalHitDamageMultiplier", "ExplosiveDamageRadius", "ExplosiveDamageDelay" }, null, null, null, null) })); } #endregion } #region Messages [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class RangedWeaponData : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RangedWeaponData()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser 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.RangedWeaponDataReflection.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 RangedWeaponData() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public RangedWeaponData(RangedWeaponData other) : this() { ammoMagazineCapacity_ = other.ammoMagazineCapacity_; ammoTotalCapacity_ = other.ammoTotalCapacity_; resetOnTotalAmmoExhaustion_ = other.resetOnTotalAmmoExhaustion_; projectileDamage_ = other.projectileDamage_; rateOfFire_ = other.rateOfFire_; automaticRateOfFire_ = other.automaticRateOfFire_; maxProjectileSpeed_ = other.maxProjectileSpeed_; criticalHitDamageMultiplier_ = other.criticalHitDamageMultiplier_; explosiveDamageRadius_ = other.explosiveDamageRadius_; explosiveDamageDelay_ = other.explosiveDamageDelay_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public RangedWeaponData Clone() { return new RangedWeaponData(this); } /// Field number for the "ammo_magazine_capacity" field. public const int AmmoMagazineCapacityFieldNumber = 1; private int ammoMagazineCapacity_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int AmmoMagazineCapacity { get { return ammoMagazineCapacity_; } set { ammoMagazineCapacity_ = value; } } /// Field number for the "ammo_total_capacity" field. public const int AmmoTotalCapacityFieldNumber = 2; private int ammoTotalCapacity_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int AmmoTotalCapacity { get { return ammoTotalCapacity_; } set { ammoTotalCapacity_ = value; } } /// Field number for the "reset_on_total_ammo_exhaustion" field. public const int ResetOnTotalAmmoExhaustionFieldNumber = 3; private bool resetOnTotalAmmoExhaustion_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool ResetOnTotalAmmoExhaustion { get { return resetOnTotalAmmoExhaustion_; } set { resetOnTotalAmmoExhaustion_ = value; } } /// Field number for the "projectile_damage" field. public const int ProjectileDamageFieldNumber = 4; private float projectileDamage_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public float ProjectileDamage { get { return projectileDamage_; } set { projectileDamage_ = value; } } /// Field number for the "rate_of_fire" field. public const int RateOfFireFieldNumber = 5; private float rateOfFire_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public float RateOfFire { get { return rateOfFire_; } set { rateOfFire_ = value; } } /// Field number for the "automatic_rate_of_fire" field. public const int AutomaticRateOfFireFieldNumber = 6; private float automaticRateOfFire_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public float AutomaticRateOfFire { get { return automaticRateOfFire_; } set { automaticRateOfFire_ = value; } } /// Field number for the "max_projectile_speed" field. public const int MaxProjectileSpeedFieldNumber = 7; private float maxProjectileSpeed_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public float MaxProjectileSpeed { get { return maxProjectileSpeed_; } set { maxProjectileSpeed_ = value; } } /// Field number for the "critical_hit_damage_multiplier" field. public const int CriticalHitDamageMultiplierFieldNumber = 8; private float criticalHitDamageMultiplier_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public float CriticalHitDamageMultiplier { get { return criticalHitDamageMultiplier_; } set { criticalHitDamageMultiplier_ = value; } } /// Field number for the "explosive_damage_radius" field. public const int ExplosiveDamageRadiusFieldNumber = 9; private float explosiveDamageRadius_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public float ExplosiveDamageRadius { get { return explosiveDamageRadius_; } set { explosiveDamageRadius_ = value; } } /// Field number for the "explosive_damage_delay" field. public const int ExplosiveDamageDelayFieldNumber = 10; private float explosiveDamageDelay_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public float ExplosiveDamageDelay { get { return explosiveDamageDelay_; } set { explosiveDamageDelay_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as RangedWeaponData); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(RangedWeaponData other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (AmmoMagazineCapacity != other.AmmoMagazineCapacity) return false; if (AmmoTotalCapacity != other.AmmoTotalCapacity) return false; if (ResetOnTotalAmmoExhaustion != other.ResetOnTotalAmmoExhaustion) return false; if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(ProjectileDamage, other.ProjectileDamage)) return false; if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(RateOfFire, other.RateOfFire)) return false; if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(AutomaticRateOfFire, other.AutomaticRateOfFire)) return false; if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(MaxProjectileSpeed, other.MaxProjectileSpeed)) return false; if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(CriticalHitDamageMultiplier, other.CriticalHitDamageMultiplier)) return false; if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(ExplosiveDamageRadius, other.ExplosiveDamageRadius)) return false; if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(ExplosiveDamageDelay, other.ExplosiveDamageDelay)) 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 (AmmoMagazineCapacity != 0) hash ^= AmmoMagazineCapacity.GetHashCode(); if (AmmoTotalCapacity != 0) hash ^= AmmoTotalCapacity.GetHashCode(); if (ResetOnTotalAmmoExhaustion != false) hash ^= ResetOnTotalAmmoExhaustion.GetHashCode(); if (ProjectileDamage != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(ProjectileDamage); if (RateOfFire != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(RateOfFire); if (AutomaticRateOfFire != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(AutomaticRateOfFire); if (MaxProjectileSpeed != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(MaxProjectileSpeed); if (CriticalHitDamageMultiplier != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(CriticalHitDamageMultiplier); if (ExplosiveDamageRadius != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(ExplosiveDamageRadius); if (ExplosiveDamageDelay != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(ExplosiveDamageDelay); 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 (AmmoMagazineCapacity != 0) { output.WriteRawTag(8); output.WriteInt32(AmmoMagazineCapacity); } if (AmmoTotalCapacity != 0) { output.WriteRawTag(16); output.WriteInt32(AmmoTotalCapacity); } if (ResetOnTotalAmmoExhaustion != false) { output.WriteRawTag(24); output.WriteBool(ResetOnTotalAmmoExhaustion); } if (ProjectileDamage != 0F) { output.WriteRawTag(37); output.WriteFloat(ProjectileDamage); } if (RateOfFire != 0F) { output.WriteRawTag(45); output.WriteFloat(RateOfFire); } if (AutomaticRateOfFire != 0F) { output.WriteRawTag(53); output.WriteFloat(AutomaticRateOfFire); } if (MaxProjectileSpeed != 0F) { output.WriteRawTag(61); output.WriteFloat(MaxProjectileSpeed); } if (CriticalHitDamageMultiplier != 0F) { output.WriteRawTag(69); output.WriteFloat(CriticalHitDamageMultiplier); } if (ExplosiveDamageRadius != 0F) { output.WriteRawTag(77); output.WriteFloat(ExplosiveDamageRadius); } if (ExplosiveDamageDelay != 0F) { output.WriteRawTag(85); output.WriteFloat(ExplosiveDamageDelay); } 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 (AmmoMagazineCapacity != 0) { output.WriteRawTag(8); output.WriteInt32(AmmoMagazineCapacity); } if (AmmoTotalCapacity != 0) { output.WriteRawTag(16); output.WriteInt32(AmmoTotalCapacity); } if (ResetOnTotalAmmoExhaustion != false) { output.WriteRawTag(24); output.WriteBool(ResetOnTotalAmmoExhaustion); } if (ProjectileDamage != 0F) { output.WriteRawTag(37); output.WriteFloat(ProjectileDamage); } if (RateOfFire != 0F) { output.WriteRawTag(45); output.WriteFloat(RateOfFire); } if (AutomaticRateOfFire != 0F) { output.WriteRawTag(53); output.WriteFloat(AutomaticRateOfFire); } if (MaxProjectileSpeed != 0F) { output.WriteRawTag(61); output.WriteFloat(MaxProjectileSpeed); } if (CriticalHitDamageMultiplier != 0F) { output.WriteRawTag(69); output.WriteFloat(CriticalHitDamageMultiplier); } if (ExplosiveDamageRadius != 0F) { output.WriteRawTag(77); output.WriteFloat(ExplosiveDamageRadius); } if (ExplosiveDamageDelay != 0F) { output.WriteRawTag(85); output.WriteFloat(ExplosiveDamageDelay); } 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 (AmmoMagazineCapacity != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(AmmoMagazineCapacity); } if (AmmoTotalCapacity != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(AmmoTotalCapacity); } if (ResetOnTotalAmmoExhaustion != false) { size += 1 + 1; } if (ProjectileDamage != 0F) { size += 1 + 4; } if (RateOfFire != 0F) { size += 1 + 4; } if (AutomaticRateOfFire != 0F) { size += 1 + 4; } if (MaxProjectileSpeed != 0F) { size += 1 + 4; } if (CriticalHitDamageMultiplier != 0F) { size += 1 + 4; } if (ExplosiveDamageRadius != 0F) { size += 1 + 4; } if (ExplosiveDamageDelay != 0F) { size += 1 + 4; } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(RangedWeaponData other) { if (other == null) { return; } if (other.AmmoMagazineCapacity != 0) { AmmoMagazineCapacity = other.AmmoMagazineCapacity; } if (other.AmmoTotalCapacity != 0) { AmmoTotalCapacity = other.AmmoTotalCapacity; } if (other.ResetOnTotalAmmoExhaustion != false) { ResetOnTotalAmmoExhaustion = other.ResetOnTotalAmmoExhaustion; } if (other.ProjectileDamage != 0F) { ProjectileDamage = other.ProjectileDamage; } if (other.RateOfFire != 0F) { RateOfFire = other.RateOfFire; } if (other.AutomaticRateOfFire != 0F) { AutomaticRateOfFire = other.AutomaticRateOfFire; } if (other.MaxProjectileSpeed != 0F) { MaxProjectileSpeed = other.MaxProjectileSpeed; } if (other.CriticalHitDamageMultiplier != 0F) { CriticalHitDamageMultiplier = other.CriticalHitDamageMultiplier; } if (other.ExplosiveDamageRadius != 0F) { ExplosiveDamageRadius = other.ExplosiveDamageRadius; } if (other.ExplosiveDamageDelay != 0F) { ExplosiveDamageDelay = other.ExplosiveDamageDelay; } _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: { AmmoMagazineCapacity = input.ReadInt32(); break; } case 16: { AmmoTotalCapacity = input.ReadInt32(); break; } case 24: { ResetOnTotalAmmoExhaustion = input.ReadBool(); break; } case 37: { ProjectileDamage = input.ReadFloat(); break; } case 45: { RateOfFire = input.ReadFloat(); break; } case 53: { AutomaticRateOfFire = input.ReadFloat(); break; } case 61: { MaxProjectileSpeed = input.ReadFloat(); break; } case 69: { CriticalHitDamageMultiplier = input.ReadFloat(); break; } case 77: { ExplosiveDamageRadius = input.ReadFloat(); break; } case 85: { ExplosiveDamageDelay = input.ReadFloat(); 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: { AmmoMagazineCapacity = input.ReadInt32(); break; } case 16: { AmmoTotalCapacity = input.ReadInt32(); break; } case 24: { ResetOnTotalAmmoExhaustion = input.ReadBool(); break; } case 37: { ProjectileDamage = input.ReadFloat(); break; } case 45: { RateOfFire = input.ReadFloat(); break; } case 53: { AutomaticRateOfFire = input.ReadFloat(); break; } case 61: { MaxProjectileSpeed = input.ReadFloat(); break; } case 69: { CriticalHitDamageMultiplier = input.ReadFloat(); break; } case 77: { ExplosiveDamageRadius = input.ReadFloat(); break; } case 85: { ExplosiveDamageDelay = input.ReadFloat(); break; } } } } #endif } #endregion } #endregion Designer generated code