< Summary

Class:Micromissiles.SimulatorConfig
Assembly:bamlab.micromissiles
File(s):/github/workspace/Assets/Scripts/Generated/Protobuf/SimulatorConfig.cs
Covered lines:0
Uncovered lines:184
Coverable lines:184
Total lines:452
Line coverage:0% (0 of 184)
Covered branches:0
Total branches:0
Covered methods:0
Total methods:29
Method coverage:0% (0 of 29)

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
SimulatorConfig()0%2100%
get_Descriptor()0%2100%
SimulatorConfig()0%2100%
SimulatorConfig(...)0%2100%
Clone()0%2100%
Equals(...)0%2100%
Equals(...)0%90900%
GetHashCode()0%72800%
ToString()0%2100%
WriteTo(...)0%2100%
InternalWriteTo(...)0%72800%
CalculateSize()0%72800%
MergeFrom(...)0%72800%
MergeFrom(...)0%2100%
InternalMergeFrom(...)0%1101000%

File(s)

/github/workspace/Assets/Scripts/Generated/Protobuf/SimulatorConfig.cs

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: configs/proto/simulator_config.proto
 4// </auto-generated>
 5#pragma warning disable 1591, 0612, 3021, 8981
 6#region Designer generated code
 7
 8using pb = global::Google.Protobuf;
 9using pbc = global::Google.Protobuf.Collections;
 10using pbr = global::Google.Protobuf.Reflection;
 11using scg = global::System.Collections.Generic;
 12namespace Micromissiles {
 13
 14  /// <summary>Holder for reflection information generated from configs/proto/simulator_config.proto</summary>
 15  public static partial class SimulatorConfigReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for configs/proto/simulator_config.proto</summary>
 19    public static pbr::FileDescriptor Descriptor {
 20      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static SimulatorConfigReflection() {
 25      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "CiRjb25maWdzL3Byb3RvL3NpbXVsYXRvcl9jb25maWcucHJvdG8SDW1pY3Jv",
 28            "bWlzc2lsZXMi1gEKD1NpbXVsYXRvckNvbmZpZxIgChhlbmFibGVfdGVsZW1l",
 29            "dHJ5X2xvZ2dpbmcYASABKAgSHAoUZW5hYmxlX2V2ZW50X2xvZ2dpbmcYAiAB",
 30            "KAgSIwobZW5hYmxlX21pc3NpbGVfdHJhaWxfZWZmZWN0GAMgASgIEh8KF2Vu",
 31            "YWJsZV9leHBsb3Npb25fZWZmZWN0GAQgASgIEhsKE3BoeXNpY3NfdXBkYXRl",
 32            "X3JhdGUYBSABKAISIAoYcGVyc2lzdGVudF9mbGlnaHRfdHJhaWxzGAYgASgI",
 33            "YgZwcm90bzM="));
 34      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 35          new pbr::FileDescriptor[] { },
 36          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
 37            new pbr::GeneratedClrTypeInfo(typeof(global::Micromissiles.SimulatorConfig), global::Micromissiles.Simulator
 38          }));
 39    }
 40    #endregion
 41
 42  }
 43  #region Messages
 44  /// <summary>
 45  /// Simulator configuration.
 46  /// </summary>
 47  [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
 48  public sealed partial class SimulatorConfig : pb::IMessage<SimulatorConfig>
 49  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 50      , pb::IBufferMessage
 51  #endif
 52  {
 053    private static readonly pb::MessageParser<SimulatorConfig> _parser = new pb::MessageParser<SimulatorConfig>(() => ne
 54    private pb::UnknownFieldSet _unknownFields;
 55    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 56    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 057    public static pb::MessageParser<SimulatorConfig> Parser { get { return _parser; } }
 58
 59    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 60    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 61    public static pbr::MessageDescriptor Descriptor {
 062      get { return global::Micromissiles.SimulatorConfigReflection.Descriptor.MessageTypes[0]; }
 63    }
 64
 65    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 66    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 67    pbr::MessageDescriptor pb::IMessage.Descriptor {
 068      get { return Descriptor; }
 69    }
 70
 71    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 72    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 073    public SimulatorConfig() {
 74      OnConstruction();
 075    }
 76
 77    partial void OnConstruction();
 78
 79    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 80    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 081    public SimulatorConfig(SimulatorConfig other) : this() {
 082      enableTelemetryLogging_ = other.enableTelemetryLogging_;
 083      enableEventLogging_ = other.enableEventLogging_;
 084      enableMissileTrailEffect_ = other.enableMissileTrailEffect_;
 085      enableExplosionEffect_ = other.enableExplosionEffect_;
 086      physicsUpdateRate_ = other.physicsUpdateRate_;
 087      persistentFlightTrails_ = other.persistentFlightTrails_;
 088      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 089    }
 90
 91    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 92    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 093    public SimulatorConfig Clone() {
 094      return new SimulatorConfig(this);
 095    }
 96
 97    /// <summary>Field number for the "enable_telemetry_logging" field.</summary>
 98    public const int EnableTelemetryLoggingFieldNumber = 1;
 99    private bool enableTelemetryLogging_;
 100    /// <summary>
 101    /// Enable telemetry logging.
 102    /// </summary>
 103    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 104    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 105    public bool EnableTelemetryLogging {
 0106      get { return enableTelemetryLogging_; }
 0107      set {
 0108        enableTelemetryLogging_ = value;
 0109      }
 110    }
 111
 112    /// <summary>Field number for the "enable_event_logging" field.</summary>
 113    public const int EnableEventLoggingFieldNumber = 2;
 114    private bool enableEventLogging_;
 115    /// <summary>
 116    /// Enable event logging.
 117    /// </summary>
 118    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 119    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 120    public bool EnableEventLogging {
 0121      get { return enableEventLogging_; }
 0122      set {
 0123        enableEventLogging_ = value;
 0124      }
 125    }
 126
 127    /// <summary>Field number for the "enable_missile_trail_effect" field.</summary>
 128    public const int EnableMissileTrailEffectFieldNumber = 3;
 129    private bool enableMissileTrailEffect_;
 130    /// <summary>
 131    /// Enable missile trail effect.
 132    /// </summary>
 133    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 134    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 135    public bool EnableMissileTrailEffect {
 0136      get { return enableMissileTrailEffect_; }
 0137      set {
 0138        enableMissileTrailEffect_ = value;
 0139      }
 140    }
 141
 142    /// <summary>Field number for the "enable_explosion_effect" field.</summary>
 143    public const int EnableExplosionEffectFieldNumber = 4;
 144    private bool enableExplosionEffect_;
 145    /// <summary>
 146    /// Enable explosion effect.
 147    /// </summary>
 148    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 149    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 150    public bool EnableExplosionEffect {
 0151      get { return enableExplosionEffect_; }
 0152      set {
 0153        enableExplosionEffect_ = value;
 0154      }
 155    }
 156
 157    /// <summary>Field number for the "physics_update_rate" field.</summary>
 158    public const int PhysicsUpdateRateFieldNumber = 5;
 159    private float physicsUpdateRate_;
 160    /// <summary>
 161    /// Physics update rate in Hz.
 162    /// </summary>
 163    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 164    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 165    public float PhysicsUpdateRate {
 0166      get { return physicsUpdateRate_; }
 0167      set {
 0168        physicsUpdateRate_ = value;
 0169      }
 170    }
 171
 172    /// <summary>Field number for the "persistent_flight_trails" field.</summary>
 173    public const int PersistentFlightTrailsFieldNumber = 6;
 174    private bool persistentFlightTrails_;
 175    /// <summary>
 176    /// Persistent flight trails.
 177    /// </summary>
 178    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 179    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 180    public bool PersistentFlightTrails {
 0181      get { return persistentFlightTrails_; }
 0182      set {
 0183        persistentFlightTrails_ = value;
 0184      }
 185    }
 186
 187    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 188    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0189    public override bool Equals(object other) {
 0190      return Equals(other as SimulatorConfig);
 0191    }
 192
 193    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 194    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0195    public bool Equals(SimulatorConfig other) {
 0196      if (ReferenceEquals(other, null)) {
 0197        return false;
 198      }
 0199      if (ReferenceEquals(other, this)) {
 0200        return true;
 201      }
 0202      if (EnableTelemetryLogging != other.EnableTelemetryLogging) return false;
 0203      if (EnableEventLogging != other.EnableEventLogging) return false;
 0204      if (EnableMissileTrailEffect != other.EnableMissileTrailEffect) return false;
 0205      if (EnableExplosionEffect != other.EnableExplosionEffect) return false;
 0206      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(PhysicsUpdateRate, other.PhysicsUpdateRat
 0207      if (PersistentFlightTrails != other.PersistentFlightTrails) return false;
 0208      return Equals(_unknownFields, other._unknownFields);
 0209    }
 210
 211    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 212    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0213    public override int GetHashCode() {
 0214      int hash = 1;
 0215      if (EnableTelemetryLogging != false) hash ^= EnableTelemetryLogging.GetHashCode();
 0216      if (EnableEventLogging != false) hash ^= EnableEventLogging.GetHashCode();
 0217      if (EnableMissileTrailEffect != false) hash ^= EnableMissileTrailEffect.GetHashCode();
 0218      if (EnableExplosionEffect != false) hash ^= EnableExplosionEffect.GetHashCode();
 0219      if (PhysicsUpdateRate != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Phys
 0220      if (PersistentFlightTrails != false) hash ^= PersistentFlightTrails.GetHashCode();
 0221      if (_unknownFields != null) {
 0222        hash ^= _unknownFields.GetHashCode();
 0223      }
 0224      return hash;
 0225    }
 226
 227    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 228    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0229    public override string ToString() {
 0230      return pb::JsonFormatter.ToDiagnosticString(this);
 0231    }
 232
 233    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 234    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0235    public void WriteTo(pb::CodedOutputStream output) {
 236    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 0237      output.WriteRawMessage(this);
 238    #else
 239      if (EnableTelemetryLogging != false) {
 240        output.WriteRawTag(8);
 241        output.WriteBool(EnableTelemetryLogging);
 242      }
 243      if (EnableEventLogging != false) {
 244        output.WriteRawTag(16);
 245        output.WriteBool(EnableEventLogging);
 246      }
 247      if (EnableMissileTrailEffect != false) {
 248        output.WriteRawTag(24);
 249        output.WriteBool(EnableMissileTrailEffect);
 250      }
 251      if (EnableExplosionEffect != false) {
 252        output.WriteRawTag(32);
 253        output.WriteBool(EnableExplosionEffect);
 254      }
 255      if (PhysicsUpdateRate != 0F) {
 256        output.WriteRawTag(45);
 257        output.WriteFloat(PhysicsUpdateRate);
 258      }
 259      if (PersistentFlightTrails != false) {
 260        output.WriteRawTag(48);
 261        output.WriteBool(PersistentFlightTrails);
 262      }
 263      if (_unknownFields != null) {
 264        _unknownFields.WriteTo(output);
 265      }
 266    #endif
 0267    }
 268
 269    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 270    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 271    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0272    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 0273      if (EnableTelemetryLogging != false) {
 0274        output.WriteRawTag(8);
 0275        output.WriteBool(EnableTelemetryLogging);
 0276      }
 0277      if (EnableEventLogging != false) {
 0278        output.WriteRawTag(16);
 0279        output.WriteBool(EnableEventLogging);
 0280      }
 0281      if (EnableMissileTrailEffect != false) {
 0282        output.WriteRawTag(24);
 0283        output.WriteBool(EnableMissileTrailEffect);
 0284      }
 0285      if (EnableExplosionEffect != false) {
 0286        output.WriteRawTag(32);
 0287        output.WriteBool(EnableExplosionEffect);
 0288      }
 0289      if (PhysicsUpdateRate != 0F) {
 0290        output.WriteRawTag(45);
 0291        output.WriteFloat(PhysicsUpdateRate);
 0292      }
 0293      if (PersistentFlightTrails != false) {
 0294        output.WriteRawTag(48);
 0295        output.WriteBool(PersistentFlightTrails);
 0296      }
 0297      if (_unknownFields != null) {
 0298        _unknownFields.WriteTo(ref output);
 0299      }
 0300    }
 301    #endif
 302
 303    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 304    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0305    public int CalculateSize() {
 0306      int size = 0;
 0307      if (EnableTelemetryLogging != false) {
 0308        size += 1 + 1;
 0309      }
 0310      if (EnableEventLogging != false) {
 0311        size += 1 + 1;
 0312      }
 0313      if (EnableMissileTrailEffect != false) {
 0314        size += 1 + 1;
 0315      }
 0316      if (EnableExplosionEffect != false) {
 0317        size += 1 + 1;
 0318      }
 0319      if (PhysicsUpdateRate != 0F) {
 0320        size += 1 + 4;
 0321      }
 0322      if (PersistentFlightTrails != false) {
 0323        size += 1 + 1;
 0324      }
 0325      if (_unknownFields != null) {
 0326        size += _unknownFields.CalculateSize();
 0327      }
 0328      return size;
 0329    }
 330
 331    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 332    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0333    public void MergeFrom(SimulatorConfig other) {
 0334      if (other == null) {
 0335        return;
 336      }
 0337      if (other.EnableTelemetryLogging != false) {
 0338        EnableTelemetryLogging = other.EnableTelemetryLogging;
 0339      }
 0340      if (other.EnableEventLogging != false) {
 0341        EnableEventLogging = other.EnableEventLogging;
 0342      }
 0343      if (other.EnableMissileTrailEffect != false) {
 0344        EnableMissileTrailEffect = other.EnableMissileTrailEffect;
 0345      }
 0346      if (other.EnableExplosionEffect != false) {
 0347        EnableExplosionEffect = other.EnableExplosionEffect;
 0348      }
 0349      if (other.PhysicsUpdateRate != 0F) {
 0350        PhysicsUpdateRate = other.PhysicsUpdateRate;
 0351      }
 0352      if (other.PersistentFlightTrails != false) {
 0353        PersistentFlightTrails = other.PersistentFlightTrails;
 0354      }
 0355      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0356    }
 357
 358    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 359    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0360    public void MergeFrom(pb::CodedInputStream input) {
 361    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 0362      input.ReadRawMessage(this);
 363    #else
 364      uint tag;
 365      while ((tag = input.ReadTag()) != 0) {
 366      if ((tag & 7) == 4) {
 367        // Abort on any end group tag.
 368        return;
 369      }
 370      switch(tag) {
 371          default:
 372            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 373            break;
 374          case 8: {
 375            EnableTelemetryLogging = input.ReadBool();
 376            break;
 377          }
 378          case 16: {
 379            EnableEventLogging = input.ReadBool();
 380            break;
 381          }
 382          case 24: {
 383            EnableMissileTrailEffect = input.ReadBool();
 384            break;
 385          }
 386          case 32: {
 387            EnableExplosionEffect = input.ReadBool();
 388            break;
 389          }
 390          case 45: {
 391            PhysicsUpdateRate = input.ReadFloat();
 392            break;
 393          }
 394          case 48: {
 395            PersistentFlightTrails = input.ReadBool();
 396            break;
 397          }
 398        }
 399      }
 400    #endif
 0401    }
 402
 403    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 404    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 405    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0406    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 407      uint tag;
 0408      while ((tag = input.ReadTag()) != 0) {
 0409      if ((tag & 7) == 4) {
 410        // Abort on any end group tag.
 0411        return;
 412      }
 0413      switch(tag) {
 414          default:
 0415            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 0416            break;
 0417          case 8: {
 0418            EnableTelemetryLogging = input.ReadBool();
 0419            break;
 420          }
 0421          case 16: {
 0422            EnableEventLogging = input.ReadBool();
 0423            break;
 424          }
 0425          case 24: {
 0426            EnableMissileTrailEffect = input.ReadBool();
 0427            break;
 428          }
 0429          case 32: {
 0430            EnableExplosionEffect = input.ReadBool();
 0431            break;
 432          }
 0433          case 45: {
 0434            PhysicsUpdateRate = input.ReadFloat();
 0435            break;
 436          }
 0437          case 48: {
 0438            PersistentFlightTrails = input.ReadBool();
 0439            break;
 440          }
 441        }
 0442      }
 0443    }
 444    #endif
 445
 446  }
 447
 448  #endregion
 449
 450}
 451
 452#endregion Designer generated code