< Summary

Class:DCL.ECSComponents.AvatarModifierAreaReflection
Assembly:Decentraland.Protocol.GeneratedCode
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/DecentralandProtocol/AvatarModifierArea.gen.cs
Covered lines:0
Uncovered lines:4
Coverable lines:4
Total lines:342
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
AvatarModifierAreaReflection()0%2100%

File(s)

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

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: decentraland/sdk/components/avatar_modifier_area.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/avatar_modifier_area.proto</
 15  public static partial class AvatarModifierAreaReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for decentraland/sdk/components/avatar_modifier_area.proto</summary>
 19    public static pbr::FileDescriptor Descriptor {
 020      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static AvatarModifierAreaReflection() {
 025      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "CjZkZWNlbnRyYWxhbmQvc2RrL2NvbXBvbmVudHMvYXZhdGFyX21vZGlmaWVy",
 28            "X2FyZWEucHJvdG8SG2RlY2VudHJhbGFuZC5zZGsuY29tcG9uZW50cxohZGVj",
 29            "ZW50cmFsYW5kL2NvbW1vbi92ZWN0b3JzLnByb3RvIpsBChRQQkF2YXRhck1v",
 30            "ZGlmaWVyQXJlYRIqCgRhcmVhGAEgASgLMhwuZGVjZW50cmFsYW5kLmNvbW1v",
 31            "bi5WZWN0b3IzEhMKC2V4Y2x1ZGVfaWRzGAIgAygJEkIKCW1vZGlmaWVycxgD",
 32            "IAMoDjIvLmRlY2VudHJhbGFuZC5zZGsuY29tcG9uZW50cy5BdmF0YXJNb2Rp",
 33            "ZmllclR5cGUqRQoSQXZhdGFyTW9kaWZpZXJUeXBlEhQKEEFNVF9ISURFX0FW",
 34            "QVRBUlMQABIZChVBTVRfRElTQUJMRV9QQVNTUE9SVFMQAUIUqgIRRENMLkVD",
 35            "U0NvbXBvbmVudHNiBnByb3RvMw=="));
 036      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 37          new pbr::FileDescriptor[] { global::Decentraland.Common.VectorsReflection.Descriptor, },
 38          new pbr::GeneratedClrTypeInfo(new[] {typeof(global::DCL.ECSComponents.AvatarModifierType), }, null, new pbr::G
 39            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBAvatarModifierArea), global::DCL.ECSCompone
 40          }));
 041    }
 42    #endregion
 43
 44  }
 45  #region Enums
 46  /// <summary>
 47  /// AvatarModifierType is an effect that should be applied to avatars inside the region.
 48  /// </summary>
 49  public enum AvatarModifierType {
 50    /// <summary>
 51    /// avatars are invisible
 52    /// </summary>
 53    [pbr::OriginalName("AMT_HIDE_AVATARS")] AmtHideAvatars = 0,
 54    /// <summary>
 55    /// selecting (e.g. clicking) an avatar will not bring up their profile.
 56    /// </summary>
 57    [pbr::OriginalName("AMT_DISABLE_PASSPORTS")] AmtDisablePassports = 1,
 58  }
 59
 60  #endregion
 61
 62  #region Messages
 63  /// <summary>
 64  /// The AvatarModifierArea component can be attached to an Entity to define a region of space where
 65  /// avatar behavior changes.
 66  ///
 67  /// The Entity's Transform position determines the center-point of the region, while its size is
 68  /// given as a vector in the `area` property below. The Transform rotation is applied, but the scale
 69  /// is ignored.
 70  ///
 71  /// The modifier effect is only applied to avatars inside the region. It does not affect how players
 72  /// standing inside it see avatars on the other side of the boundary.
 73  ///
 74  /// Note that, while commonly used to delineate a 2D area in a scene (hence the name), the region
 75  /// is actually a 3D volume.
 76  /// </summary>
 77  public sealed partial class PBAvatarModifierArea : pb::IMessage<PBAvatarModifierArea>
 78  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 79      , pb::IBufferMessage
 80  #endif
 81  {
 82    private static readonly pb::MessageParser<PBAvatarModifierArea> _parser = new pb::MessageParser<PBAvatarModifierArea
 83    private pb::UnknownFieldSet _unknownFields;
 84    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 85    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 86    public static pb::MessageParser<PBAvatarModifierArea> Parser { get { return _parser; } }
 87
 88    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 89    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 90    public static pbr::MessageDescriptor Descriptor {
 91      get { return global::DCL.ECSComponents.AvatarModifierAreaReflection.Descriptor.MessageTypes[0]; }
 92    }
 93
 94    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 95    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 96    pbr::MessageDescriptor pb::IMessage.Descriptor {
 97      get { return Descriptor; }
 98    }
 99
 100    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 101    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 102    public PBAvatarModifierArea() {
 103      OnConstruction();
 104    }
 105
 106    partial void OnConstruction();
 107
 108    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 109    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 110    public PBAvatarModifierArea(PBAvatarModifierArea other) : this() {
 111      area_ = other.area_ != null ? other.area_.Clone() : null;
 112      excludeIds_ = other.excludeIds_.Clone();
 113      modifiers_ = other.modifiers_.Clone();
 114      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 115    }
 116
 117    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 118    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 119    public PBAvatarModifierArea Clone() {
 120      return new PBAvatarModifierArea(this);
 121    }
 122
 123    /// <summary>Field number for the "area" field.</summary>
 124    public const int AreaFieldNumber = 1;
 125    private global::Decentraland.Common.Vector3 area_;
 126    /// <summary>
 127    /// the 3D size of the region
 128    /// </summary>
 129    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 130    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 131    public global::Decentraland.Common.Vector3 Area {
 132      get { return area_; }
 133      set {
 134        area_ = value;
 135      }
 136    }
 137
 138    /// <summary>Field number for the "exclude_ids" field.</summary>
 139    public const int ExcludeIdsFieldNumber = 2;
 140    private static readonly pb::FieldCodec<string> _repeated_excludeIds_codec
 141        = pb::FieldCodec.ForString(18);
 142    private readonly pbc::RepeatedField<string> excludeIds_ = new pbc::RepeatedField<string>();
 143    /// <summary>
 144    /// user IDs that can enter and remain unaffected
 145    /// </summary>
 146    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 147    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 148    public pbc::RepeatedField<string> ExcludeIds {
 149      get { return excludeIds_; }
 150    }
 151
 152    /// <summary>Field number for the "modifiers" field.</summary>
 153    public const int ModifiersFieldNumber = 3;
 154    private static readonly pb::FieldCodec<global::DCL.ECSComponents.AvatarModifierType> _repeated_modifiers_codec
 155        = pb::FieldCodec.ForEnum(26, x => (int) x, x => (global::DCL.ECSComponents.AvatarModifierType) x);
 156    private readonly pbc::RepeatedField<global::DCL.ECSComponents.AvatarModifierType> modifiers_ = new pbc::RepeatedFiel
 157    /// <summary>
 158    /// list of modifiers to apply
 159    /// </summary>
 160    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 161    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 162    public pbc::RepeatedField<global::DCL.ECSComponents.AvatarModifierType> Modifiers {
 163      get { return modifiers_; }
 164    }
 165
 166    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 167    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 168    public override bool Equals(object other) {
 169      return Equals(other as PBAvatarModifierArea);
 170    }
 171
 172    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 173    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 174    public bool Equals(PBAvatarModifierArea other) {
 175      if (ReferenceEquals(other, null)) {
 176        return false;
 177      }
 178      if (ReferenceEquals(other, this)) {
 179        return true;
 180      }
 181      if (!object.Equals(Area, other.Area)) return false;
 182      if(!excludeIds_.Equals(other.excludeIds_)) return false;
 183      if(!modifiers_.Equals(other.modifiers_)) return false;
 184      return Equals(_unknownFields, other._unknownFields);
 185    }
 186
 187    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 188    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 189    public override int GetHashCode() {
 190      int hash = 1;
 191      if (area_ != null) hash ^= Area.GetHashCode();
 192      hash ^= excludeIds_.GetHashCode();
 193      hash ^= modifiers_.GetHashCode();
 194      if (_unknownFields != null) {
 195        hash ^= _unknownFields.GetHashCode();
 196      }
 197      return hash;
 198    }
 199
 200    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 201    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 202    public override string ToString() {
 203      return pb::JsonFormatter.ToDiagnosticString(this);
 204    }
 205
 206    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 207    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 208    public void WriteTo(pb::CodedOutputStream output) {
 209    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 210      output.WriteRawMessage(this);
 211    #else
 212      if (area_ != null) {
 213        output.WriteRawTag(10);
 214        output.WriteMessage(Area);
 215      }
 216      excludeIds_.WriteTo(output, _repeated_excludeIds_codec);
 217      modifiers_.WriteTo(output, _repeated_modifiers_codec);
 218      if (_unknownFields != null) {
 219        _unknownFields.WriteTo(output);
 220      }
 221    #endif
 222    }
 223
 224    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 225    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 226    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 227    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 228      if (area_ != null) {
 229        output.WriteRawTag(10);
 230        output.WriteMessage(Area);
 231      }
 232      excludeIds_.WriteTo(ref output, _repeated_excludeIds_codec);
 233      modifiers_.WriteTo(ref output, _repeated_modifiers_codec);
 234      if (_unknownFields != null) {
 235        _unknownFields.WriteTo(ref output);
 236      }
 237    }
 238    #endif
 239
 240    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 241    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 242    public int CalculateSize() {
 243      int size = 0;
 244      if (area_ != null) {
 245        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Area);
 246      }
 247      size += excludeIds_.CalculateSize(_repeated_excludeIds_codec);
 248      size += modifiers_.CalculateSize(_repeated_modifiers_codec);
 249      if (_unknownFields != null) {
 250        size += _unknownFields.CalculateSize();
 251      }
 252      return size;
 253    }
 254
 255    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 256    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 257    public void MergeFrom(PBAvatarModifierArea other) {
 258      if (other == null) {
 259        return;
 260      }
 261      if (other.area_ != null) {
 262        if (area_ == null) {
 263          Area = new global::Decentraland.Common.Vector3();
 264        }
 265        Area.MergeFrom(other.Area);
 266      }
 267      excludeIds_.Add(other.excludeIds_);
 268      modifiers_.Add(other.modifiers_);
 269      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 270    }
 271
 272    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 273    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 274    public void MergeFrom(pb::CodedInputStream input) {
 275    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 276      input.ReadRawMessage(this);
 277    #else
 278      uint tag;
 279      while ((tag = input.ReadTag()) != 0) {
 280        switch(tag) {
 281          default:
 282            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 283            break;
 284          case 10: {
 285            if (area_ == null) {
 286              Area = new global::Decentraland.Common.Vector3();
 287            }
 288            input.ReadMessage(Area);
 289            break;
 290          }
 291          case 18: {
 292            excludeIds_.AddEntriesFrom(input, _repeated_excludeIds_codec);
 293            break;
 294          }
 295          case 26:
 296          case 24: {
 297            modifiers_.AddEntriesFrom(input, _repeated_modifiers_codec);
 298            break;
 299          }
 300        }
 301      }
 302    #endif
 303    }
 304
 305    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 306    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 307    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 308    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 309      uint tag;
 310      while ((tag = input.ReadTag()) != 0) {
 311        switch(tag) {
 312          default:
 313            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 314            break;
 315          case 10: {
 316            if (area_ == null) {
 317              Area = new global::Decentraland.Common.Vector3();
 318            }
 319            input.ReadMessage(Area);
 320            break;
 321          }
 322          case 18: {
 323            excludeIds_.AddEntriesFrom(ref input, _repeated_excludeIds_codec);
 324            break;
 325          }
 326          case 26:
 327          case 24: {
 328            modifiers_.AddEntriesFrom(ref input, _repeated_modifiers_codec);
 329            break;
 330          }
 331        }
 332      }
 333    }
 334    #endif
 335
 336  }
 337
 338  #endregion
 339
 340}
 341
 342#endregion Designer generated code