< Summary

Class:Configs.SimulatorConfig
Assembly:bamlab.micromissiles
File(s):/github/workspace/Assets/Scripts/Generated/Proto/SimulatorConfig.cs
Covered lines:0
Uncovered lines:184
Coverable lines:184
Total lines:451
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/Proto/SimulatorConfig.cs

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: Configs/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 Configs {
 13
 14  /// <summary>Holder for reflection information generated from Configs/simulator_config.proto</summary>
 15  public static partial class SimulatorConfigReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for Configs/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            "Ch5Db25maWdzL3NpbXVsYXRvcl9jb25maWcucHJvdG8SB2NvbmZpZ3Mi1gEK",
 28            "D1NpbXVsYXRvckNvbmZpZxIgChhlbmFibGVfdGVsZW1ldHJ5X2xvZ2dpbmcY",
 29            "ASABKAgSHAoUZW5hYmxlX2V2ZW50X2xvZ2dpbmcYAiABKAgSIwobZW5hYmxl",
 30            "X21pc3NpbGVfdHJhaWxfZWZmZWN0GAMgASgIEh8KF2VuYWJsZV9leHBsb3Np",
 31            "b25fZWZmZWN0GAQgASgIEhsKE3BoeXNpY3NfdXBkYXRlX3JhdGUYBSABKAIS",
 32            "IAoYcGVyc2lzdGVudF9mbGlnaHRfdHJhaWxzGAYgASgIYgZwcm90bzM="));
 33      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 34          new pbr::FileDescriptor[] { },
 35          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
 36            new pbr::GeneratedClrTypeInfo(typeof(global::Configs.SimulatorConfig), global::Configs.SimulatorConfig.Parse
 37          }));
 38    }
 39    #endregion
 40
 41  }
 42  #region Messages
 43  /// <summary>
 44  /// Simulator configuration.
 45  /// </summary>
 46  [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
 47  public sealed partial class SimulatorConfig : pb::IMessage<SimulatorConfig>
 48  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 49      , pb::IBufferMessage
 50  #endif
 51  {
 052    private static readonly pb::MessageParser<SimulatorConfig> _parser = new pb::MessageParser<SimulatorConfig>(() => ne
 53    private pb::UnknownFieldSet _unknownFields;
 54    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 55    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 056    public static pb::MessageParser<SimulatorConfig> Parser { get { return _parser; } }
 57
 58    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 59    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 60    public static pbr::MessageDescriptor Descriptor {
 061      get { return global::Configs.SimulatorConfigReflection.Descriptor.MessageTypes[0]; }
 62    }
 63
 64    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 65    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 66    pbr::MessageDescriptor pb::IMessage.Descriptor {
 067      get { return Descriptor; }
 68    }
 69
 70    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 71    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 072    public SimulatorConfig() {
 73      OnConstruction();
 074    }
 75
 76    partial void OnConstruction();
 77
 78    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 79    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 080    public SimulatorConfig(SimulatorConfig other) : this() {
 081      enableTelemetryLogging_ = other.enableTelemetryLogging_;
 082      enableEventLogging_ = other.enableEventLogging_;
 083      enableMissileTrailEffect_ = other.enableMissileTrailEffect_;
 084      enableExplosionEffect_ = other.enableExplosionEffect_;
 085      physicsUpdateRate_ = other.physicsUpdateRate_;
 086      persistentFlightTrails_ = other.persistentFlightTrails_;
 087      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 088    }
 89
 90    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 91    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 092    public SimulatorConfig Clone() {
 093      return new SimulatorConfig(this);
 094    }
 95
 96    /// <summary>Field number for the "enable_telemetry_logging" field.</summary>
 97    public const int EnableTelemetryLoggingFieldNumber = 1;
 98    private bool enableTelemetryLogging_;
 99    /// <summary>
 100    /// Enable telemetry logging.
 101    /// </summary>
 102    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 103    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 104    public bool EnableTelemetryLogging {
 0105      get { return enableTelemetryLogging_; }
 0106      set {
 0107        enableTelemetryLogging_ = value;
 0108      }
 109    }
 110
 111    /// <summary>Field number for the "enable_event_logging" field.</summary>
 112    public const int EnableEventLoggingFieldNumber = 2;
 113    private bool enableEventLogging_;
 114    /// <summary>
 115    /// Enable event logging.
 116    /// </summary>
 117    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 118    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 119    public bool EnableEventLogging {
 0120      get { return enableEventLogging_; }
 0121      set {
 0122        enableEventLogging_ = value;
 0123      }
 124    }
 125
 126    /// <summary>Field number for the "enable_missile_trail_effect" field.</summary>
 127    public const int EnableMissileTrailEffectFieldNumber = 3;
 128    private bool enableMissileTrailEffect_;
 129    /// <summary>
 130    /// Enable missile trail effect.
 131    /// </summary>
 132    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 133    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 134    public bool EnableMissileTrailEffect {
 0135      get { return enableMissileTrailEffect_; }
 0136      set {
 0137        enableMissileTrailEffect_ = value;
 0138      }
 139    }
 140
 141    /// <summary>Field number for the "enable_explosion_effect" field.</summary>
 142    public const int EnableExplosionEffectFieldNumber = 4;
 143    private bool enableExplosionEffect_;
 144    /// <summary>
 145    /// Enable explosion effect.
 146    /// </summary>
 147    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 148    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 149    public bool EnableExplosionEffect {
 0150      get { return enableExplosionEffect_; }
 0151      set {
 0152        enableExplosionEffect_ = value;
 0153      }
 154    }
 155
 156    /// <summary>Field number for the "physics_update_rate" field.</summary>
 157    public const int PhysicsUpdateRateFieldNumber = 5;
 158    private float physicsUpdateRate_;
 159    /// <summary>
 160    /// Physics update rate in Hz.
 161    /// </summary>
 162    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 163    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 164    public float PhysicsUpdateRate {
 0165      get { return physicsUpdateRate_; }
 0166      set {
 0167        physicsUpdateRate_ = value;
 0168      }
 169    }
 170
 171    /// <summary>Field number for the "persistent_flight_trails" field.</summary>
 172    public const int PersistentFlightTrailsFieldNumber = 6;
 173    private bool persistentFlightTrails_;
 174    /// <summary>
 175    /// Persistent flight trails.
 176    /// </summary>
 177    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 178    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 179    public bool PersistentFlightTrails {
 0180      get { return persistentFlightTrails_; }
 0181      set {
 0182        persistentFlightTrails_ = value;
 0183      }
 184    }
 185
 186    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 187    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0188    public override bool Equals(object other) {
 0189      return Equals(other as SimulatorConfig);
 0190    }
 191
 192    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 193    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0194    public bool Equals(SimulatorConfig other) {
 0195      if (ReferenceEquals(other, null)) {
 0196        return false;
 197      }
 0198      if (ReferenceEquals(other, this)) {
 0199        return true;
 200      }
 0201      if (EnableTelemetryLogging != other.EnableTelemetryLogging) return false;
 0202      if (EnableEventLogging != other.EnableEventLogging) return false;
 0203      if (EnableMissileTrailEffect != other.EnableMissileTrailEffect) return false;
 0204      if (EnableExplosionEffect != other.EnableExplosionEffect) return false;
 0205      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(PhysicsUpdateRate, other.PhysicsUpdateRat
 0206      if (PersistentFlightTrails != other.PersistentFlightTrails) return false;
 0207      return Equals(_unknownFields, other._unknownFields);
 0208    }
 209
 210    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 211    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0212    public override int GetHashCode() {
 0213      int hash = 1;
 0214      if (EnableTelemetryLogging != false) hash ^= EnableTelemetryLogging.GetHashCode();
 0215      if (EnableEventLogging != false) hash ^= EnableEventLogging.GetHashCode();
 0216      if (EnableMissileTrailEffect != false) hash ^= EnableMissileTrailEffect.GetHashCode();
 0217      if (EnableExplosionEffect != false) hash ^= EnableExplosionEffect.GetHashCode();
 0218      if (PhysicsUpdateRate != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Phys
 0219      if (PersistentFlightTrails != false) hash ^= PersistentFlightTrails.GetHashCode();
 0220      if (_unknownFields != null) {
 0221        hash ^= _unknownFields.GetHashCode();
 0222      }
 0223      return hash;
 0224    }
 225
 226    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 227    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0228    public override string ToString() {
 0229      return pb::JsonFormatter.ToDiagnosticString(this);
 0230    }
 231
 232    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 233    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0234    public void WriteTo(pb::CodedOutputStream output) {
 235    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 0236      output.WriteRawMessage(this);
 237    #else
 238      if (EnableTelemetryLogging != false) {
 239        output.WriteRawTag(8);
 240        output.WriteBool(EnableTelemetryLogging);
 241      }
 242      if (EnableEventLogging != false) {
 243        output.WriteRawTag(16);
 244        output.WriteBool(EnableEventLogging);
 245      }
 246      if (EnableMissileTrailEffect != false) {
 247        output.WriteRawTag(24);
 248        output.WriteBool(EnableMissileTrailEffect);
 249      }
 250      if (EnableExplosionEffect != false) {
 251        output.WriteRawTag(32);
 252        output.WriteBool(EnableExplosionEffect);
 253      }
 254      if (PhysicsUpdateRate != 0F) {
 255        output.WriteRawTag(45);
 256        output.WriteFloat(PhysicsUpdateRate);
 257      }
 258      if (PersistentFlightTrails != false) {
 259        output.WriteRawTag(48);
 260        output.WriteBool(PersistentFlightTrails);
 261      }
 262      if (_unknownFields != null) {
 263        _unknownFields.WriteTo(output);
 264      }
 265    #endif
 0266    }
 267
 268    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 269    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 270    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0271    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 0272      if (EnableTelemetryLogging != false) {
 0273        output.WriteRawTag(8);
 0274        output.WriteBool(EnableTelemetryLogging);
 0275      }
 0276      if (EnableEventLogging != false) {
 0277        output.WriteRawTag(16);
 0278        output.WriteBool(EnableEventLogging);
 0279      }
 0280      if (EnableMissileTrailEffect != false) {
 0281        output.WriteRawTag(24);
 0282        output.WriteBool(EnableMissileTrailEffect);
 0283      }
 0284      if (EnableExplosionEffect != false) {
 0285        output.WriteRawTag(32);
 0286        output.WriteBool(EnableExplosionEffect);
 0287      }
 0288      if (PhysicsUpdateRate != 0F) {
 0289        output.WriteRawTag(45);
 0290        output.WriteFloat(PhysicsUpdateRate);
 0291      }
 0292      if (PersistentFlightTrails != false) {
 0293        output.WriteRawTag(48);
 0294        output.WriteBool(PersistentFlightTrails);
 0295      }
 0296      if (_unknownFields != null) {
 0297        _unknownFields.WriteTo(ref output);
 0298      }
 0299    }
 300    #endif
 301
 302    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 303    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0304    public int CalculateSize() {
 0305      int size = 0;
 0306      if (EnableTelemetryLogging != false) {
 0307        size += 1 + 1;
 0308      }
 0309      if (EnableEventLogging != false) {
 0310        size += 1 + 1;
 0311      }
 0312      if (EnableMissileTrailEffect != false) {
 0313        size += 1 + 1;
 0314      }
 0315      if (EnableExplosionEffect != false) {
 0316        size += 1 + 1;
 0317      }
 0318      if (PhysicsUpdateRate != 0F) {
 0319        size += 1 + 4;
 0320      }
 0321      if (PersistentFlightTrails != false) {
 0322        size += 1 + 1;
 0323      }
 0324      if (_unknownFields != null) {
 0325        size += _unknownFields.CalculateSize();
 0326      }
 0327      return size;
 0328    }
 329
 330    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 331    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0332    public void MergeFrom(SimulatorConfig other) {
 0333      if (other == null) {
 0334        return;
 335      }
 0336      if (other.EnableTelemetryLogging != false) {
 0337        EnableTelemetryLogging = other.EnableTelemetryLogging;
 0338      }
 0339      if (other.EnableEventLogging != false) {
 0340        EnableEventLogging = other.EnableEventLogging;
 0341      }
 0342      if (other.EnableMissileTrailEffect != false) {
 0343        EnableMissileTrailEffect = other.EnableMissileTrailEffect;
 0344      }
 0345      if (other.EnableExplosionEffect != false) {
 0346        EnableExplosionEffect = other.EnableExplosionEffect;
 0347      }
 0348      if (other.PhysicsUpdateRate != 0F) {
 0349        PhysicsUpdateRate = other.PhysicsUpdateRate;
 0350      }
 0351      if (other.PersistentFlightTrails != false) {
 0352        PersistentFlightTrails = other.PersistentFlightTrails;
 0353      }
 0354      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0355    }
 356
 357    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 358    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0359    public void MergeFrom(pb::CodedInputStream input) {
 360    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 0361      input.ReadRawMessage(this);
 362    #else
 363      uint tag;
 364      while ((tag = input.ReadTag()) != 0) {
 365      if ((tag & 7) == 4) {
 366        // Abort on any end group tag.
 367        return;
 368      }
 369      switch(tag) {
 370          default:
 371            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 372            break;
 373          case 8: {
 374            EnableTelemetryLogging = input.ReadBool();
 375            break;
 376          }
 377          case 16: {
 378            EnableEventLogging = input.ReadBool();
 379            break;
 380          }
 381          case 24: {
 382            EnableMissileTrailEffect = input.ReadBool();
 383            break;
 384          }
 385          case 32: {
 386            EnableExplosionEffect = input.ReadBool();
 387            break;
 388          }
 389          case 45: {
 390            PhysicsUpdateRate = input.ReadFloat();
 391            break;
 392          }
 393          case 48: {
 394            PersistentFlightTrails = input.ReadBool();
 395            break;
 396          }
 397        }
 398      }
 399    #endif
 0400    }
 401
 402    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 403    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 404    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0405    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 406      uint tag;
 0407      while ((tag = input.ReadTag()) != 0) {
 0408      if ((tag & 7) == 4) {
 409        // Abort on any end group tag.
 0410        return;
 411      }
 0412      switch(tag) {
 413          default:
 0414            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 0415            break;
 0416          case 8: {
 0417            EnableTelemetryLogging = input.ReadBool();
 0418            break;
 419          }
 0420          case 16: {
 0421            EnableEventLogging = input.ReadBool();
 0422            break;
 423          }
 0424          case 24: {
 0425            EnableMissileTrailEffect = input.ReadBool();
 0426            break;
 427          }
 0428          case 32: {
 0429            EnableExplosionEffect = input.ReadBool();
 0430            break;
 431          }
 0432          case 45: {
 0433            PhysicsUpdateRate = input.ReadFloat();
 0434            break;
 435          }
 0436          case 48: {
 0437            PersistentFlightTrails = input.ReadBool();
 0438            break;
 439          }
 440        }
 0441      }
 0442    }
 443    #endif
 444
 445  }
 446
 447  #endregion
 448
 449}
 450
 451#endregion Designer generated code