< Summary

Class:DCL.ECSComponents.PBPointerLock
Assembly:Decentraland.Protocol.GeneratedCode
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/DecentralandProtocol/PointerLock.gen.cs
Covered lines:6
Uncovered lines:44
Coverable lines:50
Total lines:241
Line coverage:12% (6 of 50)
Covered branches:0
Total branches:0
Covered methods:4
Total methods:17
Method coverage:23.5% (4 of 17)

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
PBPointerLock()0%110100%
get_Descriptor()0%2100%
PBPointerLock()0%110100%
PBPointerLock(...)0%2100%
Clone()0%2100%
Equals(...)0%2100%
Equals(...)0%20400%
GetHashCode()0%12300%
ToString()0%2100%
WriteTo(...)0%12300%
CalculateSize()0%12300%
MergeFrom(...)0%12300%
MergeFrom(...)0%12300%

File(s)

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

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: decentraland/sdk/components/pointer_lock.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_lock.proto</summary>
 15  public static partial class PointerLockReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for decentraland/sdk/components/pointer_lock.proto</summary>
 19    public static pbr::FileDescriptor Descriptor {
 20      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static PointerLockReflection() {
 25      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "Ci5kZWNlbnRyYWxhbmQvc2RrL2NvbXBvbmVudHMvcG9pbnRlcl9sb2NrLnBy",
 28            "b3RvEhtkZWNlbnRyYWxhbmQuc2RrLmNvbXBvbmVudHMiKgoNUEJQb2ludGVy",
 29            "TG9jaxIZChFpc19wb2ludGVyX2xvY2tlZBgBIAEoCEIUqgIRRENMLkVDU0Nv",
 30            "bXBvbmVudHNiBnByb3RvMw=="));
 31      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 32          new pbr::FileDescriptor[] { },
 33          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
 34            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBPointerLock), global::DCL.ECSComponents.PBP
 35          }));
 36    }
 37    #endregion
 38
 39  }
 40  #region Messages
 41  /// <summary>
 42  /// PointerLock indicates whether the mouse pointer is automatically following the camera’s point of
 43  /// focus (locked), or can move freely on the screen (unlocked).
 44  /// </summary>
 45  public sealed partial class PBPointerLock : pb::IMessage<PBPointerLock>
 46  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 47      , pb::IBufferMessage
 48  #endif
 49  {
 150    private static readonly pb::MessageParser<PBPointerLock> _parser = new pb::MessageParser<PBPointerLock>(() => new PB
 51    private pb::UnknownFieldSet _unknownFields;
 52    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 53    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 054    public static pb::MessageParser<PBPointerLock> Parser { get { return _parser; } }
 55
 56    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 57    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 58    public static pbr::MessageDescriptor Descriptor {
 059      get { return global::DCL.ECSComponents.PointerLockReflection.Descriptor.MessageTypes[0]; }
 60    }
 61
 62    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 63    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 64    pbr::MessageDescriptor pb::IMessage.Descriptor {
 065      get { return Descriptor; }
 66    }
 67
 68    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 69    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 870    public PBPointerLock() {
 71      OnConstruction();
 872    }
 73
 74    partial void OnConstruction();
 75
 76    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 77    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 078    public PBPointerLock(PBPointerLock other) : this() {
 079      isPointerLocked_ = other.isPointerLocked_;
 080      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 081    }
 82
 83    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 84    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 85    public PBPointerLock Clone() {
 086      return new PBPointerLock(this);
 87    }
 88
 89    /// <summary>Field number for the "is_pointer_locked" field.</summary>
 90    public const int IsPointerLockedFieldNumber = 1;
 91    private bool isPointerLocked_;
 92    /// <summary>
 93    /// whether the pointer is locked
 94    /// </summary>
 95    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 96    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 97    public bool IsPointerLocked {
 298      get { return isPointerLocked_; }
 99      set {
 8100        isPointerLocked_ = value;
 8101      }
 102    }
 103
 104    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 105    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 106    public override bool Equals(object other) {
 0107      return Equals(other as PBPointerLock);
 108    }
 109
 110    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 111    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 112    public bool Equals(PBPointerLock other) {
 0113      if (ReferenceEquals(other, null)) {
 0114        return false;
 115      }
 0116      if (ReferenceEquals(other, this)) {
 0117        return true;
 118      }
 0119      if (IsPointerLocked != other.IsPointerLocked) return false;
 0120      return Equals(_unknownFields, other._unknownFields);
 121    }
 122
 123    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 124    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 125    public override int GetHashCode() {
 0126      int hash = 1;
 0127      if (IsPointerLocked != false) hash ^= IsPointerLocked.GetHashCode();
 0128      if (_unknownFields != null) {
 0129        hash ^= _unknownFields.GetHashCode();
 130      }
 0131      return hash;
 132    }
 133
 134    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 135    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 136    public override string ToString() {
 0137      return pb::JsonFormatter.ToDiagnosticString(this);
 138    }
 139
 140    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 141    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 142    public void WriteTo(pb::CodedOutputStream output) {
 143    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 144      output.WriteRawMessage(this);
 145    #else
 0146      if (IsPointerLocked != false) {
 0147        output.WriteRawTag(8);
 0148        output.WriteBool(IsPointerLocked);
 149      }
 0150      if (_unknownFields != null) {
 0151        _unknownFields.WriteTo(output);
 152      }
 153    #endif
 0154    }
 155
 156    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 157    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 158    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 159    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 160      if (IsPointerLocked != false) {
 161        output.WriteRawTag(8);
 162        output.WriteBool(IsPointerLocked);
 163      }
 164      if (_unknownFields != null) {
 165        _unknownFields.WriteTo(ref output);
 166      }
 167    }
 168    #endif
 169
 170    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 171    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 172    public int CalculateSize() {
 0173      int size = 0;
 0174      if (IsPointerLocked != false) {
 0175        size += 1 + 1;
 176      }
 0177      if (_unknownFields != null) {
 0178        size += _unknownFields.CalculateSize();
 179      }
 0180      return size;
 181    }
 182
 183    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 184    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 185    public void MergeFrom(PBPointerLock other) {
 0186      if (other == null) {
 0187        return;
 188      }
 0189      if (other.IsPointerLocked != false) {
 0190        IsPointerLocked = other.IsPointerLocked;
 191      }
 0192      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0193    }
 194
 195    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 196    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 197    public void MergeFrom(pb::CodedInputStream input) {
 198    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 199      input.ReadRawMessage(this);
 200    #else
 201      uint tag;
 0202      while ((tag = input.ReadTag()) != 0) {
 203        switch(tag) {
 204          default:
 0205            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0206            break;
 207          case 8: {
 0208            IsPointerLocked = input.ReadBool();
 209            break;
 210          }
 211        }
 212      }
 213    #endif
 0214    }
 215
 216    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 217    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 218    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 219    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 220      uint tag;
 221      while ((tag = input.ReadTag()) != 0) {
 222        switch(tag) {
 223          default:
 224            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 225            break;
 226          case 8: {
 227            IsPointerLocked = input.ReadBool();
 228            break;
 229          }
 230        }
 231      }
 232    }
 233    #endif
 234
 235  }
 236
 237  #endregion
 238
 239}
 240
 241#endregion Designer generated code