< Summary

Class:DCL.ECSComponents.CameraModeReflection
Assembly:Decentraland.Protocol.GeneratedCode
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/DecentralandProtocol/CameraMode.gen.cs
Covered lines:0
Uncovered lines:4
Coverable lines:4
Total lines:243
Line coverage:0% (0 of 4)
Covered branches:0
Total branches:0
Covered methods:0
Total methods:2
Method coverage:0% (0 of 2)

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
CameraModeReflection()0%2100%

File(s)

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

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: decentraland/sdk/components/camera_mode.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/camera_mode.proto</summary>
 15  public static partial class CameraModeReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for decentraland/sdk/components/camera_mode.proto</summary>
 19    public static pbr::FileDescriptor Descriptor {
 020      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static CameraModeReflection() {
 025      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "Ci1kZWNlbnRyYWxhbmQvc2RrL2NvbXBvbmVudHMvY2FtZXJhX21vZGUucHJv",
 28            "dG8SG2RlY2VudHJhbGFuZC5zZGsuY29tcG9uZW50cxo0ZGVjZW50cmFsYW5k",
 29            "L3Nkay9jb21wb25lbnRzL2NvbW1vbi9jYW1lcmFfdHlwZS5wcm90byJMCgxQ",
 30            "QkNhbWVyYU1vZGUSPAoEbW9kZRgBIAEoDjIuLmRlY2VudHJhbGFuZC5zZGsu",
 31            "Y29tcG9uZW50cy5jb21tb24uQ2FtZXJhVHlwZUIUqgIRRENMLkVDU0NvbXBv",
 32            "bmVudHNiBnByb3RvMw=="));
 033      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 34          new pbr::FileDescriptor[] { global::DCL.ECSComponents.CameraTypeReflection.Descriptor, },
 35          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
 36            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBCameraMode), global::DCL.ECSComponents.PBCa
 37          }));
 038    }
 39    #endregion
 40
 41  }
 42  #region Messages
 43  /// <summary>
 44  /// The CameraMode component can be used to determine whether the player is using a first-person o
 45  /// third-person view.
 46  /// </summary>
 47  public sealed partial class PBCameraMode : pb::IMessage<PBCameraMode>
 48  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 49      , pb::IBufferMessage
 50  #endif
 51  {
 52    private static readonly pb::MessageParser<PBCameraMode> _parser = new pb::MessageParser<PBCameraMode>(() => new PBCa
 53    private pb::UnknownFieldSet _unknownFields;
 54    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 55    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 56    public static pb::MessageParser<PBCameraMode> Parser { get { return _parser; } }
 57
 58    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 59    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 60    public static pbr::MessageDescriptor Descriptor {
 61      get { return global::DCL.ECSComponents.CameraModeReflection.Descriptor.MessageTypes[0]; }
 62    }
 63
 64    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 65    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 66    pbr::MessageDescriptor pb::IMessage.Descriptor {
 67      get { return Descriptor; }
 68    }
 69
 70    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 71    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 72    public PBCameraMode() {
 73      OnConstruction();
 74    }
 75
 76    partial void OnConstruction();
 77
 78    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 79    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 80    public PBCameraMode(PBCameraMode other) : this() {
 81      mode_ = other.mode_;
 82      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 83    }
 84
 85    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 86    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 87    public PBCameraMode Clone() {
 88      return new PBCameraMode(this);
 89    }
 90
 91    /// <summary>Field number for the "mode" field.</summary>
 92    public const int ModeFieldNumber = 1;
 93    private global::DCL.ECSComponents.CameraType mode_ = global::DCL.ECSComponents.CameraType.CtFirstPerson;
 94    /// <summary>
 95    /// the camera type (1st-person or 3rd-person)
 96    /// </summary>
 97    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 98    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 99    public global::DCL.ECSComponents.CameraType Mode {
 100      get { return mode_; }
 101      set {
 102        mode_ = value;
 103      }
 104    }
 105
 106    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 107    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 108    public override bool Equals(object other) {
 109      return Equals(other as PBCameraMode);
 110    }
 111
 112    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 113    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 114    public bool Equals(PBCameraMode other) {
 115      if (ReferenceEquals(other, null)) {
 116        return false;
 117      }
 118      if (ReferenceEquals(other, this)) {
 119        return true;
 120      }
 121      if (Mode != other.Mode) return false;
 122      return Equals(_unknownFields, other._unknownFields);
 123    }
 124
 125    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 126    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 127    public override int GetHashCode() {
 128      int hash = 1;
 129      if (Mode != global::DCL.ECSComponents.CameraType.CtFirstPerson) hash ^= Mode.GetHashCode();
 130      if (_unknownFields != null) {
 131        hash ^= _unknownFields.GetHashCode();
 132      }
 133      return hash;
 134    }
 135
 136    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 137    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 138    public override string ToString() {
 139      return pb::JsonFormatter.ToDiagnosticString(this);
 140    }
 141
 142    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 143    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 144    public void WriteTo(pb::CodedOutputStream output) {
 145    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 146      output.WriteRawMessage(this);
 147    #else
 148      if (Mode != global::DCL.ECSComponents.CameraType.CtFirstPerson) {
 149        output.WriteRawTag(8);
 150        output.WriteEnum((int) Mode);
 151      }
 152      if (_unknownFields != null) {
 153        _unknownFields.WriteTo(output);
 154      }
 155    #endif
 156    }
 157
 158    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 159    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 160    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 161    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 162      if (Mode != global::DCL.ECSComponents.CameraType.CtFirstPerson) {
 163        output.WriteRawTag(8);
 164        output.WriteEnum((int) Mode);
 165      }
 166      if (_unknownFields != null) {
 167        _unknownFields.WriteTo(ref output);
 168      }
 169    }
 170    #endif
 171
 172    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 173    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 174    public int CalculateSize() {
 175      int size = 0;
 176      if (Mode != global::DCL.ECSComponents.CameraType.CtFirstPerson) {
 177        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Mode);
 178      }
 179      if (_unknownFields != null) {
 180        size += _unknownFields.CalculateSize();
 181      }
 182      return size;
 183    }
 184
 185    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 186    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 187    public void MergeFrom(PBCameraMode other) {
 188      if (other == null) {
 189        return;
 190      }
 191      if (other.Mode != global::DCL.ECSComponents.CameraType.CtFirstPerson) {
 192        Mode = other.Mode;
 193      }
 194      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 195    }
 196
 197    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 198    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 199    public void MergeFrom(pb::CodedInputStream input) {
 200    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 201      input.ReadRawMessage(this);
 202    #else
 203      uint tag;
 204      while ((tag = input.ReadTag()) != 0) {
 205        switch(tag) {
 206          default:
 207            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 208            break;
 209          case 8: {
 210            Mode = (global::DCL.ECSComponents.CameraType) input.ReadEnum();
 211            break;
 212          }
 213        }
 214      }
 215    #endif
 216    }
 217
 218    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 219    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 220    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 221    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 222      uint tag;
 223      while ((tag = input.ReadTag()) != 0) {
 224        switch(tag) {
 225          default:
 226            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 227            break;
 228          case 8: {
 229            Mode = (global::DCL.ECSComponents.CameraType) input.ReadEnum();
 230            break;
 231          }
 232        }
 233      }
 234    }
 235    #endif
 236
 237  }
 238
 239  #endregion
 240
 241}
 242
 243#endregion Designer generated code