< Summary

Class:Configs.AttackBehaviorConfig
Assembly:bamlab.micromissiles
File(s):/github/workspace/Assets/Scripts/Generated/Proto/AttackBehaviorConfig.cs
Covered lines:91
Uncovered lines:263
Coverable lines:354
Total lines:899
Line coverage:25.7% (91 of 354)
Covered branches:0
Total branches:0
Covered methods:24
Total methods:66
Method coverage:36.3% (24 of 66)

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
AttackBehaviorConfig()0%110100%
get_Descriptor()0%2100%
AttackBehaviorConfig(...)0%12300%
Clone()0%2100%
AttackBehaviorConfig()0%110100%
Equals(...)0%2100%
Equals(...)0%42600%
GetHashCode()0%30500%
ToString()0%2100%
WriteTo(...)0%2100%
InternalWriteTo(...)0%30500%
CalculateSize()0%30500%
MergeFrom(...)0%42600%
MergeFrom(...)0%110100%
InternalMergeFrom(...)0%7.237083.33%
FlightPlan()0%110100%
get_Descriptor()0%2100%
FlightPlan(...)0%2100%
Clone()0%2100%
FlightPlan()0%110100%
Equals(...)0%2100%
Equals(...)0%30500%
GetHashCode()0%12300%
ToString()0%2100%
WriteTo(...)0%2100%
InternalWriteTo(...)0%12300%
CalculateSize()0%12300%
MergeFrom(...)0%12300%
MergeFrom(...)0%2100%
InternalMergeFrom(...)0%5.335076.47%
Waypoint()0%110100%
get_Descriptor()0%2100%
Waypoint(...)0%2100%
Clone()0%2100%
Waypoint()0%110100%
Equals(...)0%2100%
Equals(...)0%42600%
GetHashCode()0%30500%
ToString()0%2100%
WriteTo(...)0%2100%
InternalWriteTo(...)0%30500%
CalculateSize()0%30500%
MergeFrom(...)0%30500%
MergeFrom(...)0%2100%
InternalMergeFrom(...)0%6.296080%

File(s)

/github/workspace/Assets/Scripts/Generated/Proto/AttackBehaviorConfig.cs

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: Configs/attack_behavior_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/attack_behavior_config.proto</summary>
 15  public static partial class AttackBehaviorConfigReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for Configs/attack_behavior_config.proto</summary>
 19    public static pbr::FileDescriptor Descriptor {
 20      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static AttackBehaviorConfigReflection() {
 25      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "CiRDb25maWdzL2F0dGFja19iZWhhdmlvcl9jb25maWcucHJvdG8SB2NvbmZp",
 28            "Z3MaG0NvbmZpZ3Mvc3RhdGljX2NvbmZpZy5wcm90byKpAwoUQXR0YWNrQmVo",
 29            "YXZpb3JDb25maWcSDAoEbmFtZRgBIAEoCRIhCgR0eXBlGAIgASgOMhMuY29u",
 30            "Zmlncy5BdHRhY2tUeXBlEj0KC2ZsaWdodF9wbGFuGAMgASgLMiguY29uZmln",
 31            "cy5BdHRhY2tCZWhhdmlvckNvbmZpZy5GbGlnaHRQbGFuGt0BCgpGbGlnaHRQ",
 32            "bGFuEjoKBHR5cGUYASABKA4yLC5jb25maWdzLkF0dGFja0JlaGF2aW9yQ29u",
 33            "ZmlnLkZsaWdodFBsYW5UeXBlEkQKCXdheXBvaW50cxgCIAMoCzIxLmNvbmZp",
 34            "Z3MuQXR0YWNrQmVoYXZpb3JDb25maWcuRmxpZ2h0UGxhbi5XYXlwb2ludBpN",
 35            "CghXYXlwb2ludBIQCghkaXN0YW5jZRgBIAEoAhIQCghhbHRpdHVkZRgCIAEo",
 36            "AhIdCgVwb3dlchgDIAEoDjIOLmNvbmZpZ3MuUG93ZXIiQQoORmxpZ2h0UGxh",
 37            "blR5cGUSFwoTSU5WQUxJRF9GTElHSFRfUExBThAAEhYKEkRJU1RBTkNFX1RP",
 38            "X1RBUkdFVBABKl0KCkF0dGFja1R5cGUSEgoOSU5WQUxJRF9BVFRBQ0sQABIR",
 39            "Cg1ESVJFQ1RfQVRUQUNLEAESFQoRUFJFUExBTk5FRF9BVFRBQ0sQAhIRCg1T",
 40            "TEFMT01fQVRUQUNLEANiBnByb3RvMw=="));
 41      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 42          new pbr::FileDescriptor[] { global::Configs.StaticConfigReflection.Descriptor, },
 43          new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Configs.AttackType), }, null, new pbr::GeneratedClrTypeInf
 44            new pbr::GeneratedClrTypeInfo(typeof(global::Configs.AttackBehaviorConfig), global::Configs.AttackBehaviorCo
 45          }));
 46    }
 47    #endregion
 48
 49  }
 50  #region Enums
 51  /// <summary>
 52  /// Attack type enumeration.
 53  /// </summary>
 54  public enum AttackType {
 55    [pbr::OriginalName("INVALID_ATTACK")] InvalidAttack = 0,
 56    [pbr::OriginalName("DIRECT_ATTACK")] DirectAttack = 1,
 57    [pbr::OriginalName("PREPLANNED_ATTACK")] PreplannedAttack = 2,
 58    [pbr::OriginalName("SLALOM_ATTACK")] SlalomAttack = 3,
 59  }
 60
 61  #endregion
 62
 63  #region Messages
 64  /// <summary>
 65  /// Attack behavior configuration.
 66  /// </summary>
 67  [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
 68  public sealed partial class AttackBehaviorConfig : pb::IMessage<AttackBehaviorConfig>
 69  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 70      , pb::IBufferMessage
 71  #endif
 72  {
 173    private static readonly pb::MessageParser<AttackBehaviorConfig> _parser = new pb::MessageParser<AttackBehaviorConfig
 74    private pb::UnknownFieldSet _unknownFields;
 75    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 76    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 077    public static pb::MessageParser<AttackBehaviorConfig> Parser { get { return _parser; } }
 78
 79    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 80    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 81    public static pbr::MessageDescriptor Descriptor {
 082      get { return global::Configs.AttackBehaviorConfigReflection.Descriptor.MessageTypes[0]; }
 83    }
 84
 85    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 86    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 87    pbr::MessageDescriptor pb::IMessage.Descriptor {
 088      get { return Descriptor; }
 89    }
 90
 91    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 92    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 151093    public AttackBehaviorConfig() {
 94      OnConstruction();
 75595    }
 96
 97    partial void OnConstruction();
 98
 99    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 100    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0101    public AttackBehaviorConfig(AttackBehaviorConfig other) : this() {
 0102      name_ = other.name_;
 0103      type_ = other.type_;
 0104      flightPlan_ = other.flightPlan_ != null ? other.flightPlan_.Clone() : null;
 0105      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 0106    }
 107
 108    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 109    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0110    public AttackBehaviorConfig Clone() {
 0111      return new AttackBehaviorConfig(this);
 0112    }
 113
 114    /// <summary>Field number for the "name" field.</summary>
 115    public const int NameFieldNumber = 1;
 755116    private string name_ = "";
 117    /// <summary>
 118    /// Attack behavior name.
 119    /// </summary>
 120    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 121    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 122    public string Name {
 0123      get { return name_; }
 755124      set {
 755125        name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 755126      }
 127    }
 128
 129    /// <summary>Field number for the "type" field.</summary>
 130    public const int TypeFieldNumber = 2;
 755131    private global::Configs.AttackType type_ = global::Configs.AttackType.InvalidAttack;
 132    /// <summary>
 133    /// Attack type.
 134    /// </summary>
 135    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 136    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 137    public global::Configs.AttackType Type {
 2265138      get { return type_; }
 755139      set {
 755140        type_ = value;
 755141      }
 142    }
 143
 144    /// <summary>Field number for the "flight_plan" field.</summary>
 145    public const int FlightPlanFieldNumber = 3;
 146    private global::Configs.AttackBehaviorConfig.Types.FlightPlan flightPlan_;
 147    /// <summary>
 148    /// Flight plan.
 149    /// </summary>
 150    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 151    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 152    public global::Configs.AttackBehaviorConfig.Types.FlightPlan FlightPlan {
 84660153      get { return flightPlan_; }
 755154      set {
 755155        flightPlan_ = value;
 755156      }
 157    }
 158
 159    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 160    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0161    public override bool Equals(object other) {
 0162      return Equals(other as AttackBehaviorConfig);
 0163    }
 164
 165    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 166    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0167    public bool Equals(AttackBehaviorConfig other) {
 0168      if (ReferenceEquals(other, null)) {
 0169        return false;
 170      }
 0171      if (ReferenceEquals(other, this)) {
 0172        return true;
 173      }
 0174      if (Name != other.Name) return false;
 0175      if (Type != other.Type) return false;
 0176      if (!object.Equals(FlightPlan, other.FlightPlan)) return false;
 0177      return Equals(_unknownFields, other._unknownFields);
 0178    }
 179
 180    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 181    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0182    public override int GetHashCode() {
 0183      int hash = 1;
 0184      if (Name.Length != 0) hash ^= Name.GetHashCode();
 0185      if (Type != global::Configs.AttackType.InvalidAttack) hash ^= Type.GetHashCode();
 0186      if (flightPlan_ != null) hash ^= FlightPlan.GetHashCode();
 0187      if (_unknownFields != null) {
 0188        hash ^= _unknownFields.GetHashCode();
 0189      }
 0190      return hash;
 0191    }
 192
 193    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 194    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0195    public override string ToString() {
 0196      return pb::JsonFormatter.ToDiagnosticString(this);
 0197    }
 198
 199    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 200    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0201    public void WriteTo(pb::CodedOutputStream output) {
 202    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 0203      output.WriteRawMessage(this);
 204    #else
 205      if (Name.Length != 0) {
 206        output.WriteRawTag(10);
 207        output.WriteString(Name);
 208      }
 209      if (Type != global::Configs.AttackType.InvalidAttack) {
 210        output.WriteRawTag(16);
 211        output.WriteEnum((int) Type);
 212      }
 213      if (flightPlan_ != null) {
 214        output.WriteRawTag(26);
 215        output.WriteMessage(FlightPlan);
 216      }
 217      if (_unknownFields != null) {
 218        _unknownFields.WriteTo(output);
 219      }
 220    #endif
 0221    }
 222
 223    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 224    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 225    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0226    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 0227      if (Name.Length != 0) {
 0228        output.WriteRawTag(10);
 0229        output.WriteString(Name);
 0230      }
 0231      if (Type != global::Configs.AttackType.InvalidAttack) {
 0232        output.WriteRawTag(16);
 0233        output.WriteEnum((int) Type);
 0234      }
 0235      if (flightPlan_ != null) {
 0236        output.WriteRawTag(26);
 0237        output.WriteMessage(FlightPlan);
 0238      }
 0239      if (_unknownFields != null) {
 0240        _unknownFields.WriteTo(ref output);
 0241      }
 0242    }
 243    #endif
 244
 245    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 246    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0247    public int CalculateSize() {
 0248      int size = 0;
 0249      if (Name.Length != 0) {
 0250        size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
 0251      }
 0252      if (Type != global::Configs.AttackType.InvalidAttack) {
 0253        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type);
 0254      }
 0255      if (flightPlan_ != null) {
 0256        size += 1 + pb::CodedOutputStream.ComputeMessageSize(FlightPlan);
 0257      }
 0258      if (_unknownFields != null) {
 0259        size += _unknownFields.CalculateSize();
 0260      }
 0261      return size;
 0262    }
 263
 264    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 265    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0266    public void MergeFrom(AttackBehaviorConfig other) {
 0267      if (other == null) {
 0268        return;
 269      }
 0270      if (other.Name.Length != 0) {
 0271        Name = other.Name;
 0272      }
 0273      if (other.Type != global::Configs.AttackType.InvalidAttack) {
 0274        Type = other.Type;
 0275      }
 0276      if (other.flightPlan_ != null) {
 0277        if (flightPlan_ == null) {
 0278          FlightPlan = new global::Configs.AttackBehaviorConfig.Types.FlightPlan();
 0279        }
 0280        FlightPlan.MergeFrom(other.FlightPlan);
 0281      }
 0282      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0283    }
 284
 285    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 286    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 755287    public void MergeFrom(pb::CodedInputStream input) {
 288    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 755289      input.ReadRawMessage(this);
 290    #else
 291      uint tag;
 292      while ((tag = input.ReadTag()) != 0) {
 293      if ((tag & 7) == 4) {
 294        // Abort on any end group tag.
 295        return;
 296      }
 297      switch(tag) {
 298          default:
 299            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 300            break;
 301          case 10: {
 302            Name = input.ReadString();
 303            break;
 304          }
 305          case 16: {
 306            Type = (global::Configs.AttackType) input.ReadEnum();
 307            break;
 308          }
 309          case 26: {
 310            if (flightPlan_ == null) {
 311              FlightPlan = new global::Configs.AttackBehaviorConfig.Types.FlightPlan();
 312            }
 313            input.ReadMessage(FlightPlan);
 314            break;
 315          }
 316        }
 317      }
 318    #endif
 755319    }
 320
 321    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 322    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 323    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 755324    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 325      uint tag;
 5285326      while ((tag = input.ReadTag()) != 0) {
 2265327      if ((tag & 7) == 4) {
 328        // Abort on any end group tag.
 0329        return;
 330      }
 2265331      switch(tag) {
 332          default:
 0333            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 0334            break;
 755335          case 10: {
 755336            Name = input.ReadString();
 755337            break;
 338          }
 755339          case 16: {
 755340            Type = (global::Configs.AttackType) input.ReadEnum();
 755341            break;
 342          }
 755343          case 26: {
 1510344            if (flightPlan_ == null) {
 755345              FlightPlan = new global::Configs.AttackBehaviorConfig.Types.FlightPlan();
 755346            }
 755347            input.ReadMessage(FlightPlan);
 755348            break;
 349          }
 350        }
 2265351      }
 755352    }
 353    #endif
 354
 355    #region Nested types
 356    /// <summary>Container for nested types declared in the AttackBehaviorConfig message type.</summary>
 357    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 358    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 359    public static partial class Types {
 360      /// <summary>
 361      /// Flight plan type enumeration.
 362      /// </summary>
 363      public enum FlightPlanType {
 364        [pbr::OriginalName("INVALID_FLIGHT_PLAN")] InvalidFlightPlan = 0,
 365        [pbr::OriginalName("DISTANCE_TO_TARGET")] DistanceToTarget = 1,
 366      }
 367
 368      /// <summary>
 369      /// Flight plan.
 370      /// </summary>
 371      [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
 372      public sealed partial class FlightPlan : pb::IMessage<FlightPlan>
 373      #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 374          , pb::IBufferMessage
 375      #endif
 376      {
 1377        private static readonly pb::MessageParser<FlightPlan> _parser = new pb::MessageParser<FlightPlan>(() => new Flig
 378        private pb::UnknownFieldSet _unknownFields;
 379        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 380        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0381        public static pb::MessageParser<FlightPlan> Parser { get { return _parser; } }
 382
 383        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 384        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 385        public static pbr::MessageDescriptor Descriptor {
 0386          get { return global::Configs.AttackBehaviorConfig.Descriptor.NestedTypes[0]; }
 387        }
 388
 389        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 390        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 391        pbr::MessageDescriptor pb::IMessage.Descriptor {
 0392          get { return Descriptor; }
 393        }
 394
 395        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 396        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1510397        public FlightPlan() {
 398          OnConstruction();
 755399        }
 400
 401        partial void OnConstruction();
 402
 403        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 404        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0405        public FlightPlan(FlightPlan other) : this() {
 0406          type_ = other.type_;
 0407          waypoints_ = other.waypoints_.Clone();
 0408          _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 0409        }
 410
 411        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 412        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0413        public FlightPlan Clone() {
 0414          return new FlightPlan(this);
 0415        }
 416
 417        /// <summary>Field number for the "type" field.</summary>
 418        public const int TypeFieldNumber = 1;
 755419        private global::Configs.AttackBehaviorConfig.Types.FlightPlanType type_ = global::Configs.AttackBehaviorConfig.T
 420        /// <summary>
 421        /// Flight plan type.
 422        /// </summary>
 423        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 424        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 425        public global::Configs.AttackBehaviorConfig.Types.FlightPlanType Type {
 0426          get { return type_; }
 755427          set {
 755428            type_ = value;
 755429          }
 430        }
 431
 432        /// <summary>Field number for the "waypoints" field.</summary>
 433        public const int WaypointsFieldNumber = 2;
 1434        private static readonly pb::FieldCodec<global::Configs.AttackBehaviorConfig.Types.FlightPlan.Types.Waypoint> _re
 435            = pb::FieldCodec.ForMessage(18, global::Configs.AttackBehaviorConfig.Types.FlightPlan.Types.Waypoint.Parser)
 755436        private readonly pbc::RepeatedField<global::Configs.AttackBehaviorConfig.Types.FlightPlan.Types.Waypoint> waypoi
 437        /// <summary>
 438        /// Waypoints.
 439        /// </summary>
 440        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 441        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 442        public pbc::RepeatedField<global::Configs.AttackBehaviorConfig.Types.FlightPlan.Types.Waypoint> Waypoints {
 82395443          get { return waypoints_; }
 444        }
 445
 446        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 447        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0448        public override bool Equals(object other) {
 0449          return Equals(other as FlightPlan);
 0450        }
 451
 452        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 453        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0454        public bool Equals(FlightPlan other) {
 0455          if (ReferenceEquals(other, null)) {
 0456            return false;
 457          }
 0458          if (ReferenceEquals(other, this)) {
 0459            return true;
 460          }
 0461          if (Type != other.Type) return false;
 0462          if(!waypoints_.Equals(other.waypoints_)) return false;
 0463          return Equals(_unknownFields, other._unknownFields);
 0464        }
 465
 466        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 467        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0468        public override int GetHashCode() {
 0469          int hash = 1;
 0470          if (Type != global::Configs.AttackBehaviorConfig.Types.FlightPlanType.InvalidFlightPlan) hash ^= Type.GetHashC
 0471          hash ^= waypoints_.GetHashCode();
 0472          if (_unknownFields != null) {
 0473            hash ^= _unknownFields.GetHashCode();
 0474          }
 0475          return hash;
 0476        }
 477
 478        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 479        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0480        public override string ToString() {
 0481          return pb::JsonFormatter.ToDiagnosticString(this);
 0482        }
 483
 484        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 485        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0486        public void WriteTo(pb::CodedOutputStream output) {
 487        #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 0488          output.WriteRawMessage(this);
 489        #else
 490          if (Type != global::Configs.AttackBehaviorConfig.Types.FlightPlanType.InvalidFlightPlan) {
 491            output.WriteRawTag(8);
 492            output.WriteEnum((int) Type);
 493          }
 494          waypoints_.WriteTo(output, _repeated_waypoints_codec);
 495          if (_unknownFields != null) {
 496            _unknownFields.WriteTo(output);
 497          }
 498        #endif
 0499        }
 500
 501        #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 502        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 503        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0504        void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 0505          if (Type != global::Configs.AttackBehaviorConfig.Types.FlightPlanType.InvalidFlightPlan) {
 0506            output.WriteRawTag(8);
 0507            output.WriteEnum((int) Type);
 0508          }
 0509          waypoints_.WriteTo(ref output, _repeated_waypoints_codec);
 0510          if (_unknownFields != null) {
 0511            _unknownFields.WriteTo(ref output);
 0512          }
 0513        }
 514        #endif
 515
 516        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 517        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0518        public int CalculateSize() {
 0519          int size = 0;
 0520          if (Type != global::Configs.AttackBehaviorConfig.Types.FlightPlanType.InvalidFlightPlan) {
 0521            size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type);
 0522          }
 0523          size += waypoints_.CalculateSize(_repeated_waypoints_codec);
 0524          if (_unknownFields != null) {
 0525            size += _unknownFields.CalculateSize();
 0526          }
 0527          return size;
 0528        }
 529
 530        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 531        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0532        public void MergeFrom(FlightPlan other) {
 0533          if (other == null) {
 0534            return;
 535          }
 0536          if (other.Type != global::Configs.AttackBehaviorConfig.Types.FlightPlanType.InvalidFlightPlan) {
 0537            Type = other.Type;
 0538          }
 0539          waypoints_.Add(other.waypoints_);
 0540          _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0541        }
 542
 543        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 544        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0545        public void MergeFrom(pb::CodedInputStream input) {
 546        #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 0547          input.ReadRawMessage(this);
 548        #else
 549          uint tag;
 550          while ((tag = input.ReadTag()) != 0) {
 551          if ((tag & 7) == 4) {
 552            // Abort on any end group tag.
 553            return;
 554          }
 555          switch(tag) {
 556              default:
 557                _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 558                break;
 559              case 8: {
 560                Type = (global::Configs.AttackBehaviorConfig.Types.FlightPlanType) input.ReadEnum();
 561                break;
 562              }
 563              case 18: {
 564                waypoints_.AddEntriesFrom(input, _repeated_waypoints_codec);
 565                break;
 566              }
 567            }
 568          }
 569        #endif
 0570        }
 571
 572        #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 573        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 574        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 755575        void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 576          uint tag;
 3775577          while ((tag = input.ReadTag()) != 0) {
 1510578          if ((tag & 7) == 4) {
 579            // Abort on any end group tag.
 0580            return;
 581          }
 1510582          switch(tag) {
 583              default:
 0584                _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 0585                break;
 755586              case 8: {
 755587                Type = (global::Configs.AttackBehaviorConfig.Types.FlightPlanType) input.ReadEnum();
 755588                break;
 589              }
 755590              case 18: {
 755591                waypoints_.AddEntriesFrom(ref input, _repeated_waypoints_codec);
 755592                break;
 593              }
 594            }
 1510595          }
 755596        }
 597        #endif
 598
 599        #region Nested types
 600        /// <summary>Container for nested types declared in the FlightPlan message type.</summary>
 601        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 602        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 603        public static partial class Types {
 604          [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
 605          public sealed partial class Waypoint : pb::IMessage<Waypoint>
 606          #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 607              , pb::IBufferMessage
 608          #endif
 609          {
 2308610            private static readonly pb::MessageParser<Waypoint> _parser = new pb::MessageParser<Waypoint>(() => new Wayp
 611            private pb::UnknownFieldSet _unknownFields;
 612            [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 613            [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 3614            public static pb::MessageParser<Waypoint> Parser { get { return _parser; } }
 615
 616            [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 617            [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 618            public static pbr::MessageDescriptor Descriptor {
 0619              get { return global::Configs.AttackBehaviorConfig.Types.FlightPlan.Descriptor.NestedTypes[0]; }
 620            }
 621
 622            [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 623            [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 624            pbr::MessageDescriptor pb::IMessage.Descriptor {
 0625              get { return Descriptor; }
 626            }
 627
 628            [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 629            [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 4614630            public Waypoint() {
 631              OnConstruction();
 2307632            }
 633
 634            partial void OnConstruction();
 635
 636            [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 637            [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0638            public Waypoint(Waypoint other) : this() {
 0639              distance_ = other.distance_;
 0640              altitude_ = other.altitude_;
 0641              power_ = other.power_;
 0642              _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 0643            }
 644
 645            [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 646            [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0647            public Waypoint Clone() {
 0648              return new Waypoint(this);
 0649            }
 650
 651            /// <summary>Field number for the "distance" field.</summary>
 652            public const int DistanceFieldNumber = 1;
 653            private float distance_;
 654            /// <summary>
 655            /// Distance.
 656            /// </summary>
 657            [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 658            [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 659            public float Distance {
 249390660              get { return distance_; }
 2307661              set {
 2307662                distance_ = value;
 2307663              }
 664            }
 665
 666            /// <summary>Field number for the "altitude" field.</summary>
 667            public const int AltitudeFieldNumber = 2;
 668            private float altitude_;
 669            /// <summary>
 670            /// Altitude.
 671            /// </summary>
 672            [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 673            [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 674            public float Altitude {
 249390675              get { return altitude_; }
 2307676              set {
 2307677                altitude_ = value;
 2307678              }
 679            }
 680
 681            /// <summary>Field number for the "power" field.</summary>
 682            public const int PowerFieldNumber = 3;
 2307683            private global::Configs.Power power_ = global::Configs.Power.Idle;
 684            /// <summary>
 685            /// Power.
 686            /// </summary>
 687            [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 688            [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 689            public global::Configs.Power Power {
 249390690              get { return power_; }
 2307691              set {
 2307692                power_ = value;
 2307693              }
 694            }
 695
 696            [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 697            [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0698            public override bool Equals(object other) {
 0699              return Equals(other as Waypoint);
 0700            }
 701
 702            [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 703            [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0704            public bool Equals(Waypoint other) {
 0705              if (ReferenceEquals(other, null)) {
 0706                return false;
 707              }
 0708              if (ReferenceEquals(other, this)) {
 0709                return true;
 710              }
 0711              if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Distance, other.Distance)) return
 0712              if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Altitude, other.Altitude)) return
 0713              if (Power != other.Power) return false;
 0714              return Equals(_unknownFields, other._unknownFields);
 0715            }
 716
 717            [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 718            [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0719            public override int GetHashCode() {
 0720              int hash = 1;
 0721              if (Distance != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Dista
 0722              if (Altitude != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Altit
 0723              if (Power != global::Configs.Power.Idle) hash ^= Power.GetHashCode();
 0724              if (_unknownFields != null) {
 0725                hash ^= _unknownFields.GetHashCode();
 0726              }
 0727              return hash;
 0728            }
 729
 730            [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 731            [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0732            public override string ToString() {
 0733              return pb::JsonFormatter.ToDiagnosticString(this);
 0734            }
 735
 736            [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 737            [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0738            public void WriteTo(pb::CodedOutputStream output) {
 739            #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 0740              output.WriteRawMessage(this);
 741            #else
 742              if (Distance != 0F) {
 743                output.WriteRawTag(13);
 744                output.WriteFloat(Distance);
 745              }
 746              if (Altitude != 0F) {
 747                output.WriteRawTag(21);
 748                output.WriteFloat(Altitude);
 749              }
 750              if (Power != global::Configs.Power.Idle) {
 751                output.WriteRawTag(24);
 752                output.WriteEnum((int) Power);
 753              }
 754              if (_unknownFields != null) {
 755                _unknownFields.WriteTo(output);
 756              }
 757            #endif
 0758            }
 759
 760            #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 761            [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 762            [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0763            void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 0764              if (Distance != 0F) {
 0765                output.WriteRawTag(13);
 0766                output.WriteFloat(Distance);
 0767              }
 0768              if (Altitude != 0F) {
 0769                output.WriteRawTag(21);
 0770                output.WriteFloat(Altitude);
 0771              }
 0772              if (Power != global::Configs.Power.Idle) {
 0773                output.WriteRawTag(24);
 0774                output.WriteEnum((int) Power);
 0775              }
 0776              if (_unknownFields != null) {
 0777                _unknownFields.WriteTo(ref output);
 0778              }
 0779            }
 780            #endif
 781
 782            [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 783            [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0784            public int CalculateSize() {
 0785              int size = 0;
 0786              if (Distance != 0F) {
 0787                size += 1 + 4;
 0788              }
 0789              if (Altitude != 0F) {
 0790                size += 1 + 4;
 0791              }
 0792              if (Power != global::Configs.Power.Idle) {
 0793                size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Power);
 0794              }
 0795              if (_unknownFields != null) {
 0796                size += _unknownFields.CalculateSize();
 0797              }
 0798              return size;
 0799            }
 800
 801            [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 802            [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0803            public void MergeFrom(Waypoint other) {
 0804              if (other == null) {
 0805                return;
 806              }
 0807              if (other.Distance != 0F) {
 0808                Distance = other.Distance;
 0809              }
 0810              if (other.Altitude != 0F) {
 0811                Altitude = other.Altitude;
 0812              }
 0813              if (other.Power != global::Configs.Power.Idle) {
 0814                Power = other.Power;
 0815              }
 0816              _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0817            }
 818
 819            [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 820            [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0821            public void MergeFrom(pb::CodedInputStream input) {
 822            #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 0823              input.ReadRawMessage(this);
 824            #else
 825              uint tag;
 826              while ((tag = input.ReadTag()) != 0) {
 827              if ((tag & 7) == 4) {
 828                // Abort on any end group tag.
 829                return;
 830              }
 831              switch(tag) {
 832                  default:
 833                    _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 834                    break;
 835                  case 13: {
 836                    Distance = input.ReadFloat();
 837                    break;
 838                  }
 839                  case 21: {
 840                    Altitude = input.ReadFloat();
 841                    break;
 842                  }
 843                  case 24: {
 844                    Power = (global::Configs.Power) input.ReadEnum();
 845                    break;
 846                  }
 847                }
 848              }
 849            #endif
 0850            }
 851
 852            #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 853            [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 854            [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 2307855            void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 856              uint tag;
 16149857              while ((tag = input.ReadTag()) != 0) {
 6921858              if ((tag & 7) == 4) {
 859                // Abort on any end group tag.
 0860                return;
 861              }
 6921862              switch(tag) {
 863                  default:
 0864                    _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 0865                    break;
 2307866                  case 13: {
 2307867                    Distance = input.ReadFloat();
 2307868                    break;
 869                  }
 2307870                  case 21: {
 2307871                    Altitude = input.ReadFloat();
 2307872                    break;
 873                  }
 2307874                  case 24: {
 2307875                    Power = (global::Configs.Power) input.ReadEnum();
 2307876                    break;
 877                  }
 878                }
 6921879              }
 2307880            }
 881            #endif
 882
 883          }
 884
 885        }
 886        #endregion
 887
 888      }
 889
 890    }
 891    #endregion
 892
 893  }
 894
 895  #endregion
 896
 897}
 898
 899#endregion Designer generated code

Methods/Properties

AttackBehaviorConfig()
Parser()
Descriptor()
get_Descriptor()
AttackBehaviorConfig()
AttackBehaviorConfig(Configs.AttackBehaviorConfig)
Clone()
Name()
Name(System.String)
Type()
Type(Configs.AttackType)
FlightPlan()
FlightPlan(Configs.AttackBehaviorConfig/Types/FlightPlan)
Equals(System.Object)
Equals(Configs.AttackBehaviorConfig)
GetHashCode()
ToString()
WriteTo(Google.Protobuf.CodedOutputStream)
InternalWriteTo(Google.Protobuf.WriteContext&)
CalculateSize()
MergeFrom(Configs.AttackBehaviorConfig)
MergeFrom(Google.Protobuf.CodedInputStream)
InternalMergeFrom(Google.Protobuf.ParseContext&)
FlightPlan()
Parser()
Descriptor()
get_Descriptor()
FlightPlan()
FlightPlan(Configs.AttackBehaviorConfig/Types/FlightPlan)
Clone()
Type()
Type(Configs.AttackBehaviorConfig/Types/FlightPlanType)
Waypoints()
Equals(System.Object)
Equals(Configs.AttackBehaviorConfig/Types/FlightPlan)
GetHashCode()
ToString()
WriteTo(Google.Protobuf.CodedOutputStream)
InternalWriteTo(Google.Protobuf.WriteContext&)
CalculateSize()
MergeFrom(Configs.AttackBehaviorConfig/Types/FlightPlan)
MergeFrom(Google.Protobuf.CodedInputStream)
InternalMergeFrom(Google.Protobuf.ParseContext&)
Waypoint()
Parser()
Descriptor()
get_Descriptor()
Waypoint()
Waypoint(Configs.AttackBehaviorConfig/Types/FlightPlan/Types/Waypoint)
Clone()
Distance()
Distance(System.Single)
Altitude()
Altitude(System.Single)
Power()
Power(Configs.Power)
Equals(System.Object)
Equals(Configs.AttackBehaviorConfig/Types/FlightPlan/Types/Waypoint)
GetHashCode()
ToString()
WriteTo(Google.Protobuf.CodedOutputStream)
InternalWriteTo(Google.Protobuf.WriteContext&)
CalculateSize()
MergeFrom(Configs.AttackBehaviorConfig/Types/FlightPlan/Types/Waypoint)
MergeFrom(Google.Protobuf.CodedInputStream)
InternalMergeFrom(Google.Protobuf.ParseContext&)