< Summary

Class:DCL.ECSComponents.PBPointerEvents
Assembly:Decentraland.Protocol.GeneratedCode
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/DecentralandProtocol/PointerEvents.gen.cs
Covered lines:30
Uncovered lines:196
Coverable lines:226
Total lines:867
Line coverage:13.2% (30 of 226)
Covered branches:0
Total branches:0
Covered methods:20
Total methods:66
Method coverage:30.3% (20 of 66)

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
PBPointerEvents()0%110100%
get_Descriptor()0%2100%
PBPointerEvents(...)0%2100%
Clone()0%2100%
PBPointerEvents()0%110100%
Equals(...)0%2100%
Equals(...)0%20400%
GetHashCode()0%6200%
ToString()0%2100%
WriteTo(...)0%6200%
CalculateSize()0%6200%
MergeFrom(...)0%6200%
MergeFrom(...)0%12300%
Info()0%110100%
get_Descriptor()0%2100%
Info()0%110100%
Info(...)0%2100%
Clone()0%2100%
ClearButton()0%2100%
ClearHoverText()0%2100%
ClearMaxDistance()0%2100%
ClearShowFeedback()0%2100%
Equals(...)0%2100%
Equals(...)0%56700%
GetHashCode()0%42600%
ToString()0%2100%
WriteTo(...)0%42600%
CalculateSize()0%42600%
MergeFrom(...)0%42600%
MergeFrom(...)0%56700%
Entry()0%110100%
get_Descriptor()0%2100%
Entry()0%110100%
Entry(...)0%12300%
Clone()0%2100%
Equals(...)0%2100%
Equals(...)0%30500%
GetHashCode()0%20400%
ToString()0%2100%
WriteTo(...)0%20400%
CalculateSize()0%20400%
MergeFrom(...)0%30500%
MergeFrom(...)0%30500%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/DecentralandProtocol/PointerEvents.gen.cs

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: decentraland/sdk/components/pointer_events.proto
 4// </auto-generated>
 5#pragma warning disable 1591, 0612, 3021
 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 DCL.ECSComponents {
 13
 14  /// <summary>Holder for reflection information generated from decentraland/sdk/components/pointer_events.proto</summar
 15  public static partial class PointerEventsReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for decentraland/sdk/components/pointer_events.proto</summary>
 19    public static pbr::FileDescriptor Descriptor {
 20      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static PointerEventsReflection() {
 25      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "CjBkZWNlbnRyYWxhbmQvc2RrL2NvbXBvbmVudHMvcG9pbnRlcl9ldmVudHMu",
 28            "cHJvdG8SG2RlY2VudHJhbGFuZC5zZGsuY29tcG9uZW50cxo1ZGVjZW50cmFs",
 29            "YW5kL3Nkay9jb21wb25lbnRzL2NvbW1vbi9pbnB1dF9hY3Rpb24ucHJvdG8i",
 30            "1AMKD1BCUG9pbnRlckV2ZW50cxJKCg5wb2ludGVyX2V2ZW50cxgBIAMoCzIy",
 31            "LmRlY2VudHJhbGFuZC5zZGsuY29tcG9uZW50cy5QQlBvaW50ZXJFdmVudHMu",
 32            "RW50cnka2QEKBEluZm8SRAoGYnV0dG9uGAEgASgOMi8uZGVjZW50cmFsYW5k",
 33            "LnNkay5jb21wb25lbnRzLmNvbW1vbi5JbnB1dEFjdGlvbkgAiAEBEhcKCmhv",
 34            "dmVyX3RleHQYAiABKAlIAYgBARIZCgxtYXhfZGlzdGFuY2UYAyABKAJIAogB",
 35            "ARIaCg1zaG93X2ZlZWRiYWNrGAQgASgISAOIAQFCCQoHX2J1dHRvbkINCgtf",
 36            "aG92ZXJfdGV4dEIPCg1fbWF4X2Rpc3RhbmNlQhAKDl9zaG93X2ZlZWRiYWNr",
 37            "GpgBCgVFbnRyeRJICgpldmVudF90eXBlGAEgASgOMjQuZGVjZW50cmFsYW5k",
 38            "LnNkay5jb21wb25lbnRzLmNvbW1vbi5Qb2ludGVyRXZlbnRUeXBlEkUKCmV2",
 39            "ZW50X2luZm8YAiABKAsyMS5kZWNlbnRyYWxhbmQuc2RrLmNvbXBvbmVudHMu",
 40            "UEJQb2ludGVyRXZlbnRzLkluZm9CFKoCEURDTC5FQ1NDb21wb25lbnRzYgZw",
 41            "cm90bzM="));
 42      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 43          new pbr::FileDescriptor[] { global::DCL.ECSComponents.InputActionReflection.Descriptor, },
 44          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
 45            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBPointerEvents), global::DCL.ECSComponents.P
 46            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBPointerEvents.Types.Entry), global::DCL.ECS
 47          }));
 48    }
 49    #endregion
 50
 51  }
 52  #region Messages
 53  /// <summary>
 54  /// PointerEvents adds configurable pointer-based interactions to the attached Entity.
 55  ///
 56  /// Events that match the criteria defined in the PointerEvents structure are reported back to the
 57  /// Entity via the PointerEventsResult component.
 58  ///
 59  /// Some examples of events that can be detected:
 60  /// - Pointer hovering over the Entity.
 61  /// - Held mouse button released over the Entity.
 62  /// - Controller button pressed while targeting the Entity.
 63  /// - Key pressed while targeting the Entity, but only in close range.
 64  ///
 65  /// It also supports simple visual feedback when interactions occur, by showing floating text.
 66  /// More sophisticated feedback requires the use of other components.
 67  /// </summary>
 68  public sealed partial class PBPointerEvents : pb::IMessage<PBPointerEvents>
 69  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 70      , pb::IBufferMessage
 71  #endif
 72  {
 173    private static readonly pb::MessageParser<PBPointerEvents> _parser = new pb::MessageParser<PBPointerEvents>(() => ne
 74    private pb::UnknownFieldSet _unknownFields;
 75    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 76    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 077    public static pb::MessageParser<PBPointerEvents> 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::DCL.ECSComponents.PointerEventsReflection.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)]
 393    public PBPointerEvents() {
 94      OnConstruction();
 395    }
 96
 97    partial void OnConstruction();
 98
 99    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 100    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0101    public PBPointerEvents(PBPointerEvents other) : this() {
 0102      pointerEvents_ = other.pointerEvents_.Clone();
 0103      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 0104    }
 105
 106    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 107    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 108    public PBPointerEvents Clone() {
 0109      return new PBPointerEvents(this);
 110    }
 111
 112    /// <summary>Field number for the "pointer_events" field.</summary>
 113    public const int PointerEventsFieldNumber = 1;
 1114    private static readonly pb::FieldCodec<global::DCL.ECSComponents.PBPointerEvents.Types.Entry> _repeated_pointerEvent
 115        = pb::FieldCodec.ForMessage(10, global::DCL.ECSComponents.PBPointerEvents.Types.Entry.Parser);
 3116    private readonly pbc::RepeatedField<global::DCL.ECSComponents.PBPointerEvents.Types.Entry> pointerEvents_ = new pbc:
 117    /// <summary>
 118    /// the list of relevant events to detect
 119    /// </summary>
 120    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 121    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 122    public pbc::RepeatedField<global::DCL.ECSComponents.PBPointerEvents.Types.Entry> PointerEvents {
 10123      get { return pointerEvents_; }
 124    }
 125
 126    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 127    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 128    public override bool Equals(object other) {
 0129      return Equals(other as PBPointerEvents);
 130    }
 131
 132    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 133    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 134    public bool Equals(PBPointerEvents other) {
 0135      if (ReferenceEquals(other, null)) {
 0136        return false;
 137      }
 0138      if (ReferenceEquals(other, this)) {
 0139        return true;
 140      }
 0141      if(!pointerEvents_.Equals(other.pointerEvents_)) return false;
 0142      return Equals(_unknownFields, other._unknownFields);
 143    }
 144
 145    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 146    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 147    public override int GetHashCode() {
 0148      int hash = 1;
 0149      hash ^= pointerEvents_.GetHashCode();
 0150      if (_unknownFields != null) {
 0151        hash ^= _unknownFields.GetHashCode();
 152      }
 0153      return hash;
 154    }
 155
 156    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 157    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 158    public override string ToString() {
 0159      return pb::JsonFormatter.ToDiagnosticString(this);
 160    }
 161
 162    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 163    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 164    public void WriteTo(pb::CodedOutputStream output) {
 165    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 166      output.WriteRawMessage(this);
 167    #else
 0168      pointerEvents_.WriteTo(output, _repeated_pointerEvents_codec);
 0169      if (_unknownFields != null) {
 0170        _unknownFields.WriteTo(output);
 171      }
 172    #endif
 0173    }
 174
 175    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 176    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 177    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 178    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 179      pointerEvents_.WriteTo(ref output, _repeated_pointerEvents_codec);
 180      if (_unknownFields != null) {
 181        _unknownFields.WriteTo(ref output);
 182      }
 183    }
 184    #endif
 185
 186    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 187    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 188    public int CalculateSize() {
 0189      int size = 0;
 0190      size += pointerEvents_.CalculateSize(_repeated_pointerEvents_codec);
 0191      if (_unknownFields != null) {
 0192        size += _unknownFields.CalculateSize();
 193      }
 0194      return size;
 195    }
 196
 197    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 198    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 199    public void MergeFrom(PBPointerEvents other) {
 0200      if (other == null) {
 0201        return;
 202      }
 0203      pointerEvents_.Add(other.pointerEvents_);
 0204      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0205    }
 206
 207    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 208    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 209    public void MergeFrom(pb::CodedInputStream input) {
 210    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 211      input.ReadRawMessage(this);
 212    #else
 213      uint tag;
 0214      while ((tag = input.ReadTag()) != 0) {
 215        switch(tag) {
 216          default:
 0217            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0218            break;
 219          case 10: {
 0220            pointerEvents_.AddEntriesFrom(input, _repeated_pointerEvents_codec);
 221            break;
 222          }
 223        }
 224      }
 225    #endif
 0226    }
 227
 228    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 229    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 230    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 231    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 232      uint tag;
 233      while ((tag = input.ReadTag()) != 0) {
 234        switch(tag) {
 235          default:
 236            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 237            break;
 238          case 10: {
 239            pointerEvents_.AddEntriesFrom(ref input, _repeated_pointerEvents_codec);
 240            break;
 241          }
 242        }
 243      }
 244    }
 245    #endif
 246
 247    #region Nested types
 248    /// <summary>Container for nested types declared in the PBPointerEvents message type.</summary>
 249    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 250    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 251    public static partial class Types {
 252      public sealed partial class Info : pb::IMessage<Info>
 253      #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 254          , pb::IBufferMessage
 255      #endif
 256      {
 1257        private static readonly pb::MessageParser<Info> _parser = new pb::MessageParser<Info>(() => new Info());
 258        private pb::UnknownFieldSet _unknownFields;
 259        private int _hasBits0;
 260        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 261        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0262        public static pb::MessageParser<Info> Parser { get { return _parser; } }
 263
 264        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 265        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 266        public static pbr::MessageDescriptor Descriptor {
 0267          get { return global::DCL.ECSComponents.PBPointerEvents.Descriptor.NestedTypes[0]; }
 268        }
 269
 270        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 271        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 272        pbr::MessageDescriptor pb::IMessage.Descriptor {
 0273          get { return Descriptor; }
 274        }
 275
 276        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 277        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1278        public Info() {
 279          OnConstruction();
 1280        }
 281
 282        partial void OnConstruction();
 283
 284        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 285        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0286        public Info(Info other) : this() {
 0287          _hasBits0 = other._hasBits0;
 0288          button_ = other.button_;
 0289          hoverText_ = other.hoverText_;
 0290          maxDistance_ = other.maxDistance_;
 0291          showFeedback_ = other.showFeedback_;
 0292          _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 0293        }
 294
 295        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 296        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 297        public Info Clone() {
 0298          return new Info(this);
 299        }
 300
 301        /// <summary>Field number for the "button" field.</summary>
 302        public const int ButtonFieldNumber = 1;
 303        private global::DCL.ECSComponents.InputAction button_;
 304        /// <summary>
 305        /// key/button in use (default IA_ANY)
 306        /// </summary>
 307        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 308        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 309        public global::DCL.ECSComponents.InputAction Button {
 4310          get { if ((_hasBits0 & 1) != 0) { return button_; } else { return global::DCL.ECSComponents.InputAction.IaPoin
 311          set {
 1312            _hasBits0 |= 1;
 1313            button_ = value;
 1314          }
 315        }
 316        /// <summary>Gets whether the "button" field is set</summary>
 317        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 318        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 319        public bool HasButton {
 1320          get { return (_hasBits0 & 1) != 0; }
 321        }
 322        /// <summary>Clears the value of the "button" field</summary>
 323        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 324        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 325        public void ClearButton() {
 0326          _hasBits0 &= ~1;
 0327        }
 328
 329        /// <summary>Field number for the "hover_text" field.</summary>
 330        public const int HoverTextFieldNumber = 2;
 331        private string hoverText_;
 332        /// <summary>
 333        /// feedback on hover (default 'Interact')
 334        /// </summary>
 335        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 336        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 337        public string HoverText {
 2338          get { return hoverText_ ?? ""; }
 339          set {
 1340            hoverText_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 1341          }
 342        }
 343        /// <summary>Gets whether the "hover_text" field is set</summary>
 344        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 345        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 346        public bool HasHoverText {
 1347          get { return hoverText_ != null; }
 348        }
 349        /// <summary>Clears the value of the "hover_text" field</summary>
 350        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 351        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 352        public void ClearHoverText() {
 0353          hoverText_ = null;
 0354        }
 355
 356        /// <summary>Field number for the "max_distance" field.</summary>
 357        public const int MaxDistanceFieldNumber = 3;
 358        private float maxDistance_;
 359        /// <summary>
 360        /// range of interaction (default 10)
 361        /// </summary>
 362        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 363        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 364        public float MaxDistance {
 0365          get { if ((_hasBits0 & 2) != 0) { return maxDistance_; } else { return 0F; } }
 366          set {
 0367            _hasBits0 |= 2;
 0368            maxDistance_ = value;
 0369          }
 370        }
 371        /// <summary>Gets whether the "max_distance" field is set</summary>
 372        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 373        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 374        public bool HasMaxDistance {
 1375          get { return (_hasBits0 & 2) != 0; }
 376        }
 377        /// <summary>Clears the value of the "max_distance" field</summary>
 378        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 379        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 380        public void ClearMaxDistance() {
 0381          _hasBits0 &= ~2;
 0382        }
 383
 384        /// <summary>Field number for the "show_feedback" field.</summary>
 385        public const int ShowFeedbackFieldNumber = 4;
 386        private bool showFeedback_;
 387        /// <summary>
 388        /// enable or disable hover text (default true)
 389        /// </summary>
 390        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 391        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 392        public bool ShowFeedback {
 0393          get { if ((_hasBits0 & 4) != 0) { return showFeedback_; } else { return false; } }
 394          set {
 0395            _hasBits0 |= 4;
 0396            showFeedback_ = value;
 0397          }
 398        }
 399        /// <summary>Gets whether the "show_feedback" field is set</summary>
 400        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 401        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 402        public bool HasShowFeedback {
 1403          get { return (_hasBits0 & 4) != 0; }
 404        }
 405        /// <summary>Clears the value of the "show_feedback" field</summary>
 406        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 407        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 408        public void ClearShowFeedback() {
 0409          _hasBits0 &= ~4;
 0410        }
 411
 412        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 413        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 414        public override bool Equals(object other) {
 0415          return Equals(other as Info);
 416        }
 417
 418        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 419        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 420        public bool Equals(Info other) {
 0421          if (ReferenceEquals(other, null)) {
 0422            return false;
 423          }
 0424          if (ReferenceEquals(other, this)) {
 0425            return true;
 426          }
 0427          if (Button != other.Button) return false;
 0428          if (HoverText != other.HoverText) return false;
 0429          if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(MaxDistance, other.MaxDistance)) retu
 0430          if (ShowFeedback != other.ShowFeedback) return false;
 0431          return Equals(_unknownFields, other._unknownFields);
 432        }
 433
 434        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 435        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 436        public override int GetHashCode() {
 0437          int hash = 1;
 0438          if (HasButton) hash ^= Button.GetHashCode();
 0439          if (HasHoverText) hash ^= HoverText.GetHashCode();
 0440          if (HasMaxDistance) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(MaxDistan
 0441          if (HasShowFeedback) hash ^= ShowFeedback.GetHashCode();
 0442          if (_unknownFields != null) {
 0443            hash ^= _unknownFields.GetHashCode();
 444          }
 0445          return hash;
 446        }
 447
 448        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 449        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 450        public override string ToString() {
 0451          return pb::JsonFormatter.ToDiagnosticString(this);
 452        }
 453
 454        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 455        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 456        public void WriteTo(pb::CodedOutputStream output) {
 457        #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 458          output.WriteRawMessage(this);
 459        #else
 0460          if (HasButton) {
 0461            output.WriteRawTag(8);
 0462            output.WriteEnum((int) Button);
 463          }
 0464          if (HasHoverText) {
 0465            output.WriteRawTag(18);
 0466            output.WriteString(HoverText);
 467          }
 0468          if (HasMaxDistance) {
 0469            output.WriteRawTag(29);
 0470            output.WriteFloat(MaxDistance);
 471          }
 0472          if (HasShowFeedback) {
 0473            output.WriteRawTag(32);
 0474            output.WriteBool(ShowFeedback);
 475          }
 0476          if (_unknownFields != null) {
 0477            _unknownFields.WriteTo(output);
 478          }
 479        #endif
 0480        }
 481
 482        #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 483        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 484        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 485        void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 486          if (HasButton) {
 487            output.WriteRawTag(8);
 488            output.WriteEnum((int) Button);
 489          }
 490          if (HasHoverText) {
 491            output.WriteRawTag(18);
 492            output.WriteString(HoverText);
 493          }
 494          if (HasMaxDistance) {
 495            output.WriteRawTag(29);
 496            output.WriteFloat(MaxDistance);
 497          }
 498          if (HasShowFeedback) {
 499            output.WriteRawTag(32);
 500            output.WriteBool(ShowFeedback);
 501          }
 502          if (_unknownFields != null) {
 503            _unknownFields.WriteTo(ref output);
 504          }
 505        }
 506        #endif
 507
 508        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 509        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 510        public int CalculateSize() {
 0511          int size = 0;
 0512          if (HasButton) {
 0513            size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Button);
 514          }
 0515          if (HasHoverText) {
 0516            size += 1 + pb::CodedOutputStream.ComputeStringSize(HoverText);
 517          }
 0518          if (HasMaxDistance) {
 0519            size += 1 + 4;
 520          }
 0521          if (HasShowFeedback) {
 0522            size += 1 + 1;
 523          }
 0524          if (_unknownFields != null) {
 0525            size += _unknownFields.CalculateSize();
 526          }
 0527          return size;
 528        }
 529
 530        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 531        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 532        public void MergeFrom(Info other) {
 0533          if (other == null) {
 0534            return;
 535          }
 0536          if (other.HasButton) {
 0537            Button = other.Button;
 538          }
 0539          if (other.HasHoverText) {
 0540            HoverText = other.HoverText;
 541          }
 0542          if (other.HasMaxDistance) {
 0543            MaxDistance = other.MaxDistance;
 544          }
 0545          if (other.HasShowFeedback) {
 0546            ShowFeedback = other.ShowFeedback;
 547          }
 0548          _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0549        }
 550
 551        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 552        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 553        public void MergeFrom(pb::CodedInputStream input) {
 554        #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 555          input.ReadRawMessage(this);
 556        #else
 557          uint tag;
 0558          while ((tag = input.ReadTag()) != 0) {
 559            switch(tag) {
 560              default:
 0561                _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0562                break;
 563              case 8: {
 0564                Button = (global::DCL.ECSComponents.InputAction) input.ReadEnum();
 0565                break;
 566              }
 567              case 18: {
 0568                HoverText = input.ReadString();
 0569                break;
 570              }
 571              case 29: {
 0572                MaxDistance = input.ReadFloat();
 0573                break;
 574              }
 575              case 32: {
 0576                ShowFeedback = input.ReadBool();
 577                break;
 578              }
 579            }
 580          }
 581        #endif
 0582        }
 583
 584        #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 585        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 586        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 587        void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 588          uint tag;
 589          while ((tag = input.ReadTag()) != 0) {
 590            switch(tag) {
 591              default:
 592                _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 593                break;
 594              case 8: {
 595                Button = (global::DCL.ECSComponents.InputAction) input.ReadEnum();
 596                break;
 597              }
 598              case 18: {
 599                HoverText = input.ReadString();
 600                break;
 601              }
 602              case 29: {
 603                MaxDistance = input.ReadFloat();
 604                break;
 605              }
 606              case 32: {
 607                ShowFeedback = input.ReadBool();
 608                break;
 609              }
 610            }
 611          }
 612        }
 613        #endif
 614
 615      }
 616
 617      public sealed partial class Entry : pb::IMessage<Entry>
 618      #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 619          , pb::IBufferMessage
 620      #endif
 621      {
 1622        private static readonly pb::MessageParser<Entry> _parser = new pb::MessageParser<Entry>(() => new Entry());
 623        private pb::UnknownFieldSet _unknownFields;
 624        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 625        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1626        public static pb::MessageParser<Entry> Parser { get { return _parser; } }
 627
 628        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 629        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 630        public static pbr::MessageDescriptor Descriptor {
 0631          get { return global::DCL.ECSComponents.PBPointerEvents.Descriptor.NestedTypes[1]; }
 632        }
 633
 634        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 635        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 636        pbr::MessageDescriptor pb::IMessage.Descriptor {
 0637          get { return Descriptor; }
 638        }
 639
 640        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 641        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1642        public Entry() {
 643          OnConstruction();
 1644        }
 645
 646        partial void OnConstruction();
 647
 648        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 649        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0650        public Entry(Entry other) : this() {
 0651          eventType_ = other.eventType_;
 0652          eventInfo_ = other.eventInfo_ != null ? other.eventInfo_.Clone() : null;
 0653          _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 0654        }
 655
 656        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 657        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 658        public Entry Clone() {
 0659          return new Entry(this);
 660        }
 661
 662        /// <summary>Field number for the "event_type" field.</summary>
 663        public const int EventTypeFieldNumber = 1;
 664        private global::DCL.ECSComponents.PointerEventType eventType_ = global::DCL.ECSComponents.PointerEventType.PetUp
 665        /// <summary>
 666        /// the kind of interaction to detect
 667        /// </summary>
 668        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 669        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 670        public global::DCL.ECSComponents.PointerEventType EventType {
 2671          get { return eventType_; }
 672          set {
 1673            eventType_ = value;
 1674          }
 675        }
 676
 677        /// <summary>Field number for the "event_info" field.</summary>
 678        public const int EventInfoFieldNumber = 2;
 679        private global::DCL.ECSComponents.PBPointerEvents.Types.Info eventInfo_;
 680        /// <summary>
 681        /// additional configuration for this detection
 682        /// </summary>
 683        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 684        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 685        public global::DCL.ECSComponents.PBPointerEvents.Types.Info EventInfo {
 6686          get { return eventInfo_; }
 687          set {
 1688            eventInfo_ = value;
 1689          }
 690        }
 691
 692        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 693        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 694        public override bool Equals(object other) {
 0695          return Equals(other as Entry);
 696        }
 697
 698        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 699        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 700        public bool Equals(Entry other) {
 0701          if (ReferenceEquals(other, null)) {
 0702            return false;
 703          }
 0704          if (ReferenceEquals(other, this)) {
 0705            return true;
 706          }
 0707          if (EventType != other.EventType) return false;
 0708          if (!object.Equals(EventInfo, other.EventInfo)) return false;
 0709          return Equals(_unknownFields, other._unknownFields);
 710        }
 711
 712        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 713        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 714        public override int GetHashCode() {
 0715          int hash = 1;
 0716          if (EventType != global::DCL.ECSComponents.PointerEventType.PetUp) hash ^= EventType.GetHashCode();
 0717          if (eventInfo_ != null) hash ^= EventInfo.GetHashCode();
 0718          if (_unknownFields != null) {
 0719            hash ^= _unknownFields.GetHashCode();
 720          }
 0721          return hash;
 722        }
 723
 724        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 725        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 726        public override string ToString() {
 0727          return pb::JsonFormatter.ToDiagnosticString(this);
 728        }
 729
 730        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 731        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 732        public void WriteTo(pb::CodedOutputStream output) {
 733        #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 734          output.WriteRawMessage(this);
 735        #else
 0736          if (EventType != global::DCL.ECSComponents.PointerEventType.PetUp) {
 0737            output.WriteRawTag(8);
 0738            output.WriteEnum((int) EventType);
 739          }
 0740          if (eventInfo_ != null) {
 0741            output.WriteRawTag(18);
 0742            output.WriteMessage(EventInfo);
 743          }
 0744          if (_unknownFields != null) {
 0745            _unknownFields.WriteTo(output);
 746          }
 747        #endif
 0748        }
 749
 750        #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 751        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 752        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 753        void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 754          if (EventType != global::DCL.ECSComponents.PointerEventType.PetUp) {
 755            output.WriteRawTag(8);
 756            output.WriteEnum((int) EventType);
 757          }
 758          if (eventInfo_ != null) {
 759            output.WriteRawTag(18);
 760            output.WriteMessage(EventInfo);
 761          }
 762          if (_unknownFields != null) {
 763            _unknownFields.WriteTo(ref output);
 764          }
 765        }
 766        #endif
 767
 768        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 769        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 770        public int CalculateSize() {
 0771          int size = 0;
 0772          if (EventType != global::DCL.ECSComponents.PointerEventType.PetUp) {
 0773            size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) EventType);
 774          }
 0775          if (eventInfo_ != null) {
 0776            size += 1 + pb::CodedOutputStream.ComputeMessageSize(EventInfo);
 777          }
 0778          if (_unknownFields != null) {
 0779            size += _unknownFields.CalculateSize();
 780          }
 0781          return size;
 782        }
 783
 784        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 785        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 786        public void MergeFrom(Entry other) {
 0787          if (other == null) {
 0788            return;
 789          }
 0790          if (other.EventType != global::DCL.ECSComponents.PointerEventType.PetUp) {
 0791            EventType = other.EventType;
 792          }
 0793          if (other.eventInfo_ != null) {
 0794            if (eventInfo_ == null) {
 0795              EventInfo = new global::DCL.ECSComponents.PBPointerEvents.Types.Info();
 796            }
 0797            EventInfo.MergeFrom(other.EventInfo);
 798          }
 0799          _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0800        }
 801
 802        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 803        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 804        public void MergeFrom(pb::CodedInputStream input) {
 805        #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 806          input.ReadRawMessage(this);
 807        #else
 808          uint tag;
 0809          while ((tag = input.ReadTag()) != 0) {
 810            switch(tag) {
 811              default:
 0812                _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0813                break;
 814              case 8: {
 0815                EventType = (global::DCL.ECSComponents.PointerEventType) input.ReadEnum();
 0816                break;
 817              }
 818              case 18: {
 0819                if (eventInfo_ == null) {
 0820                  EventInfo = new global::DCL.ECSComponents.PBPointerEvents.Types.Info();
 821                }
 0822                input.ReadMessage(EventInfo);
 823                break;
 824              }
 825            }
 826          }
 827        #endif
 0828        }
 829
 830        #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 831        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 832        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 833        void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 834          uint tag;
 835          while ((tag = input.ReadTag()) != 0) {
 836            switch(tag) {
 837              default:
 838                _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 839                break;
 840              case 8: {
 841                EventType = (global::DCL.ECSComponents.PointerEventType) input.ReadEnum();
 842                break;
 843              }
 844              case 18: {
 845                if (eventInfo_ == null) {
 846                  EventInfo = new global::DCL.ECSComponents.PBPointerEvents.Types.Info();
 847                }
 848                input.ReadMessage(EventInfo);
 849                break;
 850              }
 851            }
 852          }
 853        }
 854        #endif
 855
 856      }
 857
 858    }
 859    #endregion
 860
 861  }
 862
 863  #endregion
 864
 865}
 866
 867#endregion Designer generated code

Methods/Properties

PBPointerEvents()
Parser()
Descriptor()
get_Descriptor()
PBPointerEvents()
PBPointerEvents(DCL.ECSComponents.PBPointerEvents)
Clone()
PointerEvents()
Equals(System.Object)
Equals(DCL.ECSComponents.PBPointerEvents)
GetHashCode()
ToString()
WriteTo(Google.Protobuf.CodedOutputStream)
CalculateSize()
MergeFrom(DCL.ECSComponents.PBPointerEvents)
MergeFrom(Google.Protobuf.CodedInputStream)
Info()
Parser()
Descriptor()
get_Descriptor()
Info()
Info(DCL.ECSComponents.PBPointerEvents/Types/Info)
Clone()
Button()
Button(DCL.ECSComponents.InputAction)
HasButton()
ClearButton()
HoverText()
HoverText(System.String)
HasHoverText()
ClearHoverText()
MaxDistance()
MaxDistance(System.Single)
HasMaxDistance()
ClearMaxDistance()
ShowFeedback()
ShowFeedback(System.Boolean)
HasShowFeedback()
ClearShowFeedback()
Equals(System.Object)
Equals(DCL.ECSComponents.PBPointerEvents/Types/Info)
GetHashCode()
ToString()
WriteTo(Google.Protobuf.CodedOutputStream)
CalculateSize()
MergeFrom(DCL.ECSComponents.PBPointerEvents/Types/Info)
MergeFrom(Google.Protobuf.CodedInputStream)
Entry()
Parser()
Descriptor()
get_Descriptor()
Entry()
Entry(DCL.ECSComponents.PBPointerEvents/Types/Entry)
Clone()
EventType()
EventType(DCL.ECSComponents.PointerEventType)
EventInfo()
EventInfo(DCL.ECSComponents.PBPointerEvents/Types/Info)
Equals(System.Object)
Equals(DCL.ECSComponents.PBPointerEvents/Types/Entry)
GetHashCode()
ToString()
WriteTo(Google.Protobuf.CodedOutputStream)
CalculateSize()
MergeFrom(DCL.ECSComponents.PBPointerEvents/Types/Entry)
MergeFrom(Google.Protobuf.CodedInputStream)