| | 1 | | // <auto-generated> |
| | 2 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
| | 3 | | // source: decentraland/sdk/components/common/raycast_hit.proto |
| | 4 | | // </auto-generated> |
| | 5 | | #pragma warning disable 1591, 0612, 3021 |
| | 6 | | #region Designer generated code |
| | 7 | |
|
| | 8 | | using pb = global::Google.Protobuf; |
| | 9 | | using pbc = global::Google.Protobuf.Collections; |
| | 10 | | using pbr = global::Google.Protobuf.Reflection; |
| | 11 | | using scg = global::System.Collections.Generic; |
| | 12 | | namespace DCL.ECSComponents { |
| | 13 | |
|
| | 14 | | /// <summary>Holder for reflection information generated from decentraland/sdk/components/common/raycast_hit.proto</su |
| | 15 | | public static partial class RaycastHitReflection { |
| | 16 | |
|
| | 17 | | #region Descriptor |
| | 18 | | /// <summary>File descriptor for decentraland/sdk/components/common/raycast_hit.proto</summary> |
| | 19 | | public static pbr::FileDescriptor Descriptor { |
| | 20 | | get { return descriptor; } |
| | 21 | | } |
| | 22 | | private static pbr::FileDescriptor descriptor; |
| | 23 | |
|
| | 24 | | static RaycastHitReflection() { |
| | 25 | | byte[] descriptorData = global::System.Convert.FromBase64String( |
| | 26 | | string.Concat( |
| | 27 | | "CjRkZWNlbnRyYWxhbmQvc2RrL2NvbXBvbmVudHMvY29tbW9uL3JheWNhc3Rf", |
| | 28 | | "aGl0LnByb3RvEiJkZWNlbnRyYWxhbmQuc2RrLmNvbXBvbmVudHMuY29tbW9u", |
| | 29 | | "GiFkZWNlbnRyYWxhbmQvY29tbW9uL3ZlY3RvcnMucHJvdG8isAIKClJheWNh", |
| | 30 | | "c3RIaXQSLgoIcG9zaXRpb24YASABKAsyHC5kZWNlbnRyYWxhbmQuY29tbW9u", |
| | 31 | | "LlZlY3RvcjMSMwoNZ2xvYmFsX29yaWdpbhgCIAEoCzIcLmRlY2VudHJhbGFu", |
| | 32 | | "ZC5jb21tb24uVmVjdG9yMxIvCglkaXJlY3Rpb24YAyABKAsyHC5kZWNlbnRy", |
| | 33 | | "YWxhbmQuY29tbW9uLlZlY3RvcjMSMAoKbm9ybWFsX2hpdBgEIAEoCzIcLmRl", |
| | 34 | | "Y2VudHJhbGFuZC5jb21tb24uVmVjdG9yMxIOCgZsZW5ndGgYBSABKAISFgoJ", |
| | 35 | | "bWVzaF9uYW1lGAYgASgJSACIAQESFgoJZW50aXR5X2lkGAcgASgNSAGIAQFC", |
| | 36 | | "DAoKX21lc2hfbmFtZUIMCgpfZW50aXR5X2lkQhSqAhFEQ0wuRUNTQ29tcG9u", |
| | 37 | | "ZW50c2IGcHJvdG8z")); |
| | 38 | | descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, |
| | 39 | | new pbr::FileDescriptor[] { global::Decentraland.Common.VectorsReflection.Descriptor, }, |
| | 40 | | new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { |
| | 41 | | new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.RaycastHit), global::DCL.ECSComponents.Raycas |
| | 42 | | })); |
| | 43 | | } |
| | 44 | | #endregion |
| | 45 | |
|
| | 46 | | } |
| | 47 | | #region Messages |
| | 48 | | /// <summary> |
| | 49 | | /// RaycastHit contains information about the intersection of a ray with a mesh. |
| | 50 | | /// </summary> |
| | 51 | | public sealed partial class RaycastHit : pb::IMessage<RaycastHit> |
| | 52 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 53 | | , pb::IBufferMessage |
| | 54 | | #endif |
| | 55 | | { |
| 1 | 56 | | private static readonly pb::MessageParser<RaycastHit> _parser = new pb::MessageParser<RaycastHit>(() => new RaycastH |
| | 57 | | private pb::UnknownFieldSet _unknownFields; |
| | 58 | | private int _hasBits0; |
| | 59 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 60 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 2 | 61 | | public static pb::MessageParser<RaycastHit> Parser { get { return _parser; } } |
| | 62 | |
|
| | 63 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 64 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 65 | | public static pbr::MessageDescriptor Descriptor { |
| 0 | 66 | | get { return global::DCL.ECSComponents.RaycastHitReflection.Descriptor.MessageTypes[0]; } |
| | 67 | | } |
| | 68 | |
|
| | 69 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 70 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 71 | | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 0 | 72 | | get { return Descriptor; } |
| | 73 | | } |
| | 74 | |
|
| | 75 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 76 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 53 | 77 | | public RaycastHit() { |
| | 78 | | OnConstruction(); |
| 53 | 79 | | } |
| | 80 | |
|
| | 81 | | partial void OnConstruction(); |
| | 82 | |
|
| | 83 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 84 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 0 | 85 | | public RaycastHit(RaycastHit other) : this() { |
| 0 | 86 | | _hasBits0 = other._hasBits0; |
| 0 | 87 | | position_ = other.position_ != null ? other.position_.Clone() : null; |
| 0 | 88 | | globalOrigin_ = other.globalOrigin_ != null ? other.globalOrigin_.Clone() : null; |
| 0 | 89 | | direction_ = other.direction_ != null ? other.direction_.Clone() : null; |
| 0 | 90 | | normalHit_ = other.normalHit_ != null ? other.normalHit_.Clone() : null; |
| 0 | 91 | | length_ = other.length_; |
| 0 | 92 | | meshName_ = other.meshName_; |
| 0 | 93 | | entityId_ = other.entityId_; |
| 0 | 94 | | _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
| 0 | 95 | | } |
| | 96 | |
|
| | 97 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 98 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 99 | | public RaycastHit Clone() { |
| 0 | 100 | | return new RaycastHit(this); |
| | 101 | | } |
| | 102 | |
|
| | 103 | | /// <summary>Field number for the "position" field.</summary> |
| | 104 | | public const int PositionFieldNumber = 1; |
| | 105 | | private global::Decentraland.Common.Vector3 position_; |
| | 106 | | /// <summary> |
| | 107 | | /// Position will be relative to the scene |
| | 108 | | /// </summary> |
| | 109 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 110 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 111 | | public global::Decentraland.Common.Vector3 Position { |
| 71 | 112 | | get { return position_; } |
| | 113 | | set { |
| 42 | 114 | | position_ = value; |
| 42 | 115 | | } |
| | 116 | | } |
| | 117 | |
|
| | 118 | | /// <summary>Field number for the "global_origin" field.</summary> |
| | 119 | | public const int GlobalOriginFieldNumber = 2; |
| | 120 | | private global::Decentraland.Common.Vector3 globalOrigin_; |
| | 121 | | /// <summary> |
| | 122 | | /// the starting point of the ray in global coordinates |
| | 123 | | /// </summary> |
| | 124 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 125 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 126 | | public global::Decentraland.Common.Vector3 GlobalOrigin { |
| 2 | 127 | | get { return globalOrigin_; } |
| | 128 | | set { |
| 38 | 129 | | globalOrigin_ = value; |
| 38 | 130 | | } |
| | 131 | | } |
| | 132 | |
|
| | 133 | | /// <summary>Field number for the "direction" field.</summary> |
| | 134 | | public const int DirectionFieldNumber = 3; |
| | 135 | | private global::Decentraland.Common.Vector3 direction_; |
| | 136 | | /// <summary> |
| | 137 | | /// the direction vector of the ray in global coordinates |
| | 138 | | /// </summary> |
| | 139 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 140 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 141 | | public global::Decentraland.Common.Vector3 Direction { |
| 0 | 142 | | get { return direction_; } |
| | 143 | | set { |
| 15 | 144 | | direction_ = value; |
| 15 | 145 | | } |
| | 146 | | } |
| | 147 | |
|
| | 148 | | /// <summary>Field number for the "normal_hit" field.</summary> |
| | 149 | | public const int NormalHitFieldNumber = 4; |
| | 150 | | private global::Decentraland.Common.Vector3 normalHit_; |
| | 151 | | /// <summary> |
| | 152 | | /// normal of the hit surface in global coordinates |
| | 153 | | /// </summary> |
| | 154 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 155 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 156 | | public global::Decentraland.Common.Vector3 NormalHit { |
| 69 | 157 | | get { return normalHit_; } |
| | 158 | | set { |
| 38 | 159 | | normalHit_ = value; |
| 38 | 160 | | } |
| | 161 | | } |
| | 162 | |
|
| | 163 | | /// <summary>Field number for the "length" field.</summary> |
| | 164 | | public const int LengthFieldNumber = 5; |
| | 165 | | private float length_; |
| | 166 | | /// <summary> |
| | 167 | | /// the distance between the ray origin and the hit position |
| | 168 | | /// </summary> |
| | 169 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 170 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 171 | | public float Length { |
| 8 | 172 | | get { return length_; } |
| | 173 | | set { |
| 42 | 174 | | length_ = value; |
| 42 | 175 | | } |
| | 176 | | } |
| | 177 | |
|
| | 178 | | /// <summary>Field number for the "mesh_name" field.</summary> |
| | 179 | | public const int MeshNameFieldNumber = 6; |
| | 180 | | private string meshName_; |
| | 181 | | /// <summary> |
| | 182 | | /// mesh name, if collision happened inside a GltfContainer |
| | 183 | | /// </summary> |
| | 184 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 185 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 186 | | public string MeshName { |
| 0 | 187 | | get { return meshName_ ?? ""; } |
| | 188 | | set { |
| 23 | 189 | | meshName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
| 23 | 190 | | } |
| | 191 | | } |
| | 192 | | /// <summary>Gets whether the "mesh_name" field is set</summary> |
| | 193 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 194 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 195 | | public bool HasMeshName { |
| 0 | 196 | | get { return meshName_ != null; } |
| | 197 | | } |
| | 198 | | /// <summary>Clears the value of the "mesh_name" field</summary> |
| | 199 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 200 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 201 | | public void ClearMeshName() { |
| 0 | 202 | | meshName_ = null; |
| 0 | 203 | | } |
| | 204 | |
|
| | 205 | | /// <summary>Field number for the "entity_id" field.</summary> |
| | 206 | | public const int EntityIdFieldNumber = 7; |
| | 207 | | private uint entityId_; |
| | 208 | | /// <summary> |
| | 209 | | /// the ID of the Entity that has the impacted mesh attached |
| | 210 | | /// </summary> |
| | 211 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 212 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 213 | | public uint EntityId { |
| 118 | 214 | | get { if ((_hasBits0 & 1) != 0) { return entityId_; } else { return 0; } } |
| | 215 | | set { |
| 42 | 216 | | _hasBits0 |= 1; |
| 42 | 217 | | entityId_ = value; |
| 42 | 218 | | } |
| | 219 | | } |
| | 220 | | /// <summary>Gets whether the "entity_id" field is set</summary> |
| | 221 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 222 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 223 | | public bool HasEntityId { |
| 0 | 224 | | get { return (_hasBits0 & 1) != 0; } |
| | 225 | | } |
| | 226 | | /// <summary>Clears the value of the "entity_id" field</summary> |
| | 227 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 228 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 229 | | public void ClearEntityId() { |
| 0 | 230 | | _hasBits0 &= ~1; |
| 0 | 231 | | } |
| | 232 | |
|
| | 233 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 234 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 235 | | public override bool Equals(object other) { |
| 0 | 236 | | return Equals(other as RaycastHit); |
| | 237 | | } |
| | 238 | |
|
| | 239 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 240 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 241 | | public bool Equals(RaycastHit other) { |
| 0 | 242 | | if (ReferenceEquals(other, null)) { |
| 0 | 243 | | return false; |
| | 244 | | } |
| 0 | 245 | | if (ReferenceEquals(other, this)) { |
| 0 | 246 | | return true; |
| | 247 | | } |
| 0 | 248 | | if (!object.Equals(Position, other.Position)) return false; |
| 0 | 249 | | if (!object.Equals(GlobalOrigin, other.GlobalOrigin)) return false; |
| 0 | 250 | | if (!object.Equals(Direction, other.Direction)) return false; |
| 0 | 251 | | if (!object.Equals(NormalHit, other.NormalHit)) return false; |
| 0 | 252 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Length, other.Length)) return false; |
| 0 | 253 | | if (MeshName != other.MeshName) return false; |
| 0 | 254 | | if (EntityId != other.EntityId) return false; |
| 0 | 255 | | return Equals(_unknownFields, other._unknownFields); |
| | 256 | | } |
| | 257 | |
|
| | 258 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 259 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 260 | | public override int GetHashCode() { |
| 0 | 261 | | int hash = 1; |
| 0 | 262 | | if (position_ != null) hash ^= Position.GetHashCode(); |
| 0 | 263 | | if (globalOrigin_ != null) hash ^= GlobalOrigin.GetHashCode(); |
| 0 | 264 | | if (direction_ != null) hash ^= Direction.GetHashCode(); |
| 0 | 265 | | if (normalHit_ != null) hash ^= NormalHit.GetHashCode(); |
| 0 | 266 | | if (Length != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Length); |
| 0 | 267 | | if (HasMeshName) hash ^= MeshName.GetHashCode(); |
| 0 | 268 | | if (HasEntityId) hash ^= EntityId.GetHashCode(); |
| 0 | 269 | | if (_unknownFields != null) { |
| 0 | 270 | | hash ^= _unknownFields.GetHashCode(); |
| | 271 | | } |
| 0 | 272 | | return hash; |
| | 273 | | } |
| | 274 | |
|
| | 275 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 276 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 277 | | public override string ToString() { |
| 0 | 278 | | return pb::JsonFormatter.ToDiagnosticString(this); |
| | 279 | | } |
| | 280 | |
|
| | 281 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 282 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 283 | | public void WriteTo(pb::CodedOutputStream output) { |
| | 284 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 285 | | output.WriteRawMessage(this); |
| | 286 | | #else |
| 0 | 287 | | if (position_ != null) { |
| 0 | 288 | | output.WriteRawTag(10); |
| 0 | 289 | | output.WriteMessage(Position); |
| | 290 | | } |
| 0 | 291 | | if (globalOrigin_ != null) { |
| 0 | 292 | | output.WriteRawTag(18); |
| 0 | 293 | | output.WriteMessage(GlobalOrigin); |
| | 294 | | } |
| 0 | 295 | | if (direction_ != null) { |
| 0 | 296 | | output.WriteRawTag(26); |
| 0 | 297 | | output.WriteMessage(Direction); |
| | 298 | | } |
| 0 | 299 | | if (normalHit_ != null) { |
| 0 | 300 | | output.WriteRawTag(34); |
| 0 | 301 | | output.WriteMessage(NormalHit); |
| | 302 | | } |
| 0 | 303 | | if (Length != 0F) { |
| 0 | 304 | | output.WriteRawTag(45); |
| 0 | 305 | | output.WriteFloat(Length); |
| | 306 | | } |
| 0 | 307 | | if (HasMeshName) { |
| 0 | 308 | | output.WriteRawTag(50); |
| 0 | 309 | | output.WriteString(MeshName); |
| | 310 | | } |
| 0 | 311 | | if (HasEntityId) { |
| 0 | 312 | | output.WriteRawTag(56); |
| 0 | 313 | | output.WriteUInt32(EntityId); |
| | 314 | | } |
| 0 | 315 | | if (_unknownFields != null) { |
| 0 | 316 | | _unknownFields.WriteTo(output); |
| | 317 | | } |
| | 318 | | #endif |
| 0 | 319 | | } |
| | 320 | |
|
| | 321 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 322 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 323 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 324 | | void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { |
| | 325 | | if (position_ != null) { |
| | 326 | | output.WriteRawTag(10); |
| | 327 | | output.WriteMessage(Position); |
| | 328 | | } |
| | 329 | | if (globalOrigin_ != null) { |
| | 330 | | output.WriteRawTag(18); |
| | 331 | | output.WriteMessage(GlobalOrigin); |
| | 332 | | } |
| | 333 | | if (direction_ != null) { |
| | 334 | | output.WriteRawTag(26); |
| | 335 | | output.WriteMessage(Direction); |
| | 336 | | } |
| | 337 | | if (normalHit_ != null) { |
| | 338 | | output.WriteRawTag(34); |
| | 339 | | output.WriteMessage(NormalHit); |
| | 340 | | } |
| | 341 | | if (Length != 0F) { |
| | 342 | | output.WriteRawTag(45); |
| | 343 | | output.WriteFloat(Length); |
| | 344 | | } |
| | 345 | | if (HasMeshName) { |
| | 346 | | output.WriteRawTag(50); |
| | 347 | | output.WriteString(MeshName); |
| | 348 | | } |
| | 349 | | if (HasEntityId) { |
| | 350 | | output.WriteRawTag(56); |
| | 351 | | output.WriteUInt32(EntityId); |
| | 352 | | } |
| | 353 | | if (_unknownFields != null) { |
| | 354 | | _unknownFields.WriteTo(ref output); |
| | 355 | | } |
| | 356 | | } |
| | 357 | | #endif |
| | 358 | |
|
| | 359 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 360 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 361 | | public int CalculateSize() { |
| 0 | 362 | | int size = 0; |
| 0 | 363 | | if (position_ != null) { |
| 0 | 364 | | size += 1 + pb::CodedOutputStream.ComputeMessageSize(Position); |
| | 365 | | } |
| 0 | 366 | | if (globalOrigin_ != null) { |
| 0 | 367 | | size += 1 + pb::CodedOutputStream.ComputeMessageSize(GlobalOrigin); |
| | 368 | | } |
| 0 | 369 | | if (direction_ != null) { |
| 0 | 370 | | size += 1 + pb::CodedOutputStream.ComputeMessageSize(Direction); |
| | 371 | | } |
| 0 | 372 | | if (normalHit_ != null) { |
| 0 | 373 | | size += 1 + pb::CodedOutputStream.ComputeMessageSize(NormalHit); |
| | 374 | | } |
| 0 | 375 | | if (Length != 0F) { |
| 0 | 376 | | size += 1 + 4; |
| | 377 | | } |
| 0 | 378 | | if (HasMeshName) { |
| 0 | 379 | | size += 1 + pb::CodedOutputStream.ComputeStringSize(MeshName); |
| | 380 | | } |
| 0 | 381 | | if (HasEntityId) { |
| 0 | 382 | | size += 1 + pb::CodedOutputStream.ComputeUInt32Size(EntityId); |
| | 383 | | } |
| 0 | 384 | | if (_unknownFields != null) { |
| 0 | 385 | | size += _unknownFields.CalculateSize(); |
| | 386 | | } |
| 0 | 387 | | return size; |
| | 388 | | } |
| | 389 | |
|
| | 390 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 391 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 392 | | public void MergeFrom(RaycastHit other) { |
| 0 | 393 | | if (other == null) { |
| 0 | 394 | | return; |
| | 395 | | } |
| 0 | 396 | | if (other.position_ != null) { |
| 0 | 397 | | if (position_ == null) { |
| 0 | 398 | | Position = new global::Decentraland.Common.Vector3(); |
| | 399 | | } |
| 0 | 400 | | Position.MergeFrom(other.Position); |
| | 401 | | } |
| 0 | 402 | | if (other.globalOrigin_ != null) { |
| 0 | 403 | | if (globalOrigin_ == null) { |
| 0 | 404 | | GlobalOrigin = new global::Decentraland.Common.Vector3(); |
| | 405 | | } |
| 0 | 406 | | GlobalOrigin.MergeFrom(other.GlobalOrigin); |
| | 407 | | } |
| 0 | 408 | | if (other.direction_ != null) { |
| 0 | 409 | | if (direction_ == null) { |
| 0 | 410 | | Direction = new global::Decentraland.Common.Vector3(); |
| | 411 | | } |
| 0 | 412 | | Direction.MergeFrom(other.Direction); |
| | 413 | | } |
| 0 | 414 | | if (other.normalHit_ != null) { |
| 0 | 415 | | if (normalHit_ == null) { |
| 0 | 416 | | NormalHit = new global::Decentraland.Common.Vector3(); |
| | 417 | | } |
| 0 | 418 | | NormalHit.MergeFrom(other.NormalHit); |
| | 419 | | } |
| 0 | 420 | | if (other.Length != 0F) { |
| 0 | 421 | | Length = other.Length; |
| | 422 | | } |
| 0 | 423 | | if (other.HasMeshName) { |
| 0 | 424 | | MeshName = other.MeshName; |
| | 425 | | } |
| 0 | 426 | | if (other.HasEntityId) { |
| 0 | 427 | | EntityId = other.EntityId; |
| | 428 | | } |
| 0 | 429 | | _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
| 0 | 430 | | } |
| | 431 | |
|
| | 432 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 433 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 434 | | public void MergeFrom(pb::CodedInputStream input) { |
| | 435 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 436 | | input.ReadRawMessage(this); |
| | 437 | | #else |
| | 438 | | uint tag; |
| 0 | 439 | | while ((tag = input.ReadTag()) != 0) { |
| | 440 | | switch(tag) { |
| | 441 | | default: |
| 0 | 442 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
| 0 | 443 | | break; |
| | 444 | | case 10: { |
| 0 | 445 | | if (position_ == null) { |
| 0 | 446 | | Position = new global::Decentraland.Common.Vector3(); |
| | 447 | | } |
| 0 | 448 | | input.ReadMessage(Position); |
| 0 | 449 | | break; |
| | 450 | | } |
| | 451 | | case 18: { |
| 0 | 452 | | if (globalOrigin_ == null) { |
| 0 | 453 | | GlobalOrigin = new global::Decentraland.Common.Vector3(); |
| | 454 | | } |
| 0 | 455 | | input.ReadMessage(GlobalOrigin); |
| 0 | 456 | | break; |
| | 457 | | } |
| | 458 | | case 26: { |
| 0 | 459 | | if (direction_ == null) { |
| 0 | 460 | | Direction = new global::Decentraland.Common.Vector3(); |
| | 461 | | } |
| 0 | 462 | | input.ReadMessage(Direction); |
| 0 | 463 | | break; |
| | 464 | | } |
| | 465 | | case 34: { |
| 0 | 466 | | if (normalHit_ == null) { |
| 0 | 467 | | NormalHit = new global::Decentraland.Common.Vector3(); |
| | 468 | | } |
| 0 | 469 | | input.ReadMessage(NormalHit); |
| 0 | 470 | | break; |
| | 471 | | } |
| | 472 | | case 45: { |
| 0 | 473 | | Length = input.ReadFloat(); |
| 0 | 474 | | break; |
| | 475 | | } |
| | 476 | | case 50: { |
| 0 | 477 | | MeshName = input.ReadString(); |
| 0 | 478 | | break; |
| | 479 | | } |
| | 480 | | case 56: { |
| 0 | 481 | | EntityId = input.ReadUInt32(); |
| | 482 | | break; |
| | 483 | | } |
| | 484 | | } |
| | 485 | | } |
| | 486 | | #endif |
| 0 | 487 | | } |
| | 488 | |
|
| | 489 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 490 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 491 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 492 | | void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { |
| | 493 | | uint tag; |
| | 494 | | while ((tag = input.ReadTag()) != 0) { |
| | 495 | | switch(tag) { |
| | 496 | | default: |
| | 497 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); |
| | 498 | | break; |
| | 499 | | case 10: { |
| | 500 | | if (position_ == null) { |
| | 501 | | Position = new global::Decentraland.Common.Vector3(); |
| | 502 | | } |
| | 503 | | input.ReadMessage(Position); |
| | 504 | | break; |
| | 505 | | } |
| | 506 | | case 18: { |
| | 507 | | if (globalOrigin_ == null) { |
| | 508 | | GlobalOrigin = new global::Decentraland.Common.Vector3(); |
| | 509 | | } |
| | 510 | | input.ReadMessage(GlobalOrigin); |
| | 511 | | break; |
| | 512 | | } |
| | 513 | | case 26: { |
| | 514 | | if (direction_ == null) { |
| | 515 | | Direction = new global::Decentraland.Common.Vector3(); |
| | 516 | | } |
| | 517 | | input.ReadMessage(Direction); |
| | 518 | | break; |
| | 519 | | } |
| | 520 | | case 34: { |
| | 521 | | if (normalHit_ == null) { |
| | 522 | | NormalHit = new global::Decentraland.Common.Vector3(); |
| | 523 | | } |
| | 524 | | input.ReadMessage(NormalHit); |
| | 525 | | break; |
| | 526 | | } |
| | 527 | | case 45: { |
| | 528 | | Length = input.ReadFloat(); |
| | 529 | | break; |
| | 530 | | } |
| | 531 | | case 50: { |
| | 532 | | MeshName = input.ReadString(); |
| | 533 | | break; |
| | 534 | | } |
| | 535 | | case 56: { |
| | 536 | | EntityId = input.ReadUInt32(); |
| | 537 | | break; |
| | 538 | | } |
| | 539 | | } |
| | 540 | | } |
| | 541 | | } |
| | 542 | | #endif |
| | 543 | |
|
| | 544 | | } |
| | 545 | |
|
| | 546 | | #endregion |
| | 547 | |
|
| | 548 | | } |
| | 549 | |
|
| | 550 | | #endregion Designer generated code |