| | 1 | | // <auto-generated> |
| | 2 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
| | 3 | | // source: ecs/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 ecs/components/Raycast.proto</summary> |
| | 15 | | public static partial class RaycastReflection { |
| | 16 | |
|
| | 17 | | #region Descriptor |
| | 18 | | /// <summary>File descriptor for ecs/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 | | "ChxlY3MvY29tcG9uZW50cy9SYXljYXN0LnByb3RvEhBkZWNlbnRyYWxhbmQu", |
| | 28 | | "ZWNzGiNlY3MvY29tcG9uZW50cy9jb21tb24vVmVjdG9yMy5wcm90byLFAQoJ", |
| | 29 | | "UEJSYXljYXN0EhEKCXRpbWVzdGFtcBgBIAEoBRIpCgZvcmlnaW4YAiABKAsy", |
| | 30 | | "GS5kZWNlbnRyYWxhbmQuZWNzLlZlY3RvcjMSLAoJZGlyZWN0aW9uGAMgASgL", |
| | 31 | | "MhkuZGVjZW50cmFsYW5kLmVjcy5WZWN0b3IzEhQKDG1heF9kaXN0YW5jZRgE", |
| | 32 | | "IAEoAhI2CgpxdWVyeV90eXBlGAUgASgOMiIuZGVjZW50cmFsYW5kLmVjcy5S", |
| | 33 | | "YXljYXN0UXVlcnlUeXBlKjAKEFJheWNhc3RRdWVyeVR5cGUSDQoJSElUX0ZJ", |
| | 34 | | "UlNUEAASDQoJUVVFUllfQUxMEAFCFKoCEURDTC5FQ1NDb21wb25lbnRzYgZw", |
| | 35 | | "cm90bzM=")); |
| | 36 | | descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, |
| | 37 | | new pbr::FileDescriptor[] { global::DCL.ECSComponents.Vector3Reflection.Descriptor, }, |
| | 38 | | new pbr::GeneratedClrTypeInfo(new[] {typeof(global::DCL.ECSComponents.RaycastQueryType), }, null, new pbr::Gen |
| | 39 | | new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBRaycast), global::DCL.ECSComponents.PBRayca |
| | 40 | | })); |
| | 41 | | } |
| | 42 | | #endregion |
| | 43 | |
|
| | 44 | | } |
| | 45 | | #region Enums |
| | 46 | | public enum RaycastQueryType { |
| | 47 | | [pbr::OriginalName("HIT_FIRST")] HitFirst = 0, |
| | 48 | | [pbr::OriginalName("QUERY_ALL")] QueryAll = 1, |
| | 49 | | } |
| | 50 | |
|
| | 51 | | #endregion |
| | 52 | |
|
| | 53 | | #region Messages |
| | 54 | | public sealed partial class PBRaycast : pb::IMessage<PBRaycast> |
| | 55 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 56 | | , pb::IBufferMessage |
| | 57 | | #endif |
| | 58 | | { |
| 1 | 59 | | private static readonly pb::MessageParser<PBRaycast> _parser = new pb::MessageParser<PBRaycast>(() => new PBRaycast( |
| | 60 | | private pb::UnknownFieldSet _unknownFields; |
| | 61 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 62 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 0 | 63 | | public static pb::MessageParser<PBRaycast> Parser { get { return _parser; } } |
| | 64 | |
|
| | 65 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 66 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 67 | | public static pbr::MessageDescriptor Descriptor { |
| 0 | 68 | | get { return global::DCL.ECSComponents.RaycastReflection.Descriptor.MessageTypes[0]; } |
| | 69 | | } |
| | 70 | |
|
| | 71 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 72 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 73 | | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 0 | 74 | | get { return Descriptor; } |
| | 75 | | } |
| | 76 | |
|
| | 77 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 78 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 1 | 79 | | public PBRaycast() { |
| | 80 | | OnConstruction(); |
| 1 | 81 | | } |
| | 82 | |
|
| | 83 | | partial void OnConstruction(); |
| | 84 | |
|
| | 85 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 86 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 0 | 87 | | public PBRaycast(PBRaycast other) : this() { |
| 0 | 88 | | timestamp_ = other.timestamp_; |
| 0 | 89 | | origin_ = other.origin_ != null ? other.origin_.Clone() : null; |
| 0 | 90 | | direction_ = other.direction_ != null ? other.direction_.Clone() : null; |
| 0 | 91 | | maxDistance_ = other.maxDistance_; |
| 0 | 92 | | queryType_ = other.queryType_; |
| 0 | 93 | | _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
| 0 | 94 | | } |
| | 95 | |
|
| | 96 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 97 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 98 | | public PBRaycast Clone() { |
| 0 | 99 | | return new PBRaycast(this); |
| | 100 | | } |
| | 101 | |
|
| | 102 | | /// <summary>Field number for the "timestamp" field.</summary> |
| | 103 | | public const int TimestampFieldNumber = 1; |
| | 104 | | private int timestamp_; |
| | 105 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 106 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 107 | | public int Timestamp { |
| 0 | 108 | | get { return timestamp_; } |
| | 109 | | set { |
| 1 | 110 | | timestamp_ = value; |
| 1 | 111 | | } |
| | 112 | | } |
| | 113 | |
|
| | 114 | | /// <summary>Field number for the "origin" field.</summary> |
| | 115 | | public const int OriginFieldNumber = 2; |
| | 116 | | private global::DCL.ECSComponents.Vector3 origin_; |
| | 117 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 118 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 119 | | public global::DCL.ECSComponents.Vector3 Origin { |
| 0 | 120 | | get { return origin_; } |
| | 121 | | set { |
| 1 | 122 | | origin_ = value; |
| 1 | 123 | | } |
| | 124 | | } |
| | 125 | |
|
| | 126 | | /// <summary>Field number for the "direction" field.</summary> |
| | 127 | | public const int DirectionFieldNumber = 3; |
| | 128 | | private global::DCL.ECSComponents.Vector3 direction_; |
| | 129 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 130 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 131 | | public global::DCL.ECSComponents.Vector3 Direction { |
| 0 | 132 | | get { return direction_; } |
| | 133 | | set { |
| 1 | 134 | | direction_ = value; |
| 1 | 135 | | } |
| | 136 | | } |
| | 137 | |
|
| | 138 | | /// <summary>Field number for the "max_distance" field.</summary> |
| | 139 | | public const int MaxDistanceFieldNumber = 4; |
| | 140 | | private float maxDistance_; |
| | 141 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 142 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 143 | | public float MaxDistance { |
| 0 | 144 | | get { return maxDistance_; } |
| | 145 | | set { |
| 1 | 146 | | maxDistance_ = value; |
| 1 | 147 | | } |
| | 148 | | } |
| | 149 | |
|
| | 150 | | /// <summary>Field number for the "query_type" field.</summary> |
| | 151 | | public const int QueryTypeFieldNumber = 5; |
| | 152 | | private global::DCL.ECSComponents.RaycastQueryType queryType_ = global::DCL.ECSComponents.RaycastQueryType.HitFirst; |
| | 153 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 154 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 155 | | public global::DCL.ECSComponents.RaycastQueryType QueryType { |
| 0 | 156 | | get { return queryType_; } |
| | 157 | | set { |
| 1 | 158 | | queryType_ = value; |
| 1 | 159 | | } |
| | 160 | | } |
| | 161 | |
|
| | 162 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 163 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 164 | | public override bool Equals(object other) { |
| 0 | 165 | | return Equals(other as PBRaycast); |
| | 166 | | } |
| | 167 | |
|
| | 168 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 169 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 170 | | public bool Equals(PBRaycast other) { |
| 0 | 171 | | if (ReferenceEquals(other, null)) { |
| 0 | 172 | | return false; |
| | 173 | | } |
| 0 | 174 | | if (ReferenceEquals(other, this)) { |
| 0 | 175 | | return true; |
| | 176 | | } |
| 0 | 177 | | if (Timestamp != other.Timestamp) return false; |
| 0 | 178 | | if (!object.Equals(Origin, other.Origin)) return false; |
| 0 | 179 | | if (!object.Equals(Direction, other.Direction)) return false; |
| 0 | 180 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(MaxDistance, other.MaxDistance)) return f |
| 0 | 181 | | if (QueryType != other.QueryType) return false; |
| 0 | 182 | | return Equals(_unknownFields, other._unknownFields); |
| | 183 | | } |
| | 184 | |
|
| | 185 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 186 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 187 | | public override int GetHashCode() { |
| 0 | 188 | | int hash = 1; |
| 0 | 189 | | if (Timestamp != 0) hash ^= Timestamp.GetHashCode(); |
| 0 | 190 | | if (origin_ != null) hash ^= Origin.GetHashCode(); |
| 0 | 191 | | if (direction_ != null) hash ^= Direction.GetHashCode(); |
| 0 | 192 | | if (MaxDistance != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(MaxDistanc |
| 0 | 193 | | if (QueryType != global::DCL.ECSComponents.RaycastQueryType.HitFirst) hash ^= QueryType.GetHashCode(); |
| 0 | 194 | | if (_unknownFields != null) { |
| 0 | 195 | | hash ^= _unknownFields.GetHashCode(); |
| | 196 | | } |
| 0 | 197 | | return hash; |
| | 198 | | } |
| | 199 | |
|
| | 200 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 201 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 202 | | public override string ToString() { |
| 0 | 203 | | return pb::JsonFormatter.ToDiagnosticString(this); |
| | 204 | | } |
| | 205 | |
|
| | 206 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 207 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 208 | | public void WriteTo(pb::CodedOutputStream output) { |
| | 209 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 210 | | output.WriteRawMessage(this); |
| | 211 | | #else |
| 0 | 212 | | if (Timestamp != 0) { |
| 0 | 213 | | output.WriteRawTag(8); |
| 0 | 214 | | output.WriteInt32(Timestamp); |
| | 215 | | } |
| 0 | 216 | | if (origin_ != null) { |
| 0 | 217 | | output.WriteRawTag(18); |
| 0 | 218 | | output.WriteMessage(Origin); |
| | 219 | | } |
| 0 | 220 | | if (direction_ != null) { |
| 0 | 221 | | output.WriteRawTag(26); |
| 0 | 222 | | output.WriteMessage(Direction); |
| | 223 | | } |
| 0 | 224 | | if (MaxDistance != 0F) { |
| 0 | 225 | | output.WriteRawTag(37); |
| 0 | 226 | | output.WriteFloat(MaxDistance); |
| | 227 | | } |
| 0 | 228 | | if (QueryType != global::DCL.ECSComponents.RaycastQueryType.HitFirst) { |
| 0 | 229 | | output.WriteRawTag(40); |
| 0 | 230 | | output.WriteEnum((int) QueryType); |
| | 231 | | } |
| 0 | 232 | | if (_unknownFields != null) { |
| 0 | 233 | | _unknownFields.WriteTo(output); |
| | 234 | | } |
| | 235 | | #endif |
| 0 | 236 | | } |
| | 237 | |
|
| | 238 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 239 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 240 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 241 | | void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { |
| | 242 | | if (Timestamp != 0) { |
| | 243 | | output.WriteRawTag(8); |
| | 244 | | output.WriteInt32(Timestamp); |
| | 245 | | } |
| | 246 | | if (origin_ != null) { |
| | 247 | | output.WriteRawTag(18); |
| | 248 | | output.WriteMessage(Origin); |
| | 249 | | } |
| | 250 | | if (direction_ != null) { |
| | 251 | | output.WriteRawTag(26); |
| | 252 | | output.WriteMessage(Direction); |
| | 253 | | } |
| | 254 | | if (MaxDistance != 0F) { |
| | 255 | | output.WriteRawTag(37); |
| | 256 | | output.WriteFloat(MaxDistance); |
| | 257 | | } |
| | 258 | | if (QueryType != global::DCL.ECSComponents.RaycastQueryType.HitFirst) { |
| | 259 | | output.WriteRawTag(40); |
| | 260 | | output.WriteEnum((int) QueryType); |
| | 261 | | } |
| | 262 | | if (_unknownFields != null) { |
| | 263 | | _unknownFields.WriteTo(ref output); |
| | 264 | | } |
| | 265 | | } |
| | 266 | | #endif |
| | 267 | |
|
| | 268 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 269 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 270 | | public int CalculateSize() { |
| 0 | 271 | | int size = 0; |
| 0 | 272 | | if (Timestamp != 0) { |
| 0 | 273 | | size += 1 + pb::CodedOutputStream.ComputeInt32Size(Timestamp); |
| | 274 | | } |
| 0 | 275 | | if (origin_ != null) { |
| 0 | 276 | | size += 1 + pb::CodedOutputStream.ComputeMessageSize(Origin); |
| | 277 | | } |
| 0 | 278 | | if (direction_ != null) { |
| 0 | 279 | | size += 1 + pb::CodedOutputStream.ComputeMessageSize(Direction); |
| | 280 | | } |
| 0 | 281 | | if (MaxDistance != 0F) { |
| 0 | 282 | | size += 1 + 4; |
| | 283 | | } |
| 0 | 284 | | if (QueryType != global::DCL.ECSComponents.RaycastQueryType.HitFirst) { |
| 0 | 285 | | size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) QueryType); |
| | 286 | | } |
| 0 | 287 | | if (_unknownFields != null) { |
| 0 | 288 | | size += _unknownFields.CalculateSize(); |
| | 289 | | } |
| 0 | 290 | | return size; |
| | 291 | | } |
| | 292 | |
|
| | 293 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 294 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 295 | | public void MergeFrom(PBRaycast other) { |
| 0 | 296 | | if (other == null) { |
| 0 | 297 | | return; |
| | 298 | | } |
| 0 | 299 | | if (other.Timestamp != 0) { |
| 0 | 300 | | Timestamp = other.Timestamp; |
| | 301 | | } |
| 0 | 302 | | if (other.origin_ != null) { |
| 0 | 303 | | if (origin_ == null) { |
| 0 | 304 | | Origin = new global::DCL.ECSComponents.Vector3(); |
| | 305 | | } |
| 0 | 306 | | Origin.MergeFrom(other.Origin); |
| | 307 | | } |
| 0 | 308 | | if (other.direction_ != null) { |
| 0 | 309 | | if (direction_ == null) { |
| 0 | 310 | | Direction = new global::DCL.ECSComponents.Vector3(); |
| | 311 | | } |
| 0 | 312 | | Direction.MergeFrom(other.Direction); |
| | 313 | | } |
| 0 | 314 | | if (other.MaxDistance != 0F) { |
| 0 | 315 | | MaxDistance = other.MaxDistance; |
| | 316 | | } |
| 0 | 317 | | if (other.QueryType != global::DCL.ECSComponents.RaycastQueryType.HitFirst) { |
| 0 | 318 | | QueryType = other.QueryType; |
| | 319 | | } |
| 0 | 320 | | _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
| 0 | 321 | | } |
| | 322 | |
|
| | 323 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 324 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 325 | | public void MergeFrom(pb::CodedInputStream input) { |
| | 326 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 327 | | input.ReadRawMessage(this); |
| | 328 | | #else |
| | 329 | | uint tag; |
| 0 | 330 | | while ((tag = input.ReadTag()) != 0) { |
| | 331 | | switch(tag) { |
| | 332 | | default: |
| 0 | 333 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
| 0 | 334 | | break; |
| | 335 | | case 8: { |
| 0 | 336 | | Timestamp = input.ReadInt32(); |
| 0 | 337 | | break; |
| | 338 | | } |
| | 339 | | case 18: { |
| 0 | 340 | | if (origin_ == null) { |
| 0 | 341 | | Origin = new global::DCL.ECSComponents.Vector3(); |
| | 342 | | } |
| 0 | 343 | | input.ReadMessage(Origin); |
| 0 | 344 | | break; |
| | 345 | | } |
| | 346 | | case 26: { |
| 0 | 347 | | if (direction_ == null) { |
| 0 | 348 | | Direction = new global::DCL.ECSComponents.Vector3(); |
| | 349 | | } |
| 0 | 350 | | input.ReadMessage(Direction); |
| 0 | 351 | | break; |
| | 352 | | } |
| | 353 | | case 37: { |
| 0 | 354 | | MaxDistance = input.ReadFloat(); |
| 0 | 355 | | break; |
| | 356 | | } |
| | 357 | | case 40: { |
| 0 | 358 | | QueryType = (global::DCL.ECSComponents.RaycastQueryType) input.ReadEnum(); |
| | 359 | | break; |
| | 360 | | } |
| | 361 | | } |
| | 362 | | } |
| | 363 | | #endif |
| 0 | 364 | | } |
| | 365 | |
|
| | 366 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 367 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 368 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 369 | | void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { |
| | 370 | | uint tag; |
| | 371 | | while ((tag = input.ReadTag()) != 0) { |
| | 372 | | switch(tag) { |
| | 373 | | default: |
| | 374 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); |
| | 375 | | break; |
| | 376 | | case 8: { |
| | 377 | | Timestamp = input.ReadInt32(); |
| | 378 | | break; |
| | 379 | | } |
| | 380 | | case 18: { |
| | 381 | | if (origin_ == null) { |
| | 382 | | Origin = new global::DCL.ECSComponents.Vector3(); |
| | 383 | | } |
| | 384 | | input.ReadMessage(Origin); |
| | 385 | | break; |
| | 386 | | } |
| | 387 | | case 26: { |
| | 388 | | if (direction_ == null) { |
| | 389 | | Direction = new global::DCL.ECSComponents.Vector3(); |
| | 390 | | } |
| | 391 | | input.ReadMessage(Direction); |
| | 392 | | break; |
| | 393 | | } |
| | 394 | | case 37: { |
| | 395 | | MaxDistance = input.ReadFloat(); |
| | 396 | | break; |
| | 397 | | } |
| | 398 | | case 40: { |
| | 399 | | QueryType = (global::DCL.ECSComponents.RaycastQueryType) input.ReadEnum(); |
| | 400 | | break; |
| | 401 | | } |
| | 402 | | } |
| | 403 | | } |
| | 404 | | } |
| | 405 | | #endif |
| | 406 | |
|
| | 407 | | } |
| | 408 | |
|
| | 409 | | #endregion |
| | 410 | |
|
| | 411 | | } |
| | 412 | |
|
| | 413 | | #endregion Designer generated code |