// // Generated by the protocol buffer compiler. DO NOT EDIT! // source: circuits_v2/projectile_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 CircuitsV2.Protobuf { /// Holder for reflection information generated from circuits_v2/projectile_data.proto public static partial class ProjectileDataReflection { #region Descriptor /// File descriptor for circuits_v2/projectile_data.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static ProjectileDataReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "CiFjaXJjdWl0c192Mi9wcm9qZWN0aWxlX2RhdGEucHJvdG8SC2NpcmN1aXRz", "X3YyGhRjb3JlL2d1aWRfZGF0YS5wcm90byJtChRQcm9qZWN0aWxlRGFtYWdl", "RGF0YRITCgtoZWFkX2RhbWFnZRgBIAEoBRIUCgx0b3Jzb19kYW1hZ2UYAiAB", "KAUSEwoLaGFuZF9kYW1hZ2UYAyABKAUSFQoNb2JqZWN0X2RhbWFnZRgEIAEo", "BSL+AQoOUHJvamVjdGlsZURhdGESHAoEZ3VpZBgBIAEoCzIOLmNvcmUuR3Vp", "ZERhdGESEwoLY29sb3JfaW5kZXgYAiABKAUSDQoFc3BlZWQYAyABKAISGAoQ", "bGlmZXRpbWVfc2Vjb25kcxgEIAEoAhIPCgdncmF2aXR5GAUgASgIEjEKBmRh", "bWFnZRgGIAEoCzIhLmNpcmN1aXRzX3YyLlByb2plY3RpbGVEYW1hZ2VEYXRh", "Eg0KBWNvdW50GAcgASgFEg0KBWFuZ2xlGAggASgCEg0KBWZvcmNlGAkgASgC", "Eh8KF3NlbGZfY29sbGlzaW9uc19lbmFibGVkGAogASgIQhaqAhNDaXJjdWl0", "c1YyLlByb3RvYnVmYgZwcm90bzM=")); 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.ProjectileDamageData), global::CircuitsV2.Protobuf.ProjectileDamageData.Parser, new[]{ "HeadDamage", "TorsoDamage", "HandDamage", "ObjectDamage" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::CircuitsV2.Protobuf.ProjectileData), global::CircuitsV2.Protobuf.ProjectileData.Parser, new[]{ "Guid", "ColorIndex", "Speed", "LifetimeSeconds", "Gravity", "Damage", "Count", "Angle", "Force", "SelfCollisionsEnabled" }, null, null, null, null) })); } #endregion } #region Messages [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class ProjectileDamageData : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ProjectileDamageData()); 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::CircuitsV2.Protobuf.ProjectileDataReflection.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 ProjectileDamageData() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ProjectileDamageData(ProjectileDamageData other) : this() { headDamage_ = other.headDamage_; torsoDamage_ = other.torsoDamage_; handDamage_ = other.handDamage_; objectDamage_ = other.objectDamage_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ProjectileDamageData Clone() { return new ProjectileDamageData(this); } /// Field number for the "head_damage" field. public const int HeadDamageFieldNumber = 1; private int headDamage_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int HeadDamage { get { return headDamage_; } set { headDamage_ = value; } } /// Field number for the "torso_damage" field. public const int TorsoDamageFieldNumber = 2; private int torsoDamage_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int TorsoDamage { get { return torsoDamage_; } set { torsoDamage_ = value; } } /// Field number for the "hand_damage" field. public const int HandDamageFieldNumber = 3; private int handDamage_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int HandDamage { get { return handDamage_; } set { handDamage_ = value; } } /// Field number for the "object_damage" field. public const int ObjectDamageFieldNumber = 4; private int objectDamage_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int ObjectDamage { get { return objectDamage_; } set { objectDamage_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as ProjectileDamageData); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(ProjectileDamageData other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (HeadDamage != other.HeadDamage) return false; if (TorsoDamage != other.TorsoDamage) return false; if (HandDamage != other.HandDamage) return false; if (ObjectDamage != other.ObjectDamage) 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 (HeadDamage != 0) hash ^= HeadDamage.GetHashCode(); if (TorsoDamage != 0) hash ^= TorsoDamage.GetHashCode(); if (HandDamage != 0) hash ^= HandDamage.GetHashCode(); if (ObjectDamage != 0) hash ^= ObjectDamage.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 (HeadDamage != 0) { output.WriteRawTag(8); output.WriteInt32(HeadDamage); } if (TorsoDamage != 0) { output.WriteRawTag(16); output.WriteInt32(TorsoDamage); } if (HandDamage != 0) { output.WriteRawTag(24); output.WriteInt32(HandDamage); } if (ObjectDamage != 0) { output.WriteRawTag(32); output.WriteInt32(ObjectDamage); } 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 (HeadDamage != 0) { output.WriteRawTag(8); output.WriteInt32(HeadDamage); } if (TorsoDamage != 0) { output.WriteRawTag(16); output.WriteInt32(TorsoDamage); } if (HandDamage != 0) { output.WriteRawTag(24); output.WriteInt32(HandDamage); } if (ObjectDamage != 0) { output.WriteRawTag(32); output.WriteInt32(ObjectDamage); } 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 (HeadDamage != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(HeadDamage); } if (TorsoDamage != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(TorsoDamage); } if (HandDamage != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(HandDamage); } if (ObjectDamage != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(ObjectDamage); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(ProjectileDamageData other) { if (other == null) { return; } if (other.HeadDamage != 0) { HeadDamage = other.HeadDamage; } if (other.TorsoDamage != 0) { TorsoDamage = other.TorsoDamage; } if (other.HandDamage != 0) { HandDamage = other.HandDamage; } if (other.ObjectDamage != 0) { ObjectDamage = other.ObjectDamage; } _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: { HeadDamage = input.ReadInt32(); break; } case 16: { TorsoDamage = input.ReadInt32(); break; } case 24: { HandDamage = input.ReadInt32(); break; } case 32: { ObjectDamage = 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: { HeadDamage = input.ReadInt32(); break; } case 16: { TorsoDamage = input.ReadInt32(); break; } case 24: { HandDamage = input.ReadInt32(); break; } case 32: { ObjectDamage = input.ReadInt32(); break; } } } } #endif } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class ProjectileData : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ProjectileData()); 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::CircuitsV2.Protobuf.ProjectileDataReflection.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 ProjectileData() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ProjectileData(ProjectileData other) : this() { guid_ = other.guid_ != null ? other.guid_.Clone() : null; colorIndex_ = other.colorIndex_; speed_ = other.speed_; lifetimeSeconds_ = other.lifetimeSeconds_; gravity_ = other.gravity_; damage_ = other.damage_ != null ? other.damage_.Clone() : null; count_ = other.count_; angle_ = other.angle_; force_ = other.force_; selfCollisionsEnabled_ = other.selfCollisionsEnabled_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ProjectileData Clone() { return new ProjectileData(this); } /// Field number for the "guid" field. public const int GuidFieldNumber = 1; private global::RecRoom.Protobuf.Core.GuidData guid_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::RecRoom.Protobuf.Core.GuidData Guid { get { return guid_; } set { guid_ = value; } } /// Field number for the "color_index" field. public const int ColorIndexFieldNumber = 2; private int colorIndex_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int ColorIndex { get { return colorIndex_; } set { colorIndex_ = value; } } /// Field number for the "speed" field. public const int SpeedFieldNumber = 3; private float speed_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public float Speed { get { return speed_; } set { speed_ = value; } } /// Field number for the "lifetime_seconds" field. public const int LifetimeSecondsFieldNumber = 4; private float lifetimeSeconds_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public float LifetimeSeconds { get { return lifetimeSeconds_; } set { lifetimeSeconds_ = value; } } /// Field number for the "gravity" field. public const int GravityFieldNumber = 5; private bool gravity_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Gravity { get { return gravity_; } set { gravity_ = value; } } /// Field number for the "damage" field. public const int DamageFieldNumber = 6; private global::CircuitsV2.Protobuf.ProjectileDamageData damage_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::CircuitsV2.Protobuf.ProjectileDamageData Damage { get { return damage_; } set { damage_ = value; } } /// Field number for the "count" field. public const int CountFieldNumber = 7; private int count_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int Count { get { return count_; } set { count_ = value; } } /// Field number for the "angle" field. public const int AngleFieldNumber = 8; private float angle_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public float Angle { get { return angle_; } set { angle_ = value; } } /// Field number for the "force" field. public const int ForceFieldNumber = 9; private float force_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public float Force { get { return force_; } set { force_ = value; } } /// Field number for the "self_collisions_enabled" field. public const int SelfCollisionsEnabledFieldNumber = 10; private bool selfCollisionsEnabled_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool SelfCollisionsEnabled { get { return selfCollisionsEnabled_; } set { selfCollisionsEnabled_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as ProjectileData); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(ProjectileData other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Guid, other.Guid)) return false; if (ColorIndex != other.ColorIndex) return false; if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Speed, other.Speed)) return false; if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(LifetimeSeconds, other.LifetimeSeconds)) return false; if (Gravity != other.Gravity) return false; if (!object.Equals(Damage, other.Damage)) return false; if (Count != other.Count) return false; if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Angle, other.Angle)) return false; if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Force, other.Force)) return false; if (SelfCollisionsEnabled != other.SelfCollisionsEnabled) 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 (guid_ != null) hash ^= Guid.GetHashCode(); if (ColorIndex != 0) hash ^= ColorIndex.GetHashCode(); if (Speed != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Speed); if (LifetimeSeconds != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(LifetimeSeconds); if (Gravity != false) hash ^= Gravity.GetHashCode(); if (damage_ != null) hash ^= Damage.GetHashCode(); if (Count != 0) hash ^= Count.GetHashCode(); if (Angle != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Angle); if (Force != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Force); if (SelfCollisionsEnabled != false) hash ^= SelfCollisionsEnabled.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 (guid_ != null) { output.WriteRawTag(10); output.WriteMessage(Guid); } if (ColorIndex != 0) { output.WriteRawTag(16); output.WriteInt32(ColorIndex); } if (Speed != 0F) { output.WriteRawTag(29); output.WriteFloat(Speed); } if (LifetimeSeconds != 0F) { output.WriteRawTag(37); output.WriteFloat(LifetimeSeconds); } if (Gravity != false) { output.WriteRawTag(40); output.WriteBool(Gravity); } if (damage_ != null) { output.WriteRawTag(50); output.WriteMessage(Damage); } if (Count != 0) { output.WriteRawTag(56); output.WriteInt32(Count); } if (Angle != 0F) { output.WriteRawTag(69); output.WriteFloat(Angle); } if (Force != 0F) { output.WriteRawTag(77); output.WriteFloat(Force); } if (SelfCollisionsEnabled != false) { output.WriteRawTag(80); output.WriteBool(SelfCollisionsEnabled); } 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 (guid_ != null) { output.WriteRawTag(10); output.WriteMessage(Guid); } if (ColorIndex != 0) { output.WriteRawTag(16); output.WriteInt32(ColorIndex); } if (Speed != 0F) { output.WriteRawTag(29); output.WriteFloat(Speed); } if (LifetimeSeconds != 0F) { output.WriteRawTag(37); output.WriteFloat(LifetimeSeconds); } if (Gravity != false) { output.WriteRawTag(40); output.WriteBool(Gravity); } if (damage_ != null) { output.WriteRawTag(50); output.WriteMessage(Damage); } if (Count != 0) { output.WriteRawTag(56); output.WriteInt32(Count); } if (Angle != 0F) { output.WriteRawTag(69); output.WriteFloat(Angle); } if (Force != 0F) { output.WriteRawTag(77); output.WriteFloat(Force); } if (SelfCollisionsEnabled != false) { output.WriteRawTag(80); output.WriteBool(SelfCollisionsEnabled); } 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 (guid_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Guid); } if (ColorIndex != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(ColorIndex); } if (Speed != 0F) { size += 1 + 4; } if (LifetimeSeconds != 0F) { size += 1 + 4; } if (Gravity != false) { size += 1 + 1; } if (damage_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Damage); } if (Count != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Count); } if (Angle != 0F) { size += 1 + 4; } if (Force != 0F) { size += 1 + 4; } if (SelfCollisionsEnabled != false) { size += 1 + 1; } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(ProjectileData other) { if (other == null) { return; } if (other.guid_ != null) { if (guid_ == null) { Guid = new global::RecRoom.Protobuf.Core.GuidData(); } Guid.MergeFrom(other.Guid); } if (other.ColorIndex != 0) { ColorIndex = other.ColorIndex; } if (other.Speed != 0F) { Speed = other.Speed; } if (other.LifetimeSeconds != 0F) { LifetimeSeconds = other.LifetimeSeconds; } if (other.Gravity != false) { Gravity = other.Gravity; } if (other.damage_ != null) { if (damage_ == null) { Damage = new global::CircuitsV2.Protobuf.ProjectileDamageData(); } Damage.MergeFrom(other.Damage); } if (other.Count != 0) { Count = other.Count; } if (other.Angle != 0F) { Angle = other.Angle; } if (other.Force != 0F) { Force = other.Force; } if (other.SelfCollisionsEnabled != false) { SelfCollisionsEnabled = other.SelfCollisionsEnabled; } _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 10: { if (guid_ == null) { Guid = new global::RecRoom.Protobuf.Core.GuidData(); } input.ReadMessage(Guid); break; } case 16: { ColorIndex = input.ReadInt32(); break; } case 29: { Speed = input.ReadFloat(); break; } case 37: { LifetimeSeconds = input.ReadFloat(); break; } case 40: { Gravity = input.ReadBool(); break; } case 50: { if (damage_ == null) { Damage = new global::CircuitsV2.Protobuf.ProjectileDamageData(); } input.ReadMessage(Damage); break; } case 56: { Count = input.ReadInt32(); break; } case 69: { Angle = input.ReadFloat(); break; } case 77: { Force = input.ReadFloat(); break; } case 80: { SelfCollisionsEnabled = input.ReadBool(); 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 10: { if (guid_ == null) { Guid = new global::RecRoom.Protobuf.Core.GuidData(); } input.ReadMessage(Guid); break; } case 16: { ColorIndex = input.ReadInt32(); break; } case 29: { Speed = input.ReadFloat(); break; } case 37: { LifetimeSeconds = input.ReadFloat(); break; } case 40: { Gravity = input.ReadBool(); break; } case 50: { if (damage_ == null) { Damage = new global::CircuitsV2.Protobuf.ProjectileDamageData(); } input.ReadMessage(Damage); break; } case 56: { Count = input.ReadInt32(); break; } case 69: { Angle = input.ReadFloat(); break; } case 77: { Force = input.ReadFloat(); break; } case 80: { SelfCollisionsEnabled = input.ReadBool(); break; } } } } #endif } #endregion } #endregion Designer generated code