| | 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 | |
|
| | 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/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 { |
| | 20 | | get { return descriptor; } |
| | 21 | | } |
| | 22 | | private static pbr::FileDescriptor descriptor; |
| | 23 | |
|
| | 24 | | static RaycastReflection() { |
| | 25 | | 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=")); |
| | 44 | | 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 | | })); |
| | 49 | | } |
| | 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 | | { |
| 1 | 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)] |
| 0 | 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 { |
| 0 | 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 { |
| 0 | 102 | | get { return Descriptor; } |
| | 103 | | } |
| | 104 | |
|
| | 105 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 106 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 32 | 107 | | public PBRaycast() { |
| | 108 | | OnConstruction(); |
| 32 | 109 | | } |
| | 110 | |
|
| | 111 | | partial void OnConstruction(); |
| | 112 | |
|
| | 113 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 114 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 4 | 115 | | public PBRaycast(PBRaycast other) : this() { |
| 4 | 116 | | _hasBits0 = other._hasBits0; |
| 4 | 117 | | timestamp_ = other.timestamp_; |
| 4 | 118 | | originOffset_ = other.originOffset_ != null ? other.originOffset_.Clone() : null; |
| 4 | 119 | | maxDistance_ = other.maxDistance_; |
| 4 | 120 | | queryType_ = other.queryType_; |
| 4 | 121 | | continuous_ = other.continuous_; |
| 4 | 122 | | collisionMask_ = other.collisionMask_; |
| 4 | 123 | | switch (other.DirectionCase) { |
| | 124 | | case DirectionOneofCase.LocalDirection: |
| 0 | 125 | | LocalDirection = other.LocalDirection.Clone(); |
| 0 | 126 | | break; |
| | 127 | | case DirectionOneofCase.GlobalDirection: |
| 4 | 128 | | GlobalDirection = other.GlobalDirection.Clone(); |
| 4 | 129 | | break; |
| | 130 | | case DirectionOneofCase.GlobalTarget: |
| 0 | 131 | | GlobalTarget = other.GlobalTarget.Clone(); |
| 0 | 132 | | break; |
| | 133 | | case DirectionOneofCase.TargetEntity: |
| 0 | 134 | | TargetEntity = other.TargetEntity; |
| | 135 | | break; |
| | 136 | | } |
| | 137 | |
|
| 4 | 138 | | _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
| 4 | 139 | | } |
| | 140 | |
|
| | 141 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 142 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 143 | | public PBRaycast Clone() { |
| 4 | 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 { |
| 68 | 156 | | get { if ((_hasBits0 & 1) != 0) { return timestamp_; } else { return 0; } } |
| | 157 | | set { |
| 4 | 158 | | _hasBits0 |= 1; |
| 4 | 159 | | timestamp_ = value; |
| 4 | 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 { |
| 0 | 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() { |
| 0 | 172 | | _hasBits0 &= ~1; |
| 0 | 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 { |
| 31 | 185 | | get { return originOffset_; } |
| | 186 | | set { |
| 1 | 187 | | originOffset_ = value; |
| 1 | 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 { |
| 5 | 199 | | get { return directionCase_ == DirectionOneofCase.LocalDirection ? (global::Decentraland.Common.Vector3) direction |
| | 200 | | set { |
| 5 | 201 | | direction_ = value; |
| 5 | 202 | | directionCase_ = value == null ? DirectionOneofCase.None : DirectionOneofCase.LocalDirection; |
| 5 | 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 { |
| 24 | 214 | | get { return directionCase_ == DirectionOneofCase.GlobalDirection ? (global::Decentraland.Common.Vector3) directio |
| | 215 | | set { |
| 22 | 216 | | direction_ = value; |
| 22 | 217 | | directionCase_ = value == null ? DirectionOneofCase.None : DirectionOneofCase.GlobalDirection; |
| 22 | 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 { |
| 3 | 229 | | get { return directionCase_ == DirectionOneofCase.GlobalTarget ? (global::Decentraland.Common.Vector3) direction_ |
| | 230 | | set { |
| 3 | 231 | | direction_ = value; |
| 3 | 232 | | directionCase_ = value == null ? DirectionOneofCase.None : DirectionOneofCase.GlobalTarget; |
| 3 | 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 { |
| 2 | 244 | | get { return directionCase_ == DirectionOneofCase.TargetEntity ? (uint) direction_ : 0; } |
| | 245 | | set { |
| 2 | 246 | | direction_ = value; |
| 2 | 247 | | directionCase_ = DirectionOneofCase.TargetEntity; |
| 2 | 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 { |
| 30 | 260 | | get { return maxDistance_; } |
| | 261 | | set { |
| 29 | 262 | | maxDistance_ = value; |
| 29 | 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 { |
| 83 | 275 | | get { return queryType_; } |
| | 276 | | set { |
| 28 | 277 | | queryType_ = value; |
| 28 | 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 { |
| 78 | 291 | | get { if ((_hasBits0 & 2) != 0) { return continuous_; } else { return false; } } |
| | 292 | | set { |
| 4 | 293 | | _hasBits0 |= 2; |
| 4 | 294 | | continuous_ = value; |
| 4 | 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 { |
| 30 | 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() { |
| 0 | 307 | | _hasBits0 &= ~2; |
| 0 | 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 { |
| 160 | 319 | | get { if ((_hasBits0 & 4) != 0) { return collisionMask_; } else { return 0; } } |
| | 320 | | set { |
| 9 | 321 | | _hasBits0 |= 4; |
| 9 | 322 | | collisionMask_ = value; |
| 9 | 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 { |
| 102 | 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() { |
| 0 | 335 | | _hasBits0 &= ~4; |
| 0 | 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 { |
| 34 | 351 | | get { return directionCase_; } |
| | 352 | | } |
| | 353 | |
|
| | 354 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 355 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 356 | | public void ClearDirection() { |
| 0 | 357 | | directionCase_ = DirectionOneofCase.None; |
| 0 | 358 | | direction_ = null; |
| 0 | 359 | | } |
| | 360 | |
|
| | 361 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 362 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 363 | | public override bool Equals(object other) { |
| 0 | 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) { |
| 0 | 370 | | if (ReferenceEquals(other, null)) { |
| 0 | 371 | | return false; |
| | 372 | | } |
| 0 | 373 | | if (ReferenceEquals(other, this)) { |
| 0 | 374 | | return true; |
| | 375 | | } |
| 0 | 376 | | if (Timestamp != other.Timestamp) return false; |
| 0 | 377 | | if (!object.Equals(OriginOffset, other.OriginOffset)) return false; |
| 0 | 378 | | if (!object.Equals(LocalDirection, other.LocalDirection)) return false; |
| 0 | 379 | | if (!object.Equals(GlobalDirection, other.GlobalDirection)) return false; |
| 0 | 380 | | if (!object.Equals(GlobalTarget, other.GlobalTarget)) return false; |
| 0 | 381 | | if (TargetEntity != other.TargetEntity) return false; |
| 0 | 382 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(MaxDistance, other.MaxDistance)) return f |
| 0 | 383 | | if (QueryType != other.QueryType) return false; |
| 0 | 384 | | if (Continuous != other.Continuous) return false; |
| 0 | 385 | | if (CollisionMask != other.CollisionMask) return false; |
| 0 | 386 | | if (DirectionCase != other.DirectionCase) return false; |
| 0 | 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() { |
| 0 | 393 | | int hash = 1; |
| 0 | 394 | | if (HasTimestamp) hash ^= Timestamp.GetHashCode(); |
| 0 | 395 | | if (originOffset_ != null) hash ^= OriginOffset.GetHashCode(); |
| 0 | 396 | | if (directionCase_ == DirectionOneofCase.LocalDirection) hash ^= LocalDirection.GetHashCode(); |
| 0 | 397 | | if (directionCase_ == DirectionOneofCase.GlobalDirection) hash ^= GlobalDirection.GetHashCode(); |
| 0 | 398 | | if (directionCase_ == DirectionOneofCase.GlobalTarget) hash ^= GlobalTarget.GetHashCode(); |
| 0 | 399 | | if (directionCase_ == DirectionOneofCase.TargetEntity) hash ^= TargetEntity.GetHashCode(); |
| 0 | 400 | | if (MaxDistance != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(MaxDistanc |
| 0 | 401 | | if (QueryType != global::DCL.ECSComponents.RaycastQueryType.RqtHitFirst) hash ^= QueryType.GetHashCode(); |
| 0 | 402 | | if (HasContinuous) hash ^= Continuous.GetHashCode(); |
| 0 | 403 | | if (HasCollisionMask) hash ^= CollisionMask.GetHashCode(); |
| 0 | 404 | | hash ^= (int) directionCase_; |
| 0 | 405 | | if (_unknownFields != null) { |
| 0 | 406 | | hash ^= _unknownFields.GetHashCode(); |
| | 407 | | } |
| 0 | 408 | | return hash; |
| | 409 | | } |
| | 410 | |
|
| | 411 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 412 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 413 | | public override string ToString() { |
| 0 | 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 |
| 0 | 423 | | if (HasTimestamp) { |
| 0 | 424 | | output.WriteRawTag(8); |
| 0 | 425 | | output.WriteUInt32(Timestamp); |
| | 426 | | } |
| 0 | 427 | | if (originOffset_ != null) { |
| 0 | 428 | | output.WriteRawTag(18); |
| 0 | 429 | | output.WriteMessage(OriginOffset); |
| | 430 | | } |
| 0 | 431 | | if (directionCase_ == DirectionOneofCase.GlobalDirection) { |
| 0 | 432 | | output.WriteRawTag(26); |
| 0 | 433 | | output.WriteMessage(GlobalDirection); |
| | 434 | | } |
| 0 | 435 | | if (MaxDistance != 0F) { |
| 0 | 436 | | output.WriteRawTag(37); |
| 0 | 437 | | output.WriteFloat(MaxDistance); |
| | 438 | | } |
| 0 | 439 | | if (QueryType != global::DCL.ECSComponents.RaycastQueryType.RqtHitFirst) { |
| 0 | 440 | | output.WriteRawTag(40); |
| 0 | 441 | | output.WriteEnum((int) QueryType); |
| | 442 | | } |
| 0 | 443 | | if (directionCase_ == DirectionOneofCase.LocalDirection) { |
| 0 | 444 | | output.WriteRawTag(50); |
| 0 | 445 | | output.WriteMessage(LocalDirection); |
| | 446 | | } |
| 0 | 447 | | if (directionCase_ == DirectionOneofCase.GlobalTarget) { |
| 0 | 448 | | output.WriteRawTag(58); |
| 0 | 449 | | output.WriteMessage(GlobalTarget); |
| | 450 | | } |
| 0 | 451 | | if (HasContinuous) { |
| 0 | 452 | | output.WriteRawTag(64); |
| 0 | 453 | | output.WriteBool(Continuous); |
| | 454 | | } |
| 0 | 455 | | if (HasCollisionMask) { |
| 0 | 456 | | output.WriteRawTag(72); |
| 0 | 457 | | output.WriteUInt32(CollisionMask); |
| | 458 | | } |
| 0 | 459 | | if (directionCase_ == DirectionOneofCase.TargetEntity) { |
| 0 | 460 | | output.WriteRawTag(80); |
| 0 | 461 | | output.WriteUInt32(TargetEntity); |
| | 462 | | } |
| 0 | 463 | | if (_unknownFields != null) { |
| 0 | 464 | | _unknownFields.WriteTo(output); |
| | 465 | | } |
| | 466 | | #endif |
| 0 | 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() { |
| 0 | 522 | | int size = 0; |
| 0 | 523 | | if (HasTimestamp) { |
| 0 | 524 | | size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Timestamp); |
| | 525 | | } |
| 0 | 526 | | if (originOffset_ != null) { |
| 0 | 527 | | size += 1 + pb::CodedOutputStream.ComputeMessageSize(OriginOffset); |
| | 528 | | } |
| 0 | 529 | | if (directionCase_ == DirectionOneofCase.LocalDirection) { |
| 0 | 530 | | size += 1 + pb::CodedOutputStream.ComputeMessageSize(LocalDirection); |
| | 531 | | } |
| 0 | 532 | | if (directionCase_ == DirectionOneofCase.GlobalDirection) { |
| 0 | 533 | | size += 1 + pb::CodedOutputStream.ComputeMessageSize(GlobalDirection); |
| | 534 | | } |
| 0 | 535 | | if (directionCase_ == DirectionOneofCase.GlobalTarget) { |
| 0 | 536 | | size += 1 + pb::CodedOutputStream.ComputeMessageSize(GlobalTarget); |
| | 537 | | } |
| 0 | 538 | | if (directionCase_ == DirectionOneofCase.TargetEntity) { |
| 0 | 539 | | size += 1 + pb::CodedOutputStream.ComputeUInt32Size(TargetEntity); |
| | 540 | | } |
| 0 | 541 | | if (MaxDistance != 0F) { |
| 0 | 542 | | size += 1 + 4; |
| | 543 | | } |
| 0 | 544 | | if (QueryType != global::DCL.ECSComponents.RaycastQueryType.RqtHitFirst) { |
| 0 | 545 | | size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) QueryType); |
| | 546 | | } |
| 0 | 547 | | if (HasContinuous) { |
| 0 | 548 | | size += 1 + 1; |
| | 549 | | } |
| 0 | 550 | | if (HasCollisionMask) { |
| 0 | 551 | | size += 1 + pb::CodedOutputStream.ComputeUInt32Size(CollisionMask); |
| | 552 | | } |
| 0 | 553 | | if (_unknownFields != null) { |
| 0 | 554 | | size += _unknownFields.CalculateSize(); |
| | 555 | | } |
| 0 | 556 | | return size; |
| | 557 | | } |
| | 558 | |
|
| | 559 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 560 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 561 | | public void MergeFrom(PBRaycast other) { |
| 0 | 562 | | if (other == null) { |
| 0 | 563 | | return; |
| | 564 | | } |
| 0 | 565 | | if (other.HasTimestamp) { |
| 0 | 566 | | Timestamp = other.Timestamp; |
| | 567 | | } |
| 0 | 568 | | if (other.originOffset_ != null) { |
| 0 | 569 | | if (originOffset_ == null) { |
| 0 | 570 | | OriginOffset = new global::Decentraland.Common.Vector3(); |
| | 571 | | } |
| 0 | 572 | | OriginOffset.MergeFrom(other.OriginOffset); |
| | 573 | | } |
| 0 | 574 | | if (other.MaxDistance != 0F) { |
| 0 | 575 | | MaxDistance = other.MaxDistance; |
| | 576 | | } |
| 0 | 577 | | if (other.QueryType != global::DCL.ECSComponents.RaycastQueryType.RqtHitFirst) { |
| 0 | 578 | | QueryType = other.QueryType; |
| | 579 | | } |
| 0 | 580 | | if (other.HasContinuous) { |
| 0 | 581 | | Continuous = other.Continuous; |
| | 582 | | } |
| 0 | 583 | | if (other.HasCollisionMask) { |
| 0 | 584 | | CollisionMask = other.CollisionMask; |
| | 585 | | } |
| 0 | 586 | | switch (other.DirectionCase) { |
| | 587 | | case DirectionOneofCase.LocalDirection: |
| 0 | 588 | | if (LocalDirection == null) { |
| 0 | 589 | | LocalDirection = new global::Decentraland.Common.Vector3(); |
| | 590 | | } |
| 0 | 591 | | LocalDirection.MergeFrom(other.LocalDirection); |
| 0 | 592 | | break; |
| | 593 | | case DirectionOneofCase.GlobalDirection: |
| 0 | 594 | | if (GlobalDirection == null) { |
| 0 | 595 | | GlobalDirection = new global::Decentraland.Common.Vector3(); |
| | 596 | | } |
| 0 | 597 | | GlobalDirection.MergeFrom(other.GlobalDirection); |
| 0 | 598 | | break; |
| | 599 | | case DirectionOneofCase.GlobalTarget: |
| 0 | 600 | | if (GlobalTarget == null) { |
| 0 | 601 | | GlobalTarget = new global::Decentraland.Common.Vector3(); |
| | 602 | | } |
| 0 | 603 | | GlobalTarget.MergeFrom(other.GlobalTarget); |
| 0 | 604 | | break; |
| | 605 | | case DirectionOneofCase.TargetEntity: |
| 0 | 606 | | TargetEntity = other.TargetEntity; |
| | 607 | | break; |
| | 608 | | } |
| | 609 | |
|
| 0 | 610 | | _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
| 0 | 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; |
| 0 | 620 | | while ((tag = input.ReadTag()) != 0) { |
| | 621 | | switch(tag) { |
| | 622 | | default: |
| 0 | 623 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
| 0 | 624 | | break; |
| | 625 | | case 8: { |
| 0 | 626 | | Timestamp = input.ReadUInt32(); |
| 0 | 627 | | break; |
| | 628 | | } |
| | 629 | | case 18: { |
| 0 | 630 | | if (originOffset_ == null) { |
| 0 | 631 | | OriginOffset = new global::Decentraland.Common.Vector3(); |
| | 632 | | } |
| 0 | 633 | | input.ReadMessage(OriginOffset); |
| 0 | 634 | | break; |
| | 635 | | } |
| | 636 | | case 26: { |
| 0 | 637 | | global::Decentraland.Common.Vector3 subBuilder = new global::Decentraland.Common.Vector3(); |
| 0 | 638 | | if (directionCase_ == DirectionOneofCase.GlobalDirection) { |
| 0 | 639 | | subBuilder.MergeFrom(GlobalDirection); |
| | 640 | | } |
| 0 | 641 | | input.ReadMessage(subBuilder); |
| 0 | 642 | | GlobalDirection = subBuilder; |
| 0 | 643 | | break; |
| | 644 | | } |
| | 645 | | case 37: { |
| 0 | 646 | | MaxDistance = input.ReadFloat(); |
| 0 | 647 | | break; |
| | 648 | | } |
| | 649 | | case 40: { |
| 0 | 650 | | QueryType = (global::DCL.ECSComponents.RaycastQueryType) input.ReadEnum(); |
| 0 | 651 | | break; |
| | 652 | | } |
| | 653 | | case 50: { |
| 0 | 654 | | global::Decentraland.Common.Vector3 subBuilder = new global::Decentraland.Common.Vector3(); |
| 0 | 655 | | if (directionCase_ == DirectionOneofCase.LocalDirection) { |
| 0 | 656 | | subBuilder.MergeFrom(LocalDirection); |
| | 657 | | } |
| 0 | 658 | | input.ReadMessage(subBuilder); |
| 0 | 659 | | LocalDirection = subBuilder; |
| 0 | 660 | | break; |
| | 661 | | } |
| | 662 | | case 58: { |
| 0 | 663 | | global::Decentraland.Common.Vector3 subBuilder = new global::Decentraland.Common.Vector3(); |
| 0 | 664 | | if (directionCase_ == DirectionOneofCase.GlobalTarget) { |
| 0 | 665 | | subBuilder.MergeFrom(GlobalTarget); |
| | 666 | | } |
| 0 | 667 | | input.ReadMessage(subBuilder); |
| 0 | 668 | | GlobalTarget = subBuilder; |
| 0 | 669 | | break; |
| | 670 | | } |
| | 671 | | case 64: { |
| 0 | 672 | | Continuous = input.ReadBool(); |
| 0 | 673 | | break; |
| | 674 | | } |
| | 675 | | case 72: { |
| 0 | 676 | | CollisionMask = input.ReadUInt32(); |
| 0 | 677 | | break; |
| | 678 | | } |
| | 679 | | case 80: { |
| 0 | 680 | | TargetEntity = input.ReadUInt32(); |
| | 681 | | break; |
| | 682 | | } |
| | 683 | | } |
| | 684 | | } |
| | 685 | | #endif |
| 0 | 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 |