< Summary

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

Metrics

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

File(s)

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

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: configs/proto/simulation_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/simulation_config.proto</summary>
 15  public static partial class SimulationConfigReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for configs/proto/simulation_config.proto</summary>
 19    public static pbr::FileDescriptor Descriptor {
 20      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static SimulationConfigReflection() {
 25      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "CiVjb25maWdzL3Byb3RvL3NpbXVsYXRpb25fY29uZmlnLnByb3RvEg1taWNy",
 28            "b21pc3NpbGVzGhljb25maWdzL3Byb3RvL2FnZW50LnByb3RvIrsBChBTaW11",
 29            "bGF0aW9uQ29uZmlnEhAKCGVuZF90aW1lGAEgASgCEhIKCnRpbWVfc2NhbGUY",
 30            "AiABKAISQgoZaW50ZXJjZXB0b3Jfc3dhcm1fY29uZmlncxgDIAMoCzIfLm1p",
 31            "Y3JvbWlzc2lsZXMuQWdlbnRTd2FybUNvbmZpZxI9ChR0aHJlYXRfc3dhcm1f",
 32            "Y29uZmlncxgEIAMoCzIfLm1pY3JvbWlzc2lsZXMuQWdlbnRTd2FybUNvbmZp",
 33            "Z2IGcHJvdG8z"));
 34      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 35          new pbr::FileDescriptor[] { global::Micromissiles.AgentReflection.Descriptor, },
 36          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
 37            new pbr::GeneratedClrTypeInfo(typeof(global::Micromissiles.SimulationConfig), global::Micromissiles.Simulati
 38          }));
 39    }
 40    #endregion
 41
 42  }
 43  #region Messages
 44  /// <summary>
 45  /// Simulation configuration.
 46  /// </summary>
 47  [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
 48  public sealed partial class SimulationConfig : pb::IMessage<SimulationConfig>
 49  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 50      , pb::IBufferMessage
 51  #endif
 52  {
 053    private static readonly pb::MessageParser<SimulationConfig> _parser = new pb::MessageParser<SimulationConfig>(() => 
 54    private pb::UnknownFieldSet _unknownFields;
 55    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 56    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 057    public static pb::MessageParser<SimulationConfig> 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.SimulationConfigReflection.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 SimulationConfig() {
 74      OnConstruction();
 075    }
 76
 77    partial void OnConstruction();
 78
 79    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 80    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 081    public SimulationConfig(SimulationConfig other) : this() {
 082      endTime_ = other.endTime_;
 083      timeScale_ = other.timeScale_;
 084      interceptorSwarmConfigs_ = other.interceptorSwarmConfigs_.Clone();
 085      threatSwarmConfigs_ = other.threatSwarmConfigs_.Clone();
 086      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 087    }
 88
 89    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 90    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 091    public SimulationConfig Clone() {
 092      return new SimulationConfig(this);
 093    }
 94
 95    /// <summary>Field number for the "end_time" field.</summary>
 96    public const int EndTimeFieldNumber = 1;
 97    private float endTime_;
 98    /// <summary>
 99    /// End time in seconds.
 100    /// </summary>
 101    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 102    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 103    public float EndTime {
 0104      get { return endTime_; }
 0105      set {
 0106        endTime_ = value;
 0107      }
 108    }
 109
 110    /// <summary>Field number for the "time_scale" field.</summary>
 111    public const int TimeScaleFieldNumber = 2;
 112    private float timeScale_;
 113    /// <summary>
 114    /// Time scale.
 115    /// </summary>
 116    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 117    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 118    public float TimeScale {
 0119      get { return timeScale_; }
 0120      set {
 0121        timeScale_ = value;
 0122      }
 123    }
 124
 125    /// <summary>Field number for the "interceptor_swarm_configs" field.</summary>
 126    public const int InterceptorSwarmConfigsFieldNumber = 3;
 0127    private static readonly pb::FieldCodec<global::Micromissiles.AgentSwarmConfig> _repeated_interceptorSwarmConfigs_cod
 128        = pb::FieldCodec.ForMessage(26, global::Micromissiles.AgentSwarmConfig.Parser);
 0129    private readonly pbc::RepeatedField<global::Micromissiles.AgentSwarmConfig> interceptorSwarmConfigs_ = new pbc::Repe
 130    /// <summary>
 131    /// Interceptor swarm configurations.
 132    /// </summary>
 133    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 134    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 135    public pbc::RepeatedField<global::Micromissiles.AgentSwarmConfig> InterceptorSwarmConfigs {
 0136      get { return interceptorSwarmConfigs_; }
 137    }
 138
 139    /// <summary>Field number for the "threat_swarm_configs" field.</summary>
 140    public const int ThreatSwarmConfigsFieldNumber = 4;
 0141    private static readonly pb::FieldCodec<global::Micromissiles.AgentSwarmConfig> _repeated_threatSwarmConfigs_codec
 142        = pb::FieldCodec.ForMessage(34, global::Micromissiles.AgentSwarmConfig.Parser);
 0143    private readonly pbc::RepeatedField<global::Micromissiles.AgentSwarmConfig> threatSwarmConfigs_ = new pbc::RepeatedF
 144    /// <summary>
 145    /// Threat swarm configurations.
 146    /// </summary>
 147    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 148    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 149    public pbc::RepeatedField<global::Micromissiles.AgentSwarmConfig> ThreatSwarmConfigs {
 0150      get { return threatSwarmConfigs_; }
 151    }
 152
 153    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 154    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0155    public override bool Equals(object other) {
 0156      return Equals(other as SimulationConfig);
 0157    }
 158
 159    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 160    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0161    public bool Equals(SimulationConfig other) {
 0162      if (ReferenceEquals(other, null)) {
 0163        return false;
 164      }
 0165      if (ReferenceEquals(other, this)) {
 0166        return true;
 167      }
 0168      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(EndTime, other.EndTime)) return false;
 0169      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(TimeScale, other.TimeScale)) return false
 0170      if(!interceptorSwarmConfigs_.Equals(other.interceptorSwarmConfigs_)) return false;
 0171      if(!threatSwarmConfigs_.Equals(other.threatSwarmConfigs_)) return false;
 0172      return Equals(_unknownFields, other._unknownFields);
 0173    }
 174
 175    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 176    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0177    public override int GetHashCode() {
 0178      int hash = 1;
 0179      if (EndTime != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(EndTime);
 0180      if (TimeScale != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(TimeScale);
 0181      hash ^= interceptorSwarmConfigs_.GetHashCode();
 0182      hash ^= threatSwarmConfigs_.GetHashCode();
 0183      if (_unknownFields != null) {
 0184        hash ^= _unknownFields.GetHashCode();
 0185      }
 0186      return hash;
 0187    }
 188
 189    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 190    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0191    public override string ToString() {
 0192      return pb::JsonFormatter.ToDiagnosticString(this);
 0193    }
 194
 195    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 196    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0197    public void WriteTo(pb::CodedOutputStream output) {
 198    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 0199      output.WriteRawMessage(this);
 200    #else
 201      if (EndTime != 0F) {
 202        output.WriteRawTag(13);
 203        output.WriteFloat(EndTime);
 204      }
 205      if (TimeScale != 0F) {
 206        output.WriteRawTag(21);
 207        output.WriteFloat(TimeScale);
 208      }
 209      interceptorSwarmConfigs_.WriteTo(output, _repeated_interceptorSwarmConfigs_codec);
 210      threatSwarmConfigs_.WriteTo(output, _repeated_threatSwarmConfigs_codec);
 211      if (_unknownFields != null) {
 212        _unknownFields.WriteTo(output);
 213      }
 214    #endif
 0215    }
 216
 217    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 218    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 219    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0220    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 0221      if (EndTime != 0F) {
 0222        output.WriteRawTag(13);
 0223        output.WriteFloat(EndTime);
 0224      }
 0225      if (TimeScale != 0F) {
 0226        output.WriteRawTag(21);
 0227        output.WriteFloat(TimeScale);
 0228      }
 0229      interceptorSwarmConfigs_.WriteTo(ref output, _repeated_interceptorSwarmConfigs_codec);
 0230      threatSwarmConfigs_.WriteTo(ref output, _repeated_threatSwarmConfigs_codec);
 0231      if (_unknownFields != null) {
 0232        _unknownFields.WriteTo(ref output);
 0233      }
 0234    }
 235    #endif
 236
 237    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 238    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0239    public int CalculateSize() {
 0240      int size = 0;
 0241      if (EndTime != 0F) {
 0242        size += 1 + 4;
 0243      }
 0244      if (TimeScale != 0F) {
 0245        size += 1 + 4;
 0246      }
 0247      size += interceptorSwarmConfigs_.CalculateSize(_repeated_interceptorSwarmConfigs_codec);
 0248      size += threatSwarmConfigs_.CalculateSize(_repeated_threatSwarmConfigs_codec);
 0249      if (_unknownFields != null) {
 0250        size += _unknownFields.CalculateSize();
 0251      }
 0252      return size;
 0253    }
 254
 255    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 256    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0257    public void MergeFrom(SimulationConfig other) {
 0258      if (other == null) {
 0259        return;
 260      }
 0261      if (other.EndTime != 0F) {
 0262        EndTime = other.EndTime;
 0263      }
 0264      if (other.TimeScale != 0F) {
 0265        TimeScale = other.TimeScale;
 0266      }
 0267      interceptorSwarmConfigs_.Add(other.interceptorSwarmConfigs_);
 0268      threatSwarmConfigs_.Add(other.threatSwarmConfigs_);
 0269      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0270    }
 271
 272    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 273    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0274    public void MergeFrom(pb::CodedInputStream input) {
 275    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 0276      input.ReadRawMessage(this);
 277    #else
 278      uint tag;
 279      while ((tag = input.ReadTag()) != 0) {
 280      if ((tag & 7) == 4) {
 281        // Abort on any end group tag.
 282        return;
 283      }
 284      switch(tag) {
 285          default:
 286            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 287            break;
 288          case 13: {
 289            EndTime = input.ReadFloat();
 290            break;
 291          }
 292          case 21: {
 293            TimeScale = input.ReadFloat();
 294            break;
 295          }
 296          case 26: {
 297            interceptorSwarmConfigs_.AddEntriesFrom(input, _repeated_interceptorSwarmConfigs_codec);
 298            break;
 299          }
 300          case 34: {
 301            threatSwarmConfigs_.AddEntriesFrom(input, _repeated_threatSwarmConfigs_codec);
 302            break;
 303          }
 304        }
 305      }
 306    #endif
 0307    }
 308
 309    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 310    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 311    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0312    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 313      uint tag;
 0314      while ((tag = input.ReadTag()) != 0) {
 0315      if ((tag & 7) == 4) {
 316        // Abort on any end group tag.
 0317        return;
 318      }
 0319      switch(tag) {
 320          default:
 0321            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 0322            break;
 0323          case 13: {
 0324            EndTime = input.ReadFloat();
 0325            break;
 326          }
 0327          case 21: {
 0328            TimeScale = input.ReadFloat();
 0329            break;
 330          }
 0331          case 26: {
 0332            interceptorSwarmConfigs_.AddEntriesFrom(ref input, _repeated_interceptorSwarmConfigs_codec);
 0333            break;
 334          }
 0335          case 34: {
 0336            threatSwarmConfigs_.AddEntriesFrom(ref input, _repeated_threatSwarmConfigs_codec);
 0337            break;
 338          }
 339        }
 0340      }
 0341    }
 342    #endif
 343
 344  }
 345
 346  #endregion
 347
 348}
 349
 350#endregion Designer generated code