< Summary

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

File(s)

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

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: decentraland/sdk/components/raycast.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/raycast.proto</summary>
 15  public static partial class RaycastReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for decentraland/sdk/components/raycast.proto</summary>
 19    public static pbr::FileDescriptor Descriptor {
 020      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static RaycastReflection() {
 025      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "CilkZWNlbnRyYWxhbmQvc2RrL2NvbXBvbmVudHMvcmF5Y2FzdC5wcm90bxIb",
 28            "ZGVjZW50cmFsYW5kLnNkay5jb21wb25lbnRzGiFkZWNlbnRyYWxhbmQvY29t",
 29            "bW9uL3ZlY3RvcnMucHJvdG8i/gMKCVBCUmF5Y2FzdBIWCgl0aW1lc3RhbXAY",
 30            "ASABKA1IAYgBARI4Cg1vcmlnaW5fb2Zmc2V0GAIgASgLMhwuZGVjZW50cmFs",
 31            "YW5kLmNvbW1vbi5WZWN0b3IzSAKIAQESNwoPbG9jYWxfZGlyZWN0aW9uGAYg",
 32            "ASgLMhwuZGVjZW50cmFsYW5kLmNvbW1vbi5WZWN0b3IzSAASOAoQZ2xvYmFs",
 33            "X2RpcmVjdGlvbhgDIAEoCzIcLmRlY2VudHJhbGFuZC5jb21tb24uVmVjdG9y",
 34            "M0gAEjUKDWdsb2JhbF90YXJnZXQYByABKAsyHC5kZWNlbnRyYWxhbmQuY29t",
 35            "bW9uLlZlY3RvcjNIABIXCg10YXJnZXRfZW50aXR5GAogASgNSAASFAoMbWF4",
 36            "X2Rpc3RhbmNlGAQgASgCEkEKCnF1ZXJ5X3R5cGUYBSABKA4yLS5kZWNlbnRy",
 37            "YWxhbmQuc2RrLmNvbXBvbmVudHMuUmF5Y2FzdFF1ZXJ5VHlwZRIXCgpjb250",
 38            "aW51b3VzGAggASgISAOIAQESGwoOY29sbGlzaW9uX21hc2sYCSABKA1IBIgB",
 39            "AUILCglkaXJlY3Rpb25CDAoKX3RpbWVzdGFtcEIQCg5fb3JpZ2luX29mZnNl",
 40            "dEINCgtfY29udGludW91c0IRCg9fY29sbGlzaW9uX21hc2sqRgoQUmF5Y2Fz",
 41            "dFF1ZXJ5VHlwZRIRCg1SUVRfSElUX0ZJUlNUEAASEQoNUlFUX1FVRVJZX0FM",
 42            "TBABEgwKCFJRVF9OT05FEAJCFKoCEURDTC5FQ1NDb21wb25lbnRzYgZwcm90",
 43            "bzM="));
 044      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 45          new pbr::FileDescriptor[] { global::Decentraland.Common.VectorsReflection.Descriptor, },
 46          new pbr::GeneratedClrTypeInfo(new[] {typeof(global::DCL.ECSComponents.RaycastQueryType), }, null, new pbr::Gen
 47            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBRaycast), global::DCL.ECSComponents.PBRayca
 48          }));
 049    }
 50    #endregion
 51
 52  }
 53  #region Enums
 54  /// <summary>
 55  /// RaycastQueryType indicates whether the ray should stop on the first collition, or continue.
 56  /// </summary>
 57  public enum RaycastQueryType {
 58    /// <summary>
 59    /// Pick the first (not necessarily the closest) hit within the range
 60    /// </summary>
 61    [pbr::OriginalName("RQT_HIT_FIRST")] RqtHitFirst = 0,
 62    /// <summary>
 63    /// Pick all hits within the range
 64    /// </summary>
 65    [pbr::OriginalName("RQT_QUERY_ALL")] RqtQueryAll = 1,
 66    /// <summary>
 67    /// Do not perform the raycast, only set the raycast result with empty hits
 68    /// </summary>
 69    [pbr::OriginalName("RQT_NONE")] RqtNone = 2,
 70  }
 71
 72  #endregion
 73
 74  #region Messages
 75  /// <summary>
 76  /// The PBRaycast component and PBRaycastResult are defined in https://adr.decentraland.org/adr/ADR-200
 77  ///
 78  /// The Raycast component allows scenes to request raycasting from the game engine. The results will
 79  /// be available in a RaycastResult component set later on the same Entity.
 80  /// </summary>
 81  public sealed partial class PBRaycast : pb::IMessage<PBRaycast>
 82  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 83      , pb::IBufferMessage
 84  #endif
 85  {
 86    private static readonly pb::MessageParser<PBRaycast> _parser = new pb::MessageParser<PBRaycast>(() => new PBRaycast(
 87    private pb::UnknownFieldSet _unknownFields;
 88    private int _hasBits0;
 89    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 90    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 91    public static pb::MessageParser<PBRaycast> Parser { get { return _parser; } }
 92
 93    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 94    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 95    public static pbr::MessageDescriptor Descriptor {
 96      get { return global::DCL.ECSComponents.RaycastReflection.Descriptor.MessageTypes[0]; }
 97    }
 98
 99    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 100    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 101    pbr::MessageDescriptor pb::IMessage.Descriptor {
 102      get { return Descriptor; }
 103    }
 104
 105    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 106    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 107    public PBRaycast() {
 108      OnConstruction();
 109    }
 110
 111    partial void OnConstruction();
 112
 113    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 114    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 115    public PBRaycast(PBRaycast other) : this() {
 116      _hasBits0 = other._hasBits0;
 117      timestamp_ = other.timestamp_;
 118      originOffset_ = other.originOffset_ != null ? other.originOffset_.Clone() : null;
 119      maxDistance_ = other.maxDistance_;
 120      queryType_ = other.queryType_;
 121      continuous_ = other.continuous_;
 122      collisionMask_ = other.collisionMask_;
 123      switch (other.DirectionCase) {
 124        case DirectionOneofCase.LocalDirection:
 125          LocalDirection = other.LocalDirection.Clone();
 126          break;
 127        case DirectionOneofCase.GlobalDirection:
 128          GlobalDirection = other.GlobalDirection.Clone();
 129          break;
 130        case DirectionOneofCase.GlobalTarget:
 131          GlobalTarget = other.GlobalTarget.Clone();
 132          break;
 133        case DirectionOneofCase.TargetEntity:
 134          TargetEntity = other.TargetEntity;
 135          break;
 136      }
 137
 138      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 139    }
 140
 141    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 142    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 143    public PBRaycast Clone() {
 144      return new PBRaycast(this);
 145    }
 146
 147    /// <summary>Field number for the "timestamp" field.</summary>
 148    public const int TimestampFieldNumber = 1;
 149    private uint timestamp_;
 150    /// <summary>
 151    /// Correlation ID, defined by the scene and used internally by the scene
 152    /// </summary>
 153    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 154    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 155    public uint Timestamp {
 156      get { if ((_hasBits0 & 1) != 0) { return timestamp_; } else { return 0; } }
 157      set {
 158        _hasBits0 |= 1;
 159        timestamp_ = value;
 160      }
 161    }
 162    /// <summary>Gets whether the "timestamp" field is set</summary>
 163    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 164    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 165    public bool HasTimestamp {
 166      get { return (_hasBits0 & 1) != 0; }
 167    }
 168    /// <summary>Clears the value of the "timestamp" field</summary>
 169    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 170    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 171    public void ClearTimestamp() {
 172      _hasBits0 &= ~1;
 173    }
 174
 175    /// <summary>Field number for the "origin_offset" field.</summary>
 176    public const int OriginOffsetFieldNumber = 2;
 177    private global::Decentraland.Common.Vector3 originOffset_;
 178    /// <summary>
 179    /// How much to offset the starting point of the ray, relative to the entity's transform.
 180    /// Defaults to vec3(0,0,0)
 181    /// </summary>
 182    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 183    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 184    public global::Decentraland.Common.Vector3 OriginOffset {
 185      get { return originOffset_; }
 186      set {
 187        originOffset_ = value;
 188      }
 189    }
 190
 191    /// <summary>Field number for the "local_direction" field.</summary>
 192    public const int LocalDirectionFieldNumber = 6;
 193    /// <summary>
 194    /// The direction of the ray in local coordinates (relative to the origin point)
 195    /// </summary>
 196    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 197    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 198    public global::Decentraland.Common.Vector3 LocalDirection {
 199      get { return directionCase_ == DirectionOneofCase.LocalDirection ? (global::Decentraland.Common.Vector3) direction
 200      set {
 201        direction_ = value;
 202        directionCase_ = value == null ? DirectionOneofCase.None : DirectionOneofCase.LocalDirection;
 203      }
 204    }
 205
 206    /// <summary>Field number for the "global_direction" field.</summary>
 207    public const int GlobalDirectionFieldNumber = 3;
 208    /// <summary>
 209    /// The direction of the ray in global coordinates (relative to origin)
 210    /// </summary>
 211    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 212    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 213    public global::Decentraland.Common.Vector3 GlobalDirection {
 214      get { return directionCase_ == DirectionOneofCase.GlobalDirection ? (global::Decentraland.Common.Vector3) directio
 215      set {
 216        direction_ = value;
 217        directionCase_ = value == null ? DirectionOneofCase.None : DirectionOneofCase.GlobalDirection;
 218      }
 219    }
 220
 221    /// <summary>Field number for the "global_target" field.</summary>
 222    public const int GlobalTargetFieldNumber = 7;
 223    /// <summary>
 224    /// Target coordinates of the raycast, in global coordinates
 225    /// </summary>
 226    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 227    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 228    public global::Decentraland.Common.Vector3 GlobalTarget {
 229      get { return directionCase_ == DirectionOneofCase.GlobalTarget ? (global::Decentraland.Common.Vector3) direction_ 
 230      set {
 231        direction_ = value;
 232        directionCase_ = value == null ? DirectionOneofCase.None : DirectionOneofCase.GlobalTarget;
 233      }
 234    }
 235
 236    /// <summary>Field number for the "target_entity" field.</summary>
 237    public const int TargetEntityFieldNumber = 10;
 238    /// <summary>
 239    /// Will point to the final world position of another entity
 240    /// </summary>
 241    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 242    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 243    public uint TargetEntity {
 244      get { return directionCase_ == DirectionOneofCase.TargetEntity ? (uint) direction_ : 0; }
 245      set {
 246        direction_ = value;
 247        directionCase_ = DirectionOneofCase.TargetEntity;
 248      }
 249    }
 250
 251    /// <summary>Field number for the "max_distance" field.</summary>
 252    public const int MaxDistanceFieldNumber = 4;
 253    private float maxDistance_;
 254    /// <summary>
 255    /// Maximum length of the ray in virtual meters (global space)
 256    /// </summary>
 257    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 258    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 259    public float MaxDistance {
 260      get { return maxDistance_; }
 261      set {
 262        maxDistance_ = value;
 263      }
 264    }
 265
 266    /// <summary>Field number for the "query_type" field.</summary>
 267    public const int QueryTypeFieldNumber = 5;
 268    private global::DCL.ECSComponents.RaycastQueryType queryType_ = global::DCL.ECSComponents.RaycastQueryType.RqtHitFir
 269    /// <summary>
 270    /// the RaycastQueryType behavior
 271    /// </summary>
 272    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 273    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 274    public global::DCL.ECSComponents.RaycastQueryType QueryType {
 275      get { return queryType_; }
 276      set {
 277        queryType_ = value;
 278      }
 279    }
 280
 281    /// <summary>Field number for the "continuous" field.</summary>
 282    public const int ContinuousFieldNumber = 8;
 283    private bool continuous_;
 284    /// <summary>
 285    /// Indicates the renderer to perform the raycast on every scene tick (ADR-148),
 286    /// otherwise it will be performed only once, defaults to false
 287    /// </summary>
 288    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 289    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 290    public bool Continuous {
 291      get { if ((_hasBits0 & 2) != 0) { return continuous_; } else { return false; } }
 292      set {
 293        _hasBits0 |= 2;
 294        continuous_ = value;
 295      }
 296    }
 297    /// <summary>Gets whether the "continuous" field is set</summary>
 298    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 299    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 300    public bool HasContinuous {
 301      get { return (_hasBits0 & 2) != 0; }
 302    }
 303    /// <summary>Clears the value of the "continuous" field</summary>
 304    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 305    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 306    public void ClearContinuous() {
 307      _hasBits0 &= ~2;
 308    }
 309
 310    /// <summary>Field number for the "collision_mask" field.</summary>
 311    public const int CollisionMaskFieldNumber = 9;
 312    private uint collisionMask_;
 313    /// <summary>
 314    /// Collision mask, by default CL_POINTER | CL_PHYSICS
 315    /// </summary>
 316    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 317    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 318    public uint CollisionMask {
 319      get { if ((_hasBits0 & 4) != 0) { return collisionMask_; } else { return 0; } }
 320      set {
 321        _hasBits0 |= 4;
 322        collisionMask_ = value;
 323      }
 324    }
 325    /// <summary>Gets whether the "collision_mask" field is set</summary>
 326    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 327    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 328    public bool HasCollisionMask {
 329      get { return (_hasBits0 & 4) != 0; }
 330    }
 331    /// <summary>Clears the value of the "collision_mask" field</summary>
 332    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 333    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 334    public void ClearCollisionMask() {
 335      _hasBits0 &= ~4;
 336    }
 337
 338    private object direction_;
 339    /// <summary>Enum of possible cases for the "direction" oneof.</summary>
 340    public enum DirectionOneofCase {
 341      None = 0,
 342      LocalDirection = 6,
 343      GlobalDirection = 3,
 344      GlobalTarget = 7,
 345      TargetEntity = 10,
 346    }
 347    private DirectionOneofCase directionCase_ = DirectionOneofCase.None;
 348    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 349    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 350    public DirectionOneofCase DirectionCase {
 351      get { return directionCase_; }
 352    }
 353
 354    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 355    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 356    public void ClearDirection() {
 357      directionCase_ = DirectionOneofCase.None;
 358      direction_ = null;
 359    }
 360
 361    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 362    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 363    public override bool Equals(object other) {
 364      return Equals(other as PBRaycast);
 365    }
 366
 367    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 368    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 369    public bool Equals(PBRaycast other) {
 370      if (ReferenceEquals(other, null)) {
 371        return false;
 372      }
 373      if (ReferenceEquals(other, this)) {
 374        return true;
 375      }
 376      if (Timestamp != other.Timestamp) return false;
 377      if (!object.Equals(OriginOffset, other.OriginOffset)) return false;
 378      if (!object.Equals(LocalDirection, other.LocalDirection)) return false;
 379      if (!object.Equals(GlobalDirection, other.GlobalDirection)) return false;
 380      if (!object.Equals(GlobalTarget, other.GlobalTarget)) return false;
 381      if (TargetEntity != other.TargetEntity) return false;
 382      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(MaxDistance, other.MaxDistance)) return f
 383      if (QueryType != other.QueryType) return false;
 384      if (Continuous != other.Continuous) return false;
 385      if (CollisionMask != other.CollisionMask) return false;
 386      if (DirectionCase != other.DirectionCase) return false;
 387      return Equals(_unknownFields, other._unknownFields);
 388    }
 389
 390    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 391    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 392    public override int GetHashCode() {
 393      int hash = 1;
 394      if (HasTimestamp) hash ^= Timestamp.GetHashCode();
 395      if (originOffset_ != null) hash ^= OriginOffset.GetHashCode();
 396      if (directionCase_ == DirectionOneofCase.LocalDirection) hash ^= LocalDirection.GetHashCode();
 397      if (directionCase_ == DirectionOneofCase.GlobalDirection) hash ^= GlobalDirection.GetHashCode();
 398      if (directionCase_ == DirectionOneofCase.GlobalTarget) hash ^= GlobalTarget.GetHashCode();
 399      if (directionCase_ == DirectionOneofCase.TargetEntity) hash ^= TargetEntity.GetHashCode();
 400      if (MaxDistance != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(MaxDistanc
 401      if (QueryType != global::DCL.ECSComponents.RaycastQueryType.RqtHitFirst) hash ^= QueryType.GetHashCode();
 402      if (HasContinuous) hash ^= Continuous.GetHashCode();
 403      if (HasCollisionMask) hash ^= CollisionMask.GetHashCode();
 404      hash ^= (int) directionCase_;
 405      if (_unknownFields != null) {
 406        hash ^= _unknownFields.GetHashCode();
 407      }
 408      return hash;
 409    }
 410
 411    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 412    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 413    public override string ToString() {
 414      return pb::JsonFormatter.ToDiagnosticString(this);
 415    }
 416
 417    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 418    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 419    public void WriteTo(pb::CodedOutputStream output) {
 420    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 421      output.WriteRawMessage(this);
 422    #else
 423      if (HasTimestamp) {
 424        output.WriteRawTag(8);
 425        output.WriteUInt32(Timestamp);
 426      }
 427      if (originOffset_ != null) {
 428        output.WriteRawTag(18);
 429        output.WriteMessage(OriginOffset);
 430      }
 431      if (directionCase_ == DirectionOneofCase.GlobalDirection) {
 432        output.WriteRawTag(26);
 433        output.WriteMessage(GlobalDirection);
 434      }
 435      if (MaxDistance != 0F) {
 436        output.WriteRawTag(37);
 437        output.WriteFloat(MaxDistance);
 438      }
 439      if (QueryType != global::DCL.ECSComponents.RaycastQueryType.RqtHitFirst) {
 440        output.WriteRawTag(40);
 441        output.WriteEnum((int) QueryType);
 442      }
 443      if (directionCase_ == DirectionOneofCase.LocalDirection) {
 444        output.WriteRawTag(50);
 445        output.WriteMessage(LocalDirection);
 446      }
 447      if (directionCase_ == DirectionOneofCase.GlobalTarget) {
 448        output.WriteRawTag(58);
 449        output.WriteMessage(GlobalTarget);
 450      }
 451      if (HasContinuous) {
 452        output.WriteRawTag(64);
 453        output.WriteBool(Continuous);
 454      }
 455      if (HasCollisionMask) {
 456        output.WriteRawTag(72);
 457        output.WriteUInt32(CollisionMask);
 458      }
 459      if (directionCase_ == DirectionOneofCase.TargetEntity) {
 460        output.WriteRawTag(80);
 461        output.WriteUInt32(TargetEntity);
 462      }
 463      if (_unknownFields != null) {
 464        _unknownFields.WriteTo(output);
 465      }
 466    #endif
 467    }
 468
 469    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 470    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 471    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 472    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 473      if (HasTimestamp) {
 474        output.WriteRawTag(8);
 475        output.WriteUInt32(Timestamp);
 476      }
 477      if (originOffset_ != null) {
 478        output.WriteRawTag(18);
 479        output.WriteMessage(OriginOffset);
 480      }
 481      if (directionCase_ == DirectionOneofCase.GlobalDirection) {
 482        output.WriteRawTag(26);
 483        output.WriteMessage(GlobalDirection);
 484      }
 485      if (MaxDistance != 0F) {
 486        output.WriteRawTag(37);
 487        output.WriteFloat(MaxDistance);
 488      }
 489      if (QueryType != global::DCL.ECSComponents.RaycastQueryType.RqtHitFirst) {
 490        output.WriteRawTag(40);
 491        output.WriteEnum((int) QueryType);
 492      }
 493      if (directionCase_ == DirectionOneofCase.LocalDirection) {
 494        output.WriteRawTag(50);
 495        output.WriteMessage(LocalDirection);
 496      }
 497      if (directionCase_ == DirectionOneofCase.GlobalTarget) {
 498        output.WriteRawTag(58);
 499        output.WriteMessage(GlobalTarget);
 500      }
 501      if (HasContinuous) {
 502        output.WriteRawTag(64);
 503        output.WriteBool(Continuous);
 504      }
 505      if (HasCollisionMask) {
 506        output.WriteRawTag(72);
 507        output.WriteUInt32(CollisionMask);
 508      }
 509      if (directionCase_ == DirectionOneofCase.TargetEntity) {
 510        output.WriteRawTag(80);
 511        output.WriteUInt32(TargetEntity);
 512      }
 513      if (_unknownFields != null) {
 514        _unknownFields.WriteTo(ref output);
 515      }
 516    }
 517    #endif
 518
 519    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 520    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 521    public int CalculateSize() {
 522      int size = 0;
 523      if (HasTimestamp) {
 524        size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Timestamp);
 525      }
 526      if (originOffset_ != null) {
 527        size += 1 + pb::CodedOutputStream.ComputeMessageSize(OriginOffset);
 528      }
 529      if (directionCase_ == DirectionOneofCase.LocalDirection) {
 530        size += 1 + pb::CodedOutputStream.ComputeMessageSize(LocalDirection);
 531      }
 532      if (directionCase_ == DirectionOneofCase.GlobalDirection) {
 533        size += 1 + pb::CodedOutputStream.ComputeMessageSize(GlobalDirection);
 534      }
 535      if (directionCase_ == DirectionOneofCase.GlobalTarget) {
 536        size += 1 + pb::CodedOutputStream.ComputeMessageSize(GlobalTarget);
 537      }
 538      if (directionCase_ == DirectionOneofCase.TargetEntity) {
 539        size += 1 + pb::CodedOutputStream.ComputeUInt32Size(TargetEntity);
 540      }
 541      if (MaxDistance != 0F) {
 542        size += 1 + 4;
 543      }
 544      if (QueryType != global::DCL.ECSComponents.RaycastQueryType.RqtHitFirst) {
 545        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) QueryType);
 546      }
 547      if (HasContinuous) {
 548        size += 1 + 1;
 549      }
 550      if (HasCollisionMask) {
 551        size += 1 + pb::CodedOutputStream.ComputeUInt32Size(CollisionMask);
 552      }
 553      if (_unknownFields != null) {
 554        size += _unknownFields.CalculateSize();
 555      }
 556      return size;
 557    }
 558
 559    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 560    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 561    public void MergeFrom(PBRaycast other) {
 562      if (other == null) {
 563        return;
 564      }
 565      if (other.HasTimestamp) {
 566        Timestamp = other.Timestamp;
 567      }
 568      if (other.originOffset_ != null) {
 569        if (originOffset_ == null) {
 570          OriginOffset = new global::Decentraland.Common.Vector3();
 571        }
 572        OriginOffset.MergeFrom(other.OriginOffset);
 573      }
 574      if (other.MaxDistance != 0F) {
 575        MaxDistance = other.MaxDistance;
 576      }
 577      if (other.QueryType != global::DCL.ECSComponents.RaycastQueryType.RqtHitFirst) {
 578        QueryType = other.QueryType;
 579      }
 580      if (other.HasContinuous) {
 581        Continuous = other.Continuous;
 582      }
 583      if (other.HasCollisionMask) {
 584        CollisionMask = other.CollisionMask;
 585      }
 586      switch (other.DirectionCase) {
 587        case DirectionOneofCase.LocalDirection:
 588          if (LocalDirection == null) {
 589            LocalDirection = new global::Decentraland.Common.Vector3();
 590          }
 591          LocalDirection.MergeFrom(other.LocalDirection);
 592          break;
 593        case DirectionOneofCase.GlobalDirection:
 594          if (GlobalDirection == null) {
 595            GlobalDirection = new global::Decentraland.Common.Vector3();
 596          }
 597          GlobalDirection.MergeFrom(other.GlobalDirection);
 598          break;
 599        case DirectionOneofCase.GlobalTarget:
 600          if (GlobalTarget == null) {
 601            GlobalTarget = new global::Decentraland.Common.Vector3();
 602          }
 603          GlobalTarget.MergeFrom(other.GlobalTarget);
 604          break;
 605        case DirectionOneofCase.TargetEntity:
 606          TargetEntity = other.TargetEntity;
 607          break;
 608      }
 609
 610      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 611    }
 612
 613    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 614    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 615    public void MergeFrom(pb::CodedInputStream input) {
 616    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 617      input.ReadRawMessage(this);
 618    #else
 619      uint tag;
 620      while ((tag = input.ReadTag()) != 0) {
 621        switch(tag) {
 622          default:
 623            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 624            break;
 625          case 8: {
 626            Timestamp = input.ReadUInt32();
 627            break;
 628          }
 629          case 18: {
 630            if (originOffset_ == null) {
 631              OriginOffset = new global::Decentraland.Common.Vector3();
 632            }
 633            input.ReadMessage(OriginOffset);
 634            break;
 635          }
 636          case 26: {
 637            global::Decentraland.Common.Vector3 subBuilder = new global::Decentraland.Common.Vector3();
 638            if (directionCase_ == DirectionOneofCase.GlobalDirection) {
 639              subBuilder.MergeFrom(GlobalDirection);
 640            }
 641            input.ReadMessage(subBuilder);
 642            GlobalDirection = subBuilder;
 643            break;
 644          }
 645          case 37: {
 646            MaxDistance = input.ReadFloat();
 647            break;
 648          }
 649          case 40: {
 650            QueryType = (global::DCL.ECSComponents.RaycastQueryType) input.ReadEnum();
 651            break;
 652          }
 653          case 50: {
 654            global::Decentraland.Common.Vector3 subBuilder = new global::Decentraland.Common.Vector3();
 655            if (directionCase_ == DirectionOneofCase.LocalDirection) {
 656              subBuilder.MergeFrom(LocalDirection);
 657            }
 658            input.ReadMessage(subBuilder);
 659            LocalDirection = subBuilder;
 660            break;
 661          }
 662          case 58: {
 663            global::Decentraland.Common.Vector3 subBuilder = new global::Decentraland.Common.Vector3();
 664            if (directionCase_ == DirectionOneofCase.GlobalTarget) {
 665              subBuilder.MergeFrom(GlobalTarget);
 666            }
 667            input.ReadMessage(subBuilder);
 668            GlobalTarget = subBuilder;
 669            break;
 670          }
 671          case 64: {
 672            Continuous = input.ReadBool();
 673            break;
 674          }
 675          case 72: {
 676            CollisionMask = input.ReadUInt32();
 677            break;
 678          }
 679          case 80: {
 680            TargetEntity = input.ReadUInt32();
 681            break;
 682          }
 683        }
 684      }
 685    #endif
 686    }
 687
 688    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 689    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 690    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 691    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 692      uint tag;
 693      while ((tag = input.ReadTag()) != 0) {
 694        switch(tag) {
 695          default:
 696            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 697            break;
 698          case 8: {
 699            Timestamp = input.ReadUInt32();
 700            break;
 701          }
 702          case 18: {
 703            if (originOffset_ == null) {
 704              OriginOffset = new global::Decentraland.Common.Vector3();
 705            }
 706            input.ReadMessage(OriginOffset);
 707            break;
 708          }
 709          case 26: {
 710            global::Decentraland.Common.Vector3 subBuilder = new global::Decentraland.Common.Vector3();
 711            if (directionCase_ == DirectionOneofCase.GlobalDirection) {
 712              subBuilder.MergeFrom(GlobalDirection);
 713            }
 714            input.ReadMessage(subBuilder);
 715            GlobalDirection = subBuilder;
 716            break;
 717          }
 718          case 37: {
 719            MaxDistance = input.ReadFloat();
 720            break;
 721          }
 722          case 40: {
 723            QueryType = (global::DCL.ECSComponents.RaycastQueryType) input.ReadEnum();
 724            break;
 725          }
 726          case 50: {
 727            global::Decentraland.Common.Vector3 subBuilder = new global::Decentraland.Common.Vector3();
 728            if (directionCase_ == DirectionOneofCase.LocalDirection) {
 729              subBuilder.MergeFrom(LocalDirection);
 730            }
 731            input.ReadMessage(subBuilder);
 732            LocalDirection = subBuilder;
 733            break;
 734          }
 735          case 58: {
 736            global::Decentraland.Common.Vector3 subBuilder = new global::Decentraland.Common.Vector3();
 737            if (directionCase_ == DirectionOneofCase.GlobalTarget) {
 738              subBuilder.MergeFrom(GlobalTarget);
 739            }
 740            input.ReadMessage(subBuilder);
 741            GlobalTarget = subBuilder;
 742            break;
 743          }
 744          case 64: {
 745            Continuous = input.ReadBool();
 746            break;
 747          }
 748          case 72: {
 749            CollisionMask = input.ReadUInt32();
 750            break;
 751          }
 752          case 80: {
 753            TargetEntity = input.ReadUInt32();
 754            break;
 755          }
 756        }
 757      }
 758    }
 759    #endif
 760
 761  }
 762
 763  #endregion
 764
 765}
 766
 767#endregion Designer generated code

Methods/Properties

Descriptor()
RaycastReflection()