| | 1 | | // <auto-generated> |
| | 2 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
| | 3 | | // source: ecs/components/RaycastResult.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 ecs/components/RaycastResult.proto</summary> |
| | 15 | | public static partial class RaycastResultReflection { |
| | 16 | |
|
| | 17 | | #region Descriptor |
| | 18 | | /// <summary>File descriptor for ecs/components/RaycastResult.proto</summary> |
| | 19 | | public static pbr::FileDescriptor Descriptor { |
| | 20 | | get { return descriptor; } |
| | 21 | | } |
| | 22 | | private static pbr::FileDescriptor descriptor; |
| | 23 | |
|
| | 24 | | static RaycastResultReflection() { |
| | 25 | | byte[] descriptorData = global::System.Convert.FromBase64String( |
| | 26 | | string.Concat( |
| | 27 | | "CiJlY3MvY29tcG9uZW50cy9SYXljYXN0UmVzdWx0LnByb3RvEhBkZWNlbnRy", |
| | 28 | | "YWxhbmQuZWNzGiNlY3MvY29tcG9uZW50cy9jb21tb24vVmVjdG9yMy5wcm90", |
| | 29 | | "byKpAQoPUEJSYXljYXN0UmVzdWx0EhEKCXRpbWVzdGFtcBgBIAEoBRIpCgZv", |
| | 30 | | "cmlnaW4YAiABKAsyGS5kZWNlbnRyYWxhbmQuZWNzLlZlY3RvcjMSLAoJZGly", |
| | 31 | | "ZWN0aW9uGAMgASgLMhkuZGVjZW50cmFsYW5kLmVjcy5WZWN0b3IzEioKBGhp", |
| | 32 | | "dHMYBCADKAsyHC5kZWNlbnRyYWxhbmQuZWNzLlJheWNhc3RIaXQinQIKClJh", |
| | 33 | | "eWNhc3RIaXQSKwoIcG9zaXRpb24YASABKAsyGS5kZWNlbnRyYWxhbmQuZWNz", |
| | 34 | | "LlZlY3RvcjMSKQoGb3JpZ2luGAIgASgLMhkuZGVjZW50cmFsYW5kLmVjcy5W", |
| | 35 | | "ZWN0b3IzEiwKCWRpcmVjdGlvbhgDIAEoCzIZLmRlY2VudHJhbGFuZC5lY3Mu", |
| | 36 | | "VmVjdG9yMxItCgpub3JtYWxfaGl0GAQgASgLMhkuZGVjZW50cmFsYW5kLmVj", |
| | 37 | | "cy5WZWN0b3IzEg4KBmxlbmd0aBgFIAEoAhIWCgltZXNoX25hbWUYBiABKAlI", |
| | 38 | | "AIgBARIWCgllbnRpdHlfaWQYByABKANIAYgBAUIMCgpfbWVzaF9uYW1lQgwK", |
| | 39 | | "Cl9lbnRpdHlfaWRCFKoCEURDTC5FQ1NDb21wb25lbnRzYgZwcm90bzM=")); |
| | 40 | | descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, |
| | 41 | | new pbr::FileDescriptor[] { global::DCL.ECSComponents.Vector3Reflection.Descriptor, }, |
| | 42 | | new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { |
| | 43 | | new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBRaycastResult), global::DCL.ECSComponents.P |
| | 44 | | new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.RaycastHit), global::DCL.ECSComponents.Raycas |
| | 45 | | })); |
| | 46 | | } |
| | 47 | | #endregion |
| | 48 | |
|
| | 49 | | } |
| | 50 | | #region Messages |
| | 51 | | public sealed partial class PBRaycastResult : pb::IMessage<PBRaycastResult> |
| | 52 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 53 | | , pb::IBufferMessage |
| | 54 | | #endif |
| | 55 | | { |
| | 56 | | private static readonly pb::MessageParser<PBRaycastResult> _parser = new pb::MessageParser<PBRaycastResult>(() => ne |
| | 57 | | private pb::UnknownFieldSet _unknownFields; |
| | 58 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 59 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 60 | | public static pb::MessageParser<PBRaycastResult> Parser { get { return _parser; } } |
| | 61 | |
|
| | 62 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 63 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 64 | | public static pbr::MessageDescriptor Descriptor { |
| | 65 | | get { return global::DCL.ECSComponents.RaycastResultReflection.Descriptor.MessageTypes[0]; } |
| | 66 | | } |
| | 67 | |
|
| | 68 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 69 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 70 | | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| | 71 | | get { return Descriptor; } |
| | 72 | | } |
| | 73 | |
|
| | 74 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 75 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 76 | | public PBRaycastResult() { |
| | 77 | | OnConstruction(); |
| | 78 | | } |
| | 79 | |
|
| | 80 | | partial void OnConstruction(); |
| | 81 | |
|
| | 82 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 83 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 84 | | public PBRaycastResult(PBRaycastResult other) : this() { |
| | 85 | | timestamp_ = other.timestamp_; |
| | 86 | | origin_ = other.origin_ != null ? other.origin_.Clone() : null; |
| | 87 | | direction_ = other.direction_ != null ? other.direction_.Clone() : null; |
| | 88 | | hits_ = other.hits_.Clone(); |
| | 89 | | _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
| | 90 | | } |
| | 91 | |
|
| | 92 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 93 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 94 | | public PBRaycastResult Clone() { |
| | 95 | | return new PBRaycastResult(this); |
| | 96 | | } |
| | 97 | |
|
| | 98 | | /// <summary>Field number for the "timestamp" field.</summary> |
| | 99 | | public const int TimestampFieldNumber = 1; |
| | 100 | | private int timestamp_; |
| | 101 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 102 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 103 | | public int Timestamp { |
| | 104 | | get { return timestamp_; } |
| | 105 | | set { |
| | 106 | | timestamp_ = value; |
| | 107 | | } |
| | 108 | | } |
| | 109 | |
|
| | 110 | | /// <summary>Field number for the "origin" field.</summary> |
| | 111 | | public const int OriginFieldNumber = 2; |
| | 112 | | private global::DCL.ECSComponents.Vector3 origin_; |
| | 113 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 114 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 115 | | public global::DCL.ECSComponents.Vector3 Origin { |
| | 116 | | get { return origin_; } |
| | 117 | | set { |
| | 118 | | origin_ = value; |
| | 119 | | } |
| | 120 | | } |
| | 121 | |
|
| | 122 | | /// <summary>Field number for the "direction" field.</summary> |
| | 123 | | public const int DirectionFieldNumber = 3; |
| | 124 | | private global::DCL.ECSComponents.Vector3 direction_; |
| | 125 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 126 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 127 | | public global::DCL.ECSComponents.Vector3 Direction { |
| | 128 | | get { return direction_; } |
| | 129 | | set { |
| | 130 | | direction_ = value; |
| | 131 | | } |
| | 132 | | } |
| | 133 | |
|
| | 134 | | /// <summary>Field number for the "hits" field.</summary> |
| | 135 | | public const int HitsFieldNumber = 4; |
| | 136 | | private static readonly pb::FieldCodec<global::DCL.ECSComponents.RaycastHit> _repeated_hits_codec |
| | 137 | | = pb::FieldCodec.ForMessage(34, global::DCL.ECSComponents.RaycastHit.Parser); |
| | 138 | | private readonly pbc::RepeatedField<global::DCL.ECSComponents.RaycastHit> hits_ = new pbc::RepeatedField<global::DCL |
| | 139 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 140 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 141 | | public pbc::RepeatedField<global::DCL.ECSComponents.RaycastHit> Hits { |
| | 142 | | get { return hits_; } |
| | 143 | | } |
| | 144 | |
|
| | 145 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 146 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 147 | | public override bool Equals(object other) { |
| | 148 | | return Equals(other as PBRaycastResult); |
| | 149 | | } |
| | 150 | |
|
| | 151 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 152 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 153 | | public bool Equals(PBRaycastResult other) { |
| | 154 | | if (ReferenceEquals(other, null)) { |
| | 155 | | return false; |
| | 156 | | } |
| | 157 | | if (ReferenceEquals(other, this)) { |
| | 158 | | return true; |
| | 159 | | } |
| | 160 | | if (Timestamp != other.Timestamp) return false; |
| | 161 | | if (!object.Equals(Origin, other.Origin)) return false; |
| | 162 | | if (!object.Equals(Direction, other.Direction)) return false; |
| | 163 | | if(!hits_.Equals(other.hits_)) return false; |
| | 164 | | return Equals(_unknownFields, other._unknownFields); |
| | 165 | | } |
| | 166 | |
|
| | 167 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 168 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 169 | | public override int GetHashCode() { |
| | 170 | | int hash = 1; |
| | 171 | | if (Timestamp != 0) hash ^= Timestamp.GetHashCode(); |
| | 172 | | if (origin_ != null) hash ^= Origin.GetHashCode(); |
| | 173 | | if (direction_ != null) hash ^= Direction.GetHashCode(); |
| | 174 | | hash ^= hits_.GetHashCode(); |
| | 175 | | if (_unknownFields != null) { |
| | 176 | | hash ^= _unknownFields.GetHashCode(); |
| | 177 | | } |
| | 178 | | return hash; |
| | 179 | | } |
| | 180 | |
|
| | 181 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 182 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 183 | | public override string ToString() { |
| | 184 | | return pb::JsonFormatter.ToDiagnosticString(this); |
| | 185 | | } |
| | 186 | |
|
| | 187 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 188 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 189 | | public void WriteTo(pb::CodedOutputStream output) { |
| | 190 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 191 | | output.WriteRawMessage(this); |
| | 192 | | #else |
| | 193 | | if (Timestamp != 0) { |
| | 194 | | output.WriteRawTag(8); |
| | 195 | | output.WriteInt32(Timestamp); |
| | 196 | | } |
| | 197 | | if (origin_ != null) { |
| | 198 | | output.WriteRawTag(18); |
| | 199 | | output.WriteMessage(Origin); |
| | 200 | | } |
| | 201 | | if (direction_ != null) { |
| | 202 | | output.WriteRawTag(26); |
| | 203 | | output.WriteMessage(Direction); |
| | 204 | | } |
| | 205 | | hits_.WriteTo(output, _repeated_hits_codec); |
| | 206 | | if (_unknownFields != null) { |
| | 207 | | _unknownFields.WriteTo(output); |
| | 208 | | } |
| | 209 | | #endif |
| | 210 | | } |
| | 211 | |
|
| | 212 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 213 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 214 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 215 | | void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { |
| | 216 | | if (Timestamp != 0) { |
| | 217 | | output.WriteRawTag(8); |
| | 218 | | output.WriteInt32(Timestamp); |
| | 219 | | } |
| | 220 | | if (origin_ != null) { |
| | 221 | | output.WriteRawTag(18); |
| | 222 | | output.WriteMessage(Origin); |
| | 223 | | } |
| | 224 | | if (direction_ != null) { |
| | 225 | | output.WriteRawTag(26); |
| | 226 | | output.WriteMessage(Direction); |
| | 227 | | } |
| | 228 | | hits_.WriteTo(ref output, _repeated_hits_codec); |
| | 229 | | if (_unknownFields != null) { |
| | 230 | | _unknownFields.WriteTo(ref output); |
| | 231 | | } |
| | 232 | | } |
| | 233 | | #endif |
| | 234 | |
|
| | 235 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 236 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 237 | | public int CalculateSize() { |
| | 238 | | int size = 0; |
| | 239 | | if (Timestamp != 0) { |
| | 240 | | size += 1 + pb::CodedOutputStream.ComputeInt32Size(Timestamp); |
| | 241 | | } |
| | 242 | | if (origin_ != null) { |
| | 243 | | size += 1 + pb::CodedOutputStream.ComputeMessageSize(Origin); |
| | 244 | | } |
| | 245 | | if (direction_ != null) { |
| | 246 | | size += 1 + pb::CodedOutputStream.ComputeMessageSize(Direction); |
| | 247 | | } |
| | 248 | | size += hits_.CalculateSize(_repeated_hits_codec); |
| | 249 | | if (_unknownFields != null) { |
| | 250 | | size += _unknownFields.CalculateSize(); |
| | 251 | | } |
| | 252 | | return size; |
| | 253 | | } |
| | 254 | |
|
| | 255 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 256 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 257 | | public void MergeFrom(PBRaycastResult other) { |
| | 258 | | if (other == null) { |
| | 259 | | return; |
| | 260 | | } |
| | 261 | | if (other.Timestamp != 0) { |
| | 262 | | Timestamp = other.Timestamp; |
| | 263 | | } |
| | 264 | | if (other.origin_ != null) { |
| | 265 | | if (origin_ == null) { |
| | 266 | | Origin = new global::DCL.ECSComponents.Vector3(); |
| | 267 | | } |
| | 268 | | Origin.MergeFrom(other.Origin); |
| | 269 | | } |
| | 270 | | if (other.direction_ != null) { |
| | 271 | | if (direction_ == null) { |
| | 272 | | Direction = new global::DCL.ECSComponents.Vector3(); |
| | 273 | | } |
| | 274 | | Direction.MergeFrom(other.Direction); |
| | 275 | | } |
| | 276 | | hits_.Add(other.hits_); |
| | 277 | | _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
| | 278 | | } |
| | 279 | |
|
| | 280 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 281 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 282 | | public void MergeFrom(pb::CodedInputStream input) { |
| | 283 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 284 | | input.ReadRawMessage(this); |
| | 285 | | #else |
| | 286 | | uint tag; |
| | 287 | | while ((tag = input.ReadTag()) != 0) { |
| | 288 | | switch(tag) { |
| | 289 | | default: |
| | 290 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
| | 291 | | break; |
| | 292 | | case 8: { |
| | 293 | | Timestamp = input.ReadInt32(); |
| | 294 | | break; |
| | 295 | | } |
| | 296 | | case 18: { |
| | 297 | | if (origin_ == null) { |
| | 298 | | Origin = new global::DCL.ECSComponents.Vector3(); |
| | 299 | | } |
| | 300 | | input.ReadMessage(Origin); |
| | 301 | | break; |
| | 302 | | } |
| | 303 | | case 26: { |
| | 304 | | if (direction_ == null) { |
| | 305 | | Direction = new global::DCL.ECSComponents.Vector3(); |
| | 306 | | } |
| | 307 | | input.ReadMessage(Direction); |
| | 308 | | break; |
| | 309 | | } |
| | 310 | | case 34: { |
| | 311 | | hits_.AddEntriesFrom(input, _repeated_hits_codec); |
| | 312 | | break; |
| | 313 | | } |
| | 314 | | } |
| | 315 | | } |
| | 316 | | #endif |
| | 317 | | } |
| | 318 | |
|
| | 319 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 320 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 321 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 322 | | void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { |
| | 323 | | uint tag; |
| | 324 | | while ((tag = input.ReadTag()) != 0) { |
| | 325 | | switch(tag) { |
| | 326 | | default: |
| | 327 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); |
| | 328 | | break; |
| | 329 | | case 8: { |
| | 330 | | Timestamp = input.ReadInt32(); |
| | 331 | | break; |
| | 332 | | } |
| | 333 | | case 18: { |
| | 334 | | if (origin_ == null) { |
| | 335 | | Origin = new global::DCL.ECSComponents.Vector3(); |
| | 336 | | } |
| | 337 | | input.ReadMessage(Origin); |
| | 338 | | break; |
| | 339 | | } |
| | 340 | | case 26: { |
| | 341 | | if (direction_ == null) { |
| | 342 | | Direction = new global::DCL.ECSComponents.Vector3(); |
| | 343 | | } |
| | 344 | | input.ReadMessage(Direction); |
| | 345 | | break; |
| | 346 | | } |
| | 347 | | case 34: { |
| | 348 | | hits_.AddEntriesFrom(ref input, _repeated_hits_codec); |
| | 349 | | break; |
| | 350 | | } |
| | 351 | | } |
| | 352 | | } |
| | 353 | | } |
| | 354 | | #endif |
| | 355 | |
|
| | 356 | | } |
| | 357 | |
|
| | 358 | | /// <summary> |
| | 359 | | /// Position will be relative to the scene |
| | 360 | | /// </summary> |
| | 361 | | public sealed partial class RaycastHit : pb::IMessage<RaycastHit> |
| | 362 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 363 | | , pb::IBufferMessage |
| | 364 | | #endif |
| | 365 | | { |
| 1 | 366 | | private static readonly pb::MessageParser<RaycastHit> _parser = new pb::MessageParser<RaycastHit>(() => new RaycastH |
| | 367 | | private pb::UnknownFieldSet _unknownFields; |
| | 368 | | private int _hasBits0; |
| | 369 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 370 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 1 | 371 | | public static pb::MessageParser<RaycastHit> Parser { get { return _parser; } } |
| | 372 | |
|
| | 373 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 374 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 375 | | public static pbr::MessageDescriptor Descriptor { |
| 0 | 376 | | get { return global::DCL.ECSComponents.RaycastResultReflection.Descriptor.MessageTypes[1]; } |
| | 377 | | } |
| | 378 | |
|
| | 379 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 380 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 381 | | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 0 | 382 | | get { return Descriptor; } |
| | 383 | | } |
| | 384 | |
|
| | 385 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 386 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 3 | 387 | | public RaycastHit() { |
| | 388 | | OnConstruction(); |
| 3 | 389 | | } |
| | 390 | |
|
| | 391 | | partial void OnConstruction(); |
| | 392 | |
|
| | 393 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 394 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 0 | 395 | | public RaycastHit(RaycastHit other) : this() { |
| 0 | 396 | | _hasBits0 = other._hasBits0; |
| 0 | 397 | | position_ = other.position_ != null ? other.position_.Clone() : null; |
| 0 | 398 | | origin_ = other.origin_ != null ? other.origin_.Clone() : null; |
| 0 | 399 | | direction_ = other.direction_ != null ? other.direction_.Clone() : null; |
| 0 | 400 | | normalHit_ = other.normalHit_ != null ? other.normalHit_.Clone() : null; |
| 0 | 401 | | length_ = other.length_; |
| 0 | 402 | | meshName_ = other.meshName_; |
| 0 | 403 | | entityId_ = other.entityId_; |
| 0 | 404 | | _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
| 0 | 405 | | } |
| | 406 | |
|
| | 407 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 408 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 409 | | public RaycastHit Clone() { |
| 0 | 410 | | return new RaycastHit(this); |
| | 411 | | } |
| | 412 | |
|
| | 413 | | /// <summary>Field number for the "position" field.</summary> |
| | 414 | | public const int PositionFieldNumber = 1; |
| | 415 | | private global::DCL.ECSComponents.Vector3 position_; |
| | 416 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 417 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 418 | | public global::DCL.ECSComponents.Vector3 Position { |
| 9 | 419 | | get { return position_; } |
| | 420 | | set { |
| 3 | 421 | | position_ = value; |
| 3 | 422 | | } |
| | 423 | | } |
| | 424 | |
|
| | 425 | | /// <summary>Field number for the "origin" field.</summary> |
| | 426 | | public const int OriginFieldNumber = 2; |
| | 427 | | private global::DCL.ECSComponents.Vector3 origin_; |
| | 428 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 429 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 430 | | public global::DCL.ECSComponents.Vector3 Origin { |
| 0 | 431 | | get { return origin_; } |
| | 432 | | set { |
| 3 | 433 | | origin_ = value; |
| 3 | 434 | | } |
| | 435 | | } |
| | 436 | |
|
| | 437 | | /// <summary>Field number for the "direction" field.</summary> |
| | 438 | | public const int DirectionFieldNumber = 3; |
| | 439 | | private global::DCL.ECSComponents.Vector3 direction_; |
| | 440 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 441 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 442 | | public global::DCL.ECSComponents.Vector3 Direction { |
| 0 | 443 | | get { return direction_; } |
| | 444 | | set { |
| 0 | 445 | | direction_ = value; |
| 0 | 446 | | } |
| | 447 | | } |
| | 448 | |
|
| | 449 | | /// <summary>Field number for the "normal_hit" field.</summary> |
| | 450 | | public const int NormalHitFieldNumber = 4; |
| | 451 | | private global::DCL.ECSComponents.Vector3 normalHit_; |
| | 452 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 453 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 454 | | public global::DCL.ECSComponents.Vector3 NormalHit { |
| 9 | 455 | | get { return normalHit_; } |
| | 456 | | set { |
| 3 | 457 | | normalHit_ = value; |
| 3 | 458 | | } |
| | 459 | | } |
| | 460 | |
|
| | 461 | | /// <summary>Field number for the "length" field.</summary> |
| | 462 | | public const int LengthFieldNumber = 5; |
| | 463 | | private float length_; |
| | 464 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 465 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 466 | | public float Length { |
| 0 | 467 | | get { return length_; } |
| | 468 | | set { |
| 3 | 469 | | length_ = value; |
| 3 | 470 | | } |
| | 471 | | } |
| | 472 | |
|
| | 473 | | /// <summary>Field number for the "mesh_name" field.</summary> |
| | 474 | | public const int MeshNameFieldNumber = 6; |
| | 475 | | private string meshName_; |
| | 476 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 477 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 478 | | public string MeshName { |
| 0 | 479 | | get { return meshName_ ?? ""; } |
| | 480 | | set { |
| 3 | 481 | | meshName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
| 3 | 482 | | } |
| | 483 | | } |
| | 484 | | /// <summary>Gets whether the "mesh_name" field is set</summary> |
| | 485 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 486 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 487 | | public bool HasMeshName { |
| 0 | 488 | | get { return meshName_ != null; } |
| | 489 | | } |
| | 490 | | /// <summary>Clears the value of the "mesh_name" field</summary> |
| | 491 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 492 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 493 | | public void ClearMeshName() { |
| 0 | 494 | | meshName_ = null; |
| 0 | 495 | | } |
| | 496 | |
|
| | 497 | | /// <summary>Field number for the "entity_id" field.</summary> |
| | 498 | | public const int EntityIdFieldNumber = 7; |
| | 499 | | private long entityId_; |
| | 500 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 501 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 502 | | public long EntityId { |
| 12 | 503 | | get { if ((_hasBits0 & 1) != 0) { return entityId_; } else { return 0L; } } |
| | 504 | | set { |
| 20 | 505 | | _hasBits0 |= 1; |
| 20 | 506 | | entityId_ = value; |
| 20 | 507 | | } |
| | 508 | | } |
| | 509 | | /// <summary>Gets whether the "entity_id" field is set</summary> |
| | 510 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 511 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 512 | | public bool HasEntityId { |
| 0 | 513 | | get { return (_hasBits0 & 1) != 0; } |
| | 514 | | } |
| | 515 | | /// <summary>Clears the value of the "entity_id" field</summary> |
| | 516 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 517 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 518 | | public void ClearEntityId() { |
| 0 | 519 | | _hasBits0 &= ~1; |
| 0 | 520 | | } |
| | 521 | |
|
| | 522 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 523 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 524 | | public override bool Equals(object other) { |
| 0 | 525 | | return Equals(other as RaycastHit); |
| | 526 | | } |
| | 527 | |
|
| | 528 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 529 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 530 | | public bool Equals(RaycastHit other) { |
| 0 | 531 | | if (ReferenceEquals(other, null)) { |
| 0 | 532 | | return false; |
| | 533 | | } |
| 0 | 534 | | if (ReferenceEquals(other, this)) { |
| 0 | 535 | | return true; |
| | 536 | | } |
| 0 | 537 | | if (!object.Equals(Position, other.Position)) return false; |
| 0 | 538 | | if (!object.Equals(Origin, other.Origin)) return false; |
| 0 | 539 | | if (!object.Equals(Direction, other.Direction)) return false; |
| 0 | 540 | | if (!object.Equals(NormalHit, other.NormalHit)) return false; |
| 0 | 541 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Length, other.Length)) return false; |
| 0 | 542 | | if (MeshName != other.MeshName) return false; |
| 0 | 543 | | if (EntityId != other.EntityId) return false; |
| 0 | 544 | | return Equals(_unknownFields, other._unknownFields); |
| | 545 | | } |
| | 546 | |
|
| | 547 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 548 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 549 | | public override int GetHashCode() { |
| 0 | 550 | | int hash = 1; |
| 0 | 551 | | if (position_ != null) hash ^= Position.GetHashCode(); |
| 0 | 552 | | if (origin_ != null) hash ^= Origin.GetHashCode(); |
| 0 | 553 | | if (direction_ != null) hash ^= Direction.GetHashCode(); |
| 0 | 554 | | if (normalHit_ != null) hash ^= NormalHit.GetHashCode(); |
| 0 | 555 | | if (Length != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Length); |
| 0 | 556 | | if (HasMeshName) hash ^= MeshName.GetHashCode(); |
| 0 | 557 | | if (HasEntityId) hash ^= EntityId.GetHashCode(); |
| 0 | 558 | | if (_unknownFields != null) { |
| 0 | 559 | | hash ^= _unknownFields.GetHashCode(); |
| | 560 | | } |
| 0 | 561 | | return hash; |
| | 562 | | } |
| | 563 | |
|
| | 564 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 565 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 566 | | public override string ToString() { |
| 0 | 567 | | return pb::JsonFormatter.ToDiagnosticString(this); |
| | 568 | | } |
| | 569 | |
|
| | 570 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 571 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 572 | | public void WriteTo(pb::CodedOutputStream output) { |
| | 573 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 574 | | output.WriteRawMessage(this); |
| | 575 | | #else |
| 0 | 576 | | if (position_ != null) { |
| 0 | 577 | | output.WriteRawTag(10); |
| 0 | 578 | | output.WriteMessage(Position); |
| | 579 | | } |
| 0 | 580 | | if (origin_ != null) { |
| 0 | 581 | | output.WriteRawTag(18); |
| 0 | 582 | | output.WriteMessage(Origin); |
| | 583 | | } |
| 0 | 584 | | if (direction_ != null) { |
| 0 | 585 | | output.WriteRawTag(26); |
| 0 | 586 | | output.WriteMessage(Direction); |
| | 587 | | } |
| 0 | 588 | | if (normalHit_ != null) { |
| 0 | 589 | | output.WriteRawTag(34); |
| 0 | 590 | | output.WriteMessage(NormalHit); |
| | 591 | | } |
| 0 | 592 | | if (Length != 0F) { |
| 0 | 593 | | output.WriteRawTag(45); |
| 0 | 594 | | output.WriteFloat(Length); |
| | 595 | | } |
| 0 | 596 | | if (HasMeshName) { |
| 0 | 597 | | output.WriteRawTag(50); |
| 0 | 598 | | output.WriteString(MeshName); |
| | 599 | | } |
| 0 | 600 | | if (HasEntityId) { |
| 0 | 601 | | output.WriteRawTag(56); |
| 0 | 602 | | output.WriteInt64(EntityId); |
| | 603 | | } |
| 0 | 604 | | if (_unknownFields != null) { |
| 0 | 605 | | _unknownFields.WriteTo(output); |
| | 606 | | } |
| | 607 | | #endif |
| 0 | 608 | | } |
| | 609 | |
|
| | 610 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 611 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 612 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 613 | | void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { |
| | 614 | | if (position_ != null) { |
| | 615 | | output.WriteRawTag(10); |
| | 616 | | output.WriteMessage(Position); |
| | 617 | | } |
| | 618 | | if (origin_ != null) { |
| | 619 | | output.WriteRawTag(18); |
| | 620 | | output.WriteMessage(Origin); |
| | 621 | | } |
| | 622 | | if (direction_ != null) { |
| | 623 | | output.WriteRawTag(26); |
| | 624 | | output.WriteMessage(Direction); |
| | 625 | | } |
| | 626 | | if (normalHit_ != null) { |
| | 627 | | output.WriteRawTag(34); |
| | 628 | | output.WriteMessage(NormalHit); |
| | 629 | | } |
| | 630 | | if (Length != 0F) { |
| | 631 | | output.WriteRawTag(45); |
| | 632 | | output.WriteFloat(Length); |
| | 633 | | } |
| | 634 | | if (HasMeshName) { |
| | 635 | | output.WriteRawTag(50); |
| | 636 | | output.WriteString(MeshName); |
| | 637 | | } |
| | 638 | | if (HasEntityId) { |
| | 639 | | output.WriteRawTag(56); |
| | 640 | | output.WriteInt64(EntityId); |
| | 641 | | } |
| | 642 | | if (_unknownFields != null) { |
| | 643 | | _unknownFields.WriteTo(ref output); |
| | 644 | | } |
| | 645 | | } |
| | 646 | | #endif |
| | 647 | |
|
| | 648 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 649 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 650 | | public int CalculateSize() { |
| 0 | 651 | | int size = 0; |
| 0 | 652 | | if (position_ != null) { |
| 0 | 653 | | size += 1 + pb::CodedOutputStream.ComputeMessageSize(Position); |
| | 654 | | } |
| 0 | 655 | | if (origin_ != null) { |
| 0 | 656 | | size += 1 + pb::CodedOutputStream.ComputeMessageSize(Origin); |
| | 657 | | } |
| 0 | 658 | | if (direction_ != null) { |
| 0 | 659 | | size += 1 + pb::CodedOutputStream.ComputeMessageSize(Direction); |
| | 660 | | } |
| 0 | 661 | | if (normalHit_ != null) { |
| 0 | 662 | | size += 1 + pb::CodedOutputStream.ComputeMessageSize(NormalHit); |
| | 663 | | } |
| 0 | 664 | | if (Length != 0F) { |
| 0 | 665 | | size += 1 + 4; |
| | 666 | | } |
| 0 | 667 | | if (HasMeshName) { |
| 0 | 668 | | size += 1 + pb::CodedOutputStream.ComputeStringSize(MeshName); |
| | 669 | | } |
| 0 | 670 | | if (HasEntityId) { |
| 0 | 671 | | size += 1 + pb::CodedOutputStream.ComputeInt64Size(EntityId); |
| | 672 | | } |
| 0 | 673 | | if (_unknownFields != null) { |
| 0 | 674 | | size += _unknownFields.CalculateSize(); |
| | 675 | | } |
| 0 | 676 | | return size; |
| | 677 | | } |
| | 678 | |
|
| | 679 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 680 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 681 | | public void MergeFrom(RaycastHit other) { |
| 0 | 682 | | if (other == null) { |
| 0 | 683 | | return; |
| | 684 | | } |
| 0 | 685 | | if (other.position_ != null) { |
| 0 | 686 | | if (position_ == null) { |
| 0 | 687 | | Position = new global::DCL.ECSComponents.Vector3(); |
| | 688 | | } |
| 0 | 689 | | Position.MergeFrom(other.Position); |
| | 690 | | } |
| 0 | 691 | | if (other.origin_ != null) { |
| 0 | 692 | | if (origin_ == null) { |
| 0 | 693 | | Origin = new global::DCL.ECSComponents.Vector3(); |
| | 694 | | } |
| 0 | 695 | | Origin.MergeFrom(other.Origin); |
| | 696 | | } |
| 0 | 697 | | if (other.direction_ != null) { |
| 0 | 698 | | if (direction_ == null) { |
| 0 | 699 | | Direction = new global::DCL.ECSComponents.Vector3(); |
| | 700 | | } |
| 0 | 701 | | Direction.MergeFrom(other.Direction); |
| | 702 | | } |
| 0 | 703 | | if (other.normalHit_ != null) { |
| 0 | 704 | | if (normalHit_ == null) { |
| 0 | 705 | | NormalHit = new global::DCL.ECSComponents.Vector3(); |
| | 706 | | } |
| 0 | 707 | | NormalHit.MergeFrom(other.NormalHit); |
| | 708 | | } |
| 0 | 709 | | if (other.Length != 0F) { |
| 0 | 710 | | Length = other.Length; |
| | 711 | | } |
| 0 | 712 | | if (other.HasMeshName) { |
| 0 | 713 | | MeshName = other.MeshName; |
| | 714 | | } |
| 0 | 715 | | if (other.HasEntityId) { |
| 0 | 716 | | EntityId = other.EntityId; |
| | 717 | | } |
| 0 | 718 | | _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
| 0 | 719 | | } |
| | 720 | |
|
| | 721 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 722 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 723 | | public void MergeFrom(pb::CodedInputStream input) { |
| | 724 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 725 | | input.ReadRawMessage(this); |
| | 726 | | #else |
| | 727 | | uint tag; |
| 0 | 728 | | while ((tag = input.ReadTag()) != 0) { |
| | 729 | | switch(tag) { |
| | 730 | | default: |
| 0 | 731 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
| 0 | 732 | | break; |
| | 733 | | case 10: { |
| 0 | 734 | | if (position_ == null) { |
| 0 | 735 | | Position = new global::DCL.ECSComponents.Vector3(); |
| | 736 | | } |
| 0 | 737 | | input.ReadMessage(Position); |
| 0 | 738 | | break; |
| | 739 | | } |
| | 740 | | case 18: { |
| 0 | 741 | | if (origin_ == null) { |
| 0 | 742 | | Origin = new global::DCL.ECSComponents.Vector3(); |
| | 743 | | } |
| 0 | 744 | | input.ReadMessage(Origin); |
| 0 | 745 | | break; |
| | 746 | | } |
| | 747 | | case 26: { |
| 0 | 748 | | if (direction_ == null) { |
| 0 | 749 | | Direction = new global::DCL.ECSComponents.Vector3(); |
| | 750 | | } |
| 0 | 751 | | input.ReadMessage(Direction); |
| 0 | 752 | | break; |
| | 753 | | } |
| | 754 | | case 34: { |
| 0 | 755 | | if (normalHit_ == null) { |
| 0 | 756 | | NormalHit = new global::DCL.ECSComponents.Vector3(); |
| | 757 | | } |
| 0 | 758 | | input.ReadMessage(NormalHit); |
| 0 | 759 | | break; |
| | 760 | | } |
| | 761 | | case 45: { |
| 0 | 762 | | Length = input.ReadFloat(); |
| 0 | 763 | | break; |
| | 764 | | } |
| | 765 | | case 50: { |
| 0 | 766 | | MeshName = input.ReadString(); |
| 0 | 767 | | break; |
| | 768 | | } |
| | 769 | | case 56: { |
| 0 | 770 | | EntityId = input.ReadInt64(); |
| | 771 | | break; |
| | 772 | | } |
| | 773 | | } |
| | 774 | | } |
| | 775 | | #endif |
| 0 | 776 | | } |
| | 777 | |
|
| | 778 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 779 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 780 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 781 | | void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { |
| | 782 | | uint tag; |
| | 783 | | while ((tag = input.ReadTag()) != 0) { |
| | 784 | | switch(tag) { |
| | 785 | | default: |
| | 786 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); |
| | 787 | | break; |
| | 788 | | case 10: { |
| | 789 | | if (position_ == null) { |
| | 790 | | Position = new global::DCL.ECSComponents.Vector3(); |
| | 791 | | } |
| | 792 | | input.ReadMessage(Position); |
| | 793 | | break; |
| | 794 | | } |
| | 795 | | case 18: { |
| | 796 | | if (origin_ == null) { |
| | 797 | | Origin = new global::DCL.ECSComponents.Vector3(); |
| | 798 | | } |
| | 799 | | input.ReadMessage(Origin); |
| | 800 | | break; |
| | 801 | | } |
| | 802 | | case 26: { |
| | 803 | | if (direction_ == null) { |
| | 804 | | Direction = new global::DCL.ECSComponents.Vector3(); |
| | 805 | | } |
| | 806 | | input.ReadMessage(Direction); |
| | 807 | | break; |
| | 808 | | } |
| | 809 | | case 34: { |
| | 810 | | if (normalHit_ == null) { |
| | 811 | | NormalHit = new global::DCL.ECSComponents.Vector3(); |
| | 812 | | } |
| | 813 | | input.ReadMessage(NormalHit); |
| | 814 | | break; |
| | 815 | | } |
| | 816 | | case 45: { |
| | 817 | | Length = input.ReadFloat(); |
| | 818 | | break; |
| | 819 | | } |
| | 820 | | case 50: { |
| | 821 | | MeshName = input.ReadString(); |
| | 822 | | break; |
| | 823 | | } |
| | 824 | | case 56: { |
| | 825 | | EntityId = input.ReadInt64(); |
| | 826 | | break; |
| | 827 | | } |
| | 828 | | } |
| | 829 | | } |
| | 830 | | } |
| | 831 | | #endif |
| | 832 | |
|
| | 833 | | } |
| | 834 | |
|
| | 835 | | #endregion |
| | 836 | |
|
| | 837 | | } |
| | 838 | |
|
| | 839 | | #endregion Designer generated code |