| | 1 | | // <auto-generated> |
| | 2 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
| | 3 | | // source: decentraland/common/vectors.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 Decentraland.Common { |
| | 13 | |
|
| | 14 | | /// <summary>Holder for reflection information generated from decentraland/common/vectors.proto</summary> |
| | 15 | | public static partial class VectorsReflection { |
| | 16 | |
|
| | 17 | | #region Descriptor |
| | 18 | | /// <summary>File descriptor for decentraland/common/vectors.proto</summary> |
| | 19 | | public static pbr::FileDescriptor Descriptor { |
| | 20 | | get { return descriptor; } |
| | 21 | | } |
| | 22 | | private static pbr::FileDescriptor descriptor; |
| | 23 | |
|
| | 24 | | static VectorsReflection() { |
| | 25 | | byte[] descriptorData = global::System.Convert.FromBase64String( |
| | 26 | | string.Concat( |
| | 27 | | "CiFkZWNlbnRyYWxhbmQvY29tbW9uL3ZlY3RvcnMucHJvdG8SE2RlY2VudHJh", |
| | 28 | | "bGFuZC5jb21tb24iKwoIUG9zaXRpb24SCQoBeBgBIAEoAhIJCgF5GAIgASgC", |
| | 29 | | "EgkKAXoYAyABKAIiKgoHVmVjdG9yMxIJCgF4GAEgASgCEgkKAXkYAiABKAIS", |
| | 30 | | "CQoBehgDIAEoAiIfCgdWZWN0b3IyEgkKAXgYASABKAISCQoBeRgCIAEoAiI4", |
| | 31 | | "CgpRdWF0ZXJuaW9uEgkKAXgYASABKAISCQoBeRgCIAEoAhIJCgF6GAMgASgC", |
| | 32 | | "EgkKAXcYBCABKAJiBnByb3RvMw==")); |
| | 33 | | descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, |
| | 34 | | new pbr::FileDescriptor[] { }, |
| | 35 | | new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { |
| | 36 | | new pbr::GeneratedClrTypeInfo(typeof(global::Decentraland.Common.Position), global::Decentraland.Common.Posi |
| | 37 | | new pbr::GeneratedClrTypeInfo(typeof(global::Decentraland.Common.Vector3), global::Decentraland.Common.Vecto |
| | 38 | | new pbr::GeneratedClrTypeInfo(typeof(global::Decentraland.Common.Vector2), global::Decentraland.Common.Vecto |
| | 39 | | new pbr::GeneratedClrTypeInfo(typeof(global::Decentraland.Common.Quaternion), global::Decentraland.Common.Qu |
| | 40 | | })); |
| | 41 | | } |
| | 42 | | #endregion |
| | 43 | |
|
| | 44 | | } |
| | 45 | | #region Messages |
| | 46 | | public sealed partial class Position : pb::IMessage<Position> |
| | 47 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 48 | | , pb::IBufferMessage |
| | 49 | | #endif |
| | 50 | | { |
| 1 | 51 | | private static readonly pb::MessageParser<Position> _parser = new pb::MessageParser<Position>(() => new Position()); |
| | 52 | | private pb::UnknownFieldSet _unknownFields; |
| | 53 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 54 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 1 | 55 | | public static pb::MessageParser<Position> Parser { get { return _parser; } } |
| | 56 | |
|
| | 57 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 58 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 59 | | public static pbr::MessageDescriptor Descriptor { |
| 0 | 60 | | get { return global::Decentraland.Common.VectorsReflection.Descriptor.MessageTypes[0]; } |
| | 61 | | } |
| | 62 | |
|
| | 63 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 64 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 65 | | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 0 | 66 | | get { return Descriptor; } |
| | 67 | | } |
| | 68 | |
|
| | 69 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 70 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 0 | 71 | | public Position() { |
| | 72 | | OnConstruction(); |
| 0 | 73 | | } |
| | 74 | |
|
| | 75 | | partial void OnConstruction(); |
| | 76 | |
|
| | 77 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 78 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 0 | 79 | | public Position(Position other) : this() { |
| 0 | 80 | | x_ = other.x_; |
| 0 | 81 | | y_ = other.y_; |
| 0 | 82 | | z_ = other.z_; |
| 0 | 83 | | _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
| 0 | 84 | | } |
| | 85 | |
|
| | 86 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 87 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 88 | | public Position Clone() { |
| 0 | 89 | | return new Position(this); |
| | 90 | | } |
| | 91 | |
|
| | 92 | | /// <summary>Field number for the "x" field.</summary> |
| | 93 | | public const int XFieldNumber = 1; |
| | 94 | | private float x_; |
| | 95 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 96 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 97 | | public float X { |
| 0 | 98 | | get { return x_; } |
| | 99 | | set { |
| 0 | 100 | | x_ = value; |
| 0 | 101 | | } |
| | 102 | | } |
| | 103 | |
|
| | 104 | | /// <summary>Field number for the "y" field.</summary> |
| | 105 | | public const int YFieldNumber = 2; |
| | 106 | | private float y_; |
| | 107 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 108 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 109 | | public float Y { |
| 0 | 110 | | get { return y_; } |
| | 111 | | set { |
| 0 | 112 | | y_ = value; |
| 0 | 113 | | } |
| | 114 | | } |
| | 115 | |
|
| | 116 | | /// <summary>Field number for the "z" field.</summary> |
| | 117 | | public const int ZFieldNumber = 3; |
| | 118 | | private float z_; |
| | 119 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 120 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 121 | | public float Z { |
| 0 | 122 | | get { return z_; } |
| | 123 | | set { |
| 0 | 124 | | z_ = value; |
| 0 | 125 | | } |
| | 126 | | } |
| | 127 | |
|
| | 128 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 129 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 130 | | public override bool Equals(object other) { |
| 0 | 131 | | return Equals(other as Position); |
| | 132 | | } |
| | 133 | |
|
| | 134 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 135 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 136 | | public bool Equals(Position other) { |
| 0 | 137 | | if (ReferenceEquals(other, null)) { |
| 0 | 138 | | return false; |
| | 139 | | } |
| 0 | 140 | | if (ReferenceEquals(other, this)) { |
| 0 | 141 | | return true; |
| | 142 | | } |
| 0 | 143 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X, other.X)) return false; |
| 0 | 144 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Y, other.Y)) return false; |
| 0 | 145 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Z, other.Z)) return false; |
| 0 | 146 | | return Equals(_unknownFields, other._unknownFields); |
| | 147 | | } |
| | 148 | |
|
| | 149 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 150 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 151 | | public override int GetHashCode() { |
| 0 | 152 | | int hash = 1; |
| 0 | 153 | | if (X != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X); |
| 0 | 154 | | if (Y != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Y); |
| 0 | 155 | | if (Z != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Z); |
| 0 | 156 | | if (_unknownFields != null) { |
| 0 | 157 | | hash ^= _unknownFields.GetHashCode(); |
| | 158 | | } |
| 0 | 159 | | return hash; |
| | 160 | | } |
| | 161 | |
|
| | 162 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 163 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 164 | | public override string ToString() { |
| 0 | 165 | | return pb::JsonFormatter.ToDiagnosticString(this); |
| | 166 | | } |
| | 167 | |
|
| | 168 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 169 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 170 | | public void WriteTo(pb::CodedOutputStream output) { |
| | 171 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 172 | | output.WriteRawMessage(this); |
| | 173 | | #else |
| 0 | 174 | | if (X != 0F) { |
| 0 | 175 | | output.WriteRawTag(13); |
| 0 | 176 | | output.WriteFloat(X); |
| | 177 | | } |
| 0 | 178 | | if (Y != 0F) { |
| 0 | 179 | | output.WriteRawTag(21); |
| 0 | 180 | | output.WriteFloat(Y); |
| | 181 | | } |
| 0 | 182 | | if (Z != 0F) { |
| 0 | 183 | | output.WriteRawTag(29); |
| 0 | 184 | | output.WriteFloat(Z); |
| | 185 | | } |
| 0 | 186 | | if (_unknownFields != null) { |
| 0 | 187 | | _unknownFields.WriteTo(output); |
| | 188 | | } |
| | 189 | | #endif |
| 0 | 190 | | } |
| | 191 | |
|
| | 192 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 193 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 194 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 195 | | void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { |
| | 196 | | if (X != 0F) { |
| | 197 | | output.WriteRawTag(13); |
| | 198 | | output.WriteFloat(X); |
| | 199 | | } |
| | 200 | | if (Y != 0F) { |
| | 201 | | output.WriteRawTag(21); |
| | 202 | | output.WriteFloat(Y); |
| | 203 | | } |
| | 204 | | if (Z != 0F) { |
| | 205 | | output.WriteRawTag(29); |
| | 206 | | output.WriteFloat(Z); |
| | 207 | | } |
| | 208 | | if (_unknownFields != null) { |
| | 209 | | _unknownFields.WriteTo(ref output); |
| | 210 | | } |
| | 211 | | } |
| | 212 | | #endif |
| | 213 | |
|
| | 214 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 215 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 216 | | public int CalculateSize() { |
| 0 | 217 | | int size = 0; |
| 0 | 218 | | if (X != 0F) { |
| 0 | 219 | | size += 1 + 4; |
| | 220 | | } |
| 0 | 221 | | if (Y != 0F) { |
| 0 | 222 | | size += 1 + 4; |
| | 223 | | } |
| 0 | 224 | | if (Z != 0F) { |
| 0 | 225 | | size += 1 + 4; |
| | 226 | | } |
| 0 | 227 | | if (_unknownFields != null) { |
| 0 | 228 | | size += _unknownFields.CalculateSize(); |
| | 229 | | } |
| 0 | 230 | | return size; |
| | 231 | | } |
| | 232 | |
|
| | 233 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 234 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 235 | | public void MergeFrom(Position other) { |
| 0 | 236 | | if (other == null) { |
| 0 | 237 | | return; |
| | 238 | | } |
| 0 | 239 | | if (other.X != 0F) { |
| 0 | 240 | | X = other.X; |
| | 241 | | } |
| 0 | 242 | | if (other.Y != 0F) { |
| 0 | 243 | | Y = other.Y; |
| | 244 | | } |
| 0 | 245 | | if (other.Z != 0F) { |
| 0 | 246 | | Z = other.Z; |
| | 247 | | } |
| 0 | 248 | | _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
| 0 | 249 | | } |
| | 250 | |
|
| | 251 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 252 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 253 | | public void MergeFrom(pb::CodedInputStream input) { |
| | 254 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 255 | | input.ReadRawMessage(this); |
| | 256 | | #else |
| | 257 | | uint tag; |
| 0 | 258 | | while ((tag = input.ReadTag()) != 0) { |
| | 259 | | switch(tag) { |
| | 260 | | default: |
| 0 | 261 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
| 0 | 262 | | break; |
| | 263 | | case 13: { |
| 0 | 264 | | X = input.ReadFloat(); |
| 0 | 265 | | break; |
| | 266 | | } |
| | 267 | | case 21: { |
| 0 | 268 | | Y = input.ReadFloat(); |
| 0 | 269 | | break; |
| | 270 | | } |
| | 271 | | case 29: { |
| 0 | 272 | | Z = input.ReadFloat(); |
| | 273 | | break; |
| | 274 | | } |
| | 275 | | } |
| | 276 | | } |
| | 277 | | #endif |
| 0 | 278 | | } |
| | 279 | |
|
| | 280 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 281 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 282 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 283 | | void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { |
| | 284 | | uint tag; |
| | 285 | | while ((tag = input.ReadTag()) != 0) { |
| | 286 | | switch(tag) { |
| | 287 | | default: |
| | 288 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); |
| | 289 | | break; |
| | 290 | | case 13: { |
| | 291 | | X = input.ReadFloat(); |
| | 292 | | break; |
| | 293 | | } |
| | 294 | | case 21: { |
| | 295 | | Y = input.ReadFloat(); |
| | 296 | | break; |
| | 297 | | } |
| | 298 | | case 29: { |
| | 299 | | Z = input.ReadFloat(); |
| | 300 | | break; |
| | 301 | | } |
| | 302 | | } |
| | 303 | | } |
| | 304 | | } |
| | 305 | | #endif |
| | 306 | |
|
| | 307 | | } |
| | 308 | |
|
| | 309 | | public sealed partial class Vector3 : pb::IMessage<Vector3> |
| | 310 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 311 | | , pb::IBufferMessage |
| | 312 | | #endif |
| | 313 | | { |
| | 314 | | private static readonly pb::MessageParser<Vector3> _parser = new pb::MessageParser<Vector3>(() => new Vector3()); |
| | 315 | | private pb::UnknownFieldSet _unknownFields; |
| | 316 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 317 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 318 | | public static pb::MessageParser<Vector3> Parser { get { return _parser; } } |
| | 319 | |
|
| | 320 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 321 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 322 | | public static pbr::MessageDescriptor Descriptor { |
| | 323 | | get { return global::Decentraland.Common.VectorsReflection.Descriptor.MessageTypes[1]; } |
| | 324 | | } |
| | 325 | |
|
| | 326 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 327 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 328 | | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| | 329 | | get { return Descriptor; } |
| | 330 | | } |
| | 331 | |
|
| | 332 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 333 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 334 | | public Vector3() { |
| | 335 | | OnConstruction(); |
| | 336 | | } |
| | 337 | |
|
| | 338 | | partial void OnConstruction(); |
| | 339 | |
|
| | 340 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 341 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 342 | | public Vector3(Vector3 other) : this() { |
| | 343 | | x_ = other.x_; |
| | 344 | | y_ = other.y_; |
| | 345 | | z_ = other.z_; |
| | 346 | | _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
| | 347 | | } |
| | 348 | |
|
| | 349 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 350 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 351 | | public Vector3 Clone() { |
| | 352 | | return new Vector3(this); |
| | 353 | | } |
| | 354 | |
|
| | 355 | | /// <summary>Field number for the "x" field.</summary> |
| | 356 | | public const int XFieldNumber = 1; |
| | 357 | | private float x_; |
| | 358 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 359 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 360 | | public float X { |
| | 361 | | get { return x_; } |
| | 362 | | set { |
| | 363 | | x_ = value; |
| | 364 | | } |
| | 365 | | } |
| | 366 | |
|
| | 367 | | /// <summary>Field number for the "y" field.</summary> |
| | 368 | | public const int YFieldNumber = 2; |
| | 369 | | private float y_; |
| | 370 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 371 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 372 | | public float Y { |
| | 373 | | get { return y_; } |
| | 374 | | set { |
| | 375 | | y_ = value; |
| | 376 | | } |
| | 377 | | } |
| | 378 | |
|
| | 379 | | /// <summary>Field number for the "z" field.</summary> |
| | 380 | | public const int ZFieldNumber = 3; |
| | 381 | | private float z_; |
| | 382 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 383 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 384 | | public float Z { |
| | 385 | | get { return z_; } |
| | 386 | | set { |
| | 387 | | z_ = value; |
| | 388 | | } |
| | 389 | | } |
| | 390 | |
|
| | 391 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 392 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 393 | | public override bool Equals(object other) { |
| | 394 | | return Equals(other as Vector3); |
| | 395 | | } |
| | 396 | |
|
| | 397 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 398 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 399 | | public bool Equals(Vector3 other) { |
| | 400 | | if (ReferenceEquals(other, null)) { |
| | 401 | | return false; |
| | 402 | | } |
| | 403 | | if (ReferenceEquals(other, this)) { |
| | 404 | | return true; |
| | 405 | | } |
| | 406 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X, other.X)) return false; |
| | 407 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Y, other.Y)) return false; |
| | 408 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Z, other.Z)) return false; |
| | 409 | | return Equals(_unknownFields, other._unknownFields); |
| | 410 | | } |
| | 411 | |
|
| | 412 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 413 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 414 | | public override int GetHashCode() { |
| | 415 | | int hash = 1; |
| | 416 | | if (X != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X); |
| | 417 | | if (Y != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Y); |
| | 418 | | if (Z != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Z); |
| | 419 | | if (_unknownFields != null) { |
| | 420 | | hash ^= _unknownFields.GetHashCode(); |
| | 421 | | } |
| | 422 | | return hash; |
| | 423 | | } |
| | 424 | |
|
| | 425 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 426 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 427 | | public override string ToString() { |
| | 428 | | return pb::JsonFormatter.ToDiagnosticString(this); |
| | 429 | | } |
| | 430 | |
|
| | 431 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 432 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 433 | | public void WriteTo(pb::CodedOutputStream output) { |
| | 434 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 435 | | output.WriteRawMessage(this); |
| | 436 | | #else |
| | 437 | | if (X != 0F) { |
| | 438 | | output.WriteRawTag(13); |
| | 439 | | output.WriteFloat(X); |
| | 440 | | } |
| | 441 | | if (Y != 0F) { |
| | 442 | | output.WriteRawTag(21); |
| | 443 | | output.WriteFloat(Y); |
| | 444 | | } |
| | 445 | | if (Z != 0F) { |
| | 446 | | output.WriteRawTag(29); |
| | 447 | | output.WriteFloat(Z); |
| | 448 | | } |
| | 449 | | if (_unknownFields != null) { |
| | 450 | | _unknownFields.WriteTo(output); |
| | 451 | | } |
| | 452 | | #endif |
| | 453 | | } |
| | 454 | |
|
| | 455 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 456 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 457 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 458 | | void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { |
| | 459 | | if (X != 0F) { |
| | 460 | | output.WriteRawTag(13); |
| | 461 | | output.WriteFloat(X); |
| | 462 | | } |
| | 463 | | if (Y != 0F) { |
| | 464 | | output.WriteRawTag(21); |
| | 465 | | output.WriteFloat(Y); |
| | 466 | | } |
| | 467 | | if (Z != 0F) { |
| | 468 | | output.WriteRawTag(29); |
| | 469 | | output.WriteFloat(Z); |
| | 470 | | } |
| | 471 | | if (_unknownFields != null) { |
| | 472 | | _unknownFields.WriteTo(ref output); |
| | 473 | | } |
| | 474 | | } |
| | 475 | | #endif |
| | 476 | |
|
| | 477 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 478 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 479 | | public int CalculateSize() { |
| | 480 | | int size = 0; |
| | 481 | | if (X != 0F) { |
| | 482 | | size += 1 + 4; |
| | 483 | | } |
| | 484 | | if (Y != 0F) { |
| | 485 | | size += 1 + 4; |
| | 486 | | } |
| | 487 | | if (Z != 0F) { |
| | 488 | | size += 1 + 4; |
| | 489 | | } |
| | 490 | | if (_unknownFields != null) { |
| | 491 | | size += _unknownFields.CalculateSize(); |
| | 492 | | } |
| | 493 | | return size; |
| | 494 | | } |
| | 495 | |
|
| | 496 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 497 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 498 | | public void MergeFrom(Vector3 other) { |
| | 499 | | if (other == null) { |
| | 500 | | return; |
| | 501 | | } |
| | 502 | | if (other.X != 0F) { |
| | 503 | | X = other.X; |
| | 504 | | } |
| | 505 | | if (other.Y != 0F) { |
| | 506 | | Y = other.Y; |
| | 507 | | } |
| | 508 | | if (other.Z != 0F) { |
| | 509 | | Z = other.Z; |
| | 510 | | } |
| | 511 | | _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
| | 512 | | } |
| | 513 | |
|
| | 514 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 515 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 516 | | public void MergeFrom(pb::CodedInputStream input) { |
| | 517 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 518 | | input.ReadRawMessage(this); |
| | 519 | | #else |
| | 520 | | uint tag; |
| | 521 | | while ((tag = input.ReadTag()) != 0) { |
| | 522 | | switch(tag) { |
| | 523 | | default: |
| | 524 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
| | 525 | | break; |
| | 526 | | case 13: { |
| | 527 | | X = input.ReadFloat(); |
| | 528 | | break; |
| | 529 | | } |
| | 530 | | case 21: { |
| | 531 | | Y = input.ReadFloat(); |
| | 532 | | break; |
| | 533 | | } |
| | 534 | | case 29: { |
| | 535 | | Z = input.ReadFloat(); |
| | 536 | | break; |
| | 537 | | } |
| | 538 | | } |
| | 539 | | } |
| | 540 | | #endif |
| | 541 | | } |
| | 542 | |
|
| | 543 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 544 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 545 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 546 | | void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { |
| | 547 | | uint tag; |
| | 548 | | while ((tag = input.ReadTag()) != 0) { |
| | 549 | | switch(tag) { |
| | 550 | | default: |
| | 551 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); |
| | 552 | | break; |
| | 553 | | case 13: { |
| | 554 | | X = input.ReadFloat(); |
| | 555 | | break; |
| | 556 | | } |
| | 557 | | case 21: { |
| | 558 | | Y = input.ReadFloat(); |
| | 559 | | break; |
| | 560 | | } |
| | 561 | | case 29: { |
| | 562 | | Z = input.ReadFloat(); |
| | 563 | | break; |
| | 564 | | } |
| | 565 | | } |
| | 566 | | } |
| | 567 | | } |
| | 568 | | #endif |
| | 569 | |
|
| | 570 | | } |
| | 571 | |
|
| | 572 | | public sealed partial class Vector2 : pb::IMessage<Vector2> |
| | 573 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 574 | | , pb::IBufferMessage |
| | 575 | | #endif |
| | 576 | | { |
| | 577 | | private static readonly pb::MessageParser<Vector2> _parser = new pb::MessageParser<Vector2>(() => new Vector2()); |
| | 578 | | private pb::UnknownFieldSet _unknownFields; |
| | 579 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 580 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 581 | | public static pb::MessageParser<Vector2> Parser { get { return _parser; } } |
| | 582 | |
|
| | 583 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 584 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 585 | | public static pbr::MessageDescriptor Descriptor { |
| | 586 | | get { return global::Decentraland.Common.VectorsReflection.Descriptor.MessageTypes[2]; } |
| | 587 | | } |
| | 588 | |
|
| | 589 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 590 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 591 | | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| | 592 | | get { return Descriptor; } |
| | 593 | | } |
| | 594 | |
|
| | 595 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 596 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 597 | | public Vector2() { |
| | 598 | | OnConstruction(); |
| | 599 | | } |
| | 600 | |
|
| | 601 | | partial void OnConstruction(); |
| | 602 | |
|
| | 603 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 604 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 605 | | public Vector2(Vector2 other) : this() { |
| | 606 | | x_ = other.x_; |
| | 607 | | y_ = other.y_; |
| | 608 | | _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
| | 609 | | } |
| | 610 | |
|
| | 611 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 612 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 613 | | public Vector2 Clone() { |
| | 614 | | return new Vector2(this); |
| | 615 | | } |
| | 616 | |
|
| | 617 | | /// <summary>Field number for the "x" field.</summary> |
| | 618 | | public const int XFieldNumber = 1; |
| | 619 | | private float x_; |
| | 620 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 621 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 622 | | public float X { |
| | 623 | | get { return x_; } |
| | 624 | | set { |
| | 625 | | x_ = value; |
| | 626 | | } |
| | 627 | | } |
| | 628 | |
|
| | 629 | | /// <summary>Field number for the "y" field.</summary> |
| | 630 | | public const int YFieldNumber = 2; |
| | 631 | | private float y_; |
| | 632 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 633 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 634 | | public float Y { |
| | 635 | | get { return y_; } |
| | 636 | | set { |
| | 637 | | y_ = value; |
| | 638 | | } |
| | 639 | | } |
| | 640 | |
|
| | 641 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 642 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 643 | | public override bool Equals(object other) { |
| | 644 | | return Equals(other as Vector2); |
| | 645 | | } |
| | 646 | |
|
| | 647 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 648 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 649 | | public bool Equals(Vector2 other) { |
| | 650 | | if (ReferenceEquals(other, null)) { |
| | 651 | | return false; |
| | 652 | | } |
| | 653 | | if (ReferenceEquals(other, this)) { |
| | 654 | | return true; |
| | 655 | | } |
| | 656 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X, other.X)) return false; |
| | 657 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Y, other.Y)) return false; |
| | 658 | | return Equals(_unknownFields, other._unknownFields); |
| | 659 | | } |
| | 660 | |
|
| | 661 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 662 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 663 | | public override int GetHashCode() { |
| | 664 | | int hash = 1; |
| | 665 | | if (X != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X); |
| | 666 | | if (Y != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Y); |
| | 667 | | if (_unknownFields != null) { |
| | 668 | | hash ^= _unknownFields.GetHashCode(); |
| | 669 | | } |
| | 670 | | return hash; |
| | 671 | | } |
| | 672 | |
|
| | 673 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 674 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 675 | | public override string ToString() { |
| | 676 | | return pb::JsonFormatter.ToDiagnosticString(this); |
| | 677 | | } |
| | 678 | |
|
| | 679 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 680 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 681 | | public void WriteTo(pb::CodedOutputStream output) { |
| | 682 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 683 | | output.WriteRawMessage(this); |
| | 684 | | #else |
| | 685 | | if (X != 0F) { |
| | 686 | | output.WriteRawTag(13); |
| | 687 | | output.WriteFloat(X); |
| | 688 | | } |
| | 689 | | if (Y != 0F) { |
| | 690 | | output.WriteRawTag(21); |
| | 691 | | output.WriteFloat(Y); |
| | 692 | | } |
| | 693 | | if (_unknownFields != null) { |
| | 694 | | _unknownFields.WriteTo(output); |
| | 695 | | } |
| | 696 | | #endif |
| | 697 | | } |
| | 698 | |
|
| | 699 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 700 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 701 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 702 | | void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { |
| | 703 | | if (X != 0F) { |
| | 704 | | output.WriteRawTag(13); |
| | 705 | | output.WriteFloat(X); |
| | 706 | | } |
| | 707 | | if (Y != 0F) { |
| | 708 | | output.WriteRawTag(21); |
| | 709 | | output.WriteFloat(Y); |
| | 710 | | } |
| | 711 | | if (_unknownFields != null) { |
| | 712 | | _unknownFields.WriteTo(ref output); |
| | 713 | | } |
| | 714 | | } |
| | 715 | | #endif |
| | 716 | |
|
| | 717 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 718 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 719 | | public int CalculateSize() { |
| | 720 | | int size = 0; |
| | 721 | | if (X != 0F) { |
| | 722 | | size += 1 + 4; |
| | 723 | | } |
| | 724 | | if (Y != 0F) { |
| | 725 | | size += 1 + 4; |
| | 726 | | } |
| | 727 | | if (_unknownFields != null) { |
| | 728 | | size += _unknownFields.CalculateSize(); |
| | 729 | | } |
| | 730 | | return size; |
| | 731 | | } |
| | 732 | |
|
| | 733 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 734 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 735 | | public void MergeFrom(Vector2 other) { |
| | 736 | | if (other == null) { |
| | 737 | | return; |
| | 738 | | } |
| | 739 | | if (other.X != 0F) { |
| | 740 | | X = other.X; |
| | 741 | | } |
| | 742 | | if (other.Y != 0F) { |
| | 743 | | Y = other.Y; |
| | 744 | | } |
| | 745 | | _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
| | 746 | | } |
| | 747 | |
|
| | 748 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 749 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 750 | | public void MergeFrom(pb::CodedInputStream input) { |
| | 751 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 752 | | input.ReadRawMessage(this); |
| | 753 | | #else |
| | 754 | | uint tag; |
| | 755 | | while ((tag = input.ReadTag()) != 0) { |
| | 756 | | switch(tag) { |
| | 757 | | default: |
| | 758 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
| | 759 | | break; |
| | 760 | | case 13: { |
| | 761 | | X = input.ReadFloat(); |
| | 762 | | break; |
| | 763 | | } |
| | 764 | | case 21: { |
| | 765 | | Y = input.ReadFloat(); |
| | 766 | | break; |
| | 767 | | } |
| | 768 | | } |
| | 769 | | } |
| | 770 | | #endif |
| | 771 | | } |
| | 772 | |
|
| | 773 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 774 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 775 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 776 | | void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { |
| | 777 | | uint tag; |
| | 778 | | while ((tag = input.ReadTag()) != 0) { |
| | 779 | | switch(tag) { |
| | 780 | | default: |
| | 781 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); |
| | 782 | | break; |
| | 783 | | case 13: { |
| | 784 | | X = input.ReadFloat(); |
| | 785 | | break; |
| | 786 | | } |
| | 787 | | case 21: { |
| | 788 | | Y = input.ReadFloat(); |
| | 789 | | break; |
| | 790 | | } |
| | 791 | | } |
| | 792 | | } |
| | 793 | | } |
| | 794 | | #endif |
| | 795 | |
|
| | 796 | | } |
| | 797 | |
|
| | 798 | | public sealed partial class Quaternion : pb::IMessage<Quaternion> |
| | 799 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 800 | | , pb::IBufferMessage |
| | 801 | | #endif |
| | 802 | | { |
| | 803 | | private static readonly pb::MessageParser<Quaternion> _parser = new pb::MessageParser<Quaternion>(() => new Quaterni |
| | 804 | | private pb::UnknownFieldSet _unknownFields; |
| | 805 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 806 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 807 | | public static pb::MessageParser<Quaternion> Parser { get { return _parser; } } |
| | 808 | |
|
| | 809 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 810 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 811 | | public static pbr::MessageDescriptor Descriptor { |
| | 812 | | get { return global::Decentraland.Common.VectorsReflection.Descriptor.MessageTypes[3]; } |
| | 813 | | } |
| | 814 | |
|
| | 815 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 816 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 817 | | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| | 818 | | get { return Descriptor; } |
| | 819 | | } |
| | 820 | |
|
| | 821 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 822 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 823 | | public Quaternion() { |
| | 824 | | OnConstruction(); |
| | 825 | | } |
| | 826 | |
|
| | 827 | | partial void OnConstruction(); |
| | 828 | |
|
| | 829 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 830 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 831 | | public Quaternion(Quaternion other) : this() { |
| | 832 | | x_ = other.x_; |
| | 833 | | y_ = other.y_; |
| | 834 | | z_ = other.z_; |
| | 835 | | w_ = other.w_; |
| | 836 | | _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
| | 837 | | } |
| | 838 | |
|
| | 839 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 840 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 841 | | public Quaternion Clone() { |
| | 842 | | return new Quaternion(this); |
| | 843 | | } |
| | 844 | |
|
| | 845 | | /// <summary>Field number for the "x" field.</summary> |
| | 846 | | public const int XFieldNumber = 1; |
| | 847 | | private float x_; |
| | 848 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 849 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 850 | | public float X { |
| | 851 | | get { return x_; } |
| | 852 | | set { |
| | 853 | | x_ = value; |
| | 854 | | } |
| | 855 | | } |
| | 856 | |
|
| | 857 | | /// <summary>Field number for the "y" field.</summary> |
| | 858 | | public const int YFieldNumber = 2; |
| | 859 | | private float y_; |
| | 860 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 861 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 862 | | public float Y { |
| | 863 | | get { return y_; } |
| | 864 | | set { |
| | 865 | | y_ = value; |
| | 866 | | } |
| | 867 | | } |
| | 868 | |
|
| | 869 | | /// <summary>Field number for the "z" field.</summary> |
| | 870 | | public const int ZFieldNumber = 3; |
| | 871 | | private float z_; |
| | 872 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 873 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 874 | | public float Z { |
| | 875 | | get { return z_; } |
| | 876 | | set { |
| | 877 | | z_ = value; |
| | 878 | | } |
| | 879 | | } |
| | 880 | |
|
| | 881 | | /// <summary>Field number for the "w" field.</summary> |
| | 882 | | public const int WFieldNumber = 4; |
| | 883 | | private float w_; |
| | 884 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 885 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 886 | | public float W { |
| | 887 | | get { return w_; } |
| | 888 | | set { |
| | 889 | | w_ = value; |
| | 890 | | } |
| | 891 | | } |
| | 892 | |
|
| | 893 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 894 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 895 | | public override bool Equals(object other) { |
| | 896 | | return Equals(other as Quaternion); |
| | 897 | | } |
| | 898 | |
|
| | 899 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 900 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 901 | | public bool Equals(Quaternion other) { |
| | 902 | | if (ReferenceEquals(other, null)) { |
| | 903 | | return false; |
| | 904 | | } |
| | 905 | | if (ReferenceEquals(other, this)) { |
| | 906 | | return true; |
| | 907 | | } |
| | 908 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X, other.X)) return false; |
| | 909 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Y, other.Y)) return false; |
| | 910 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Z, other.Z)) return false; |
| | 911 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(W, other.W)) return false; |
| | 912 | | return Equals(_unknownFields, other._unknownFields); |
| | 913 | | } |
| | 914 | |
|
| | 915 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 916 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 917 | | public override int GetHashCode() { |
| | 918 | | int hash = 1; |
| | 919 | | if (X != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X); |
| | 920 | | if (Y != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Y); |
| | 921 | | if (Z != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Z); |
| | 922 | | if (W != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(W); |
| | 923 | | if (_unknownFields != null) { |
| | 924 | | hash ^= _unknownFields.GetHashCode(); |
| | 925 | | } |
| | 926 | | return hash; |
| | 927 | | } |
| | 928 | |
|
| | 929 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 930 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 931 | | public override string ToString() { |
| | 932 | | return pb::JsonFormatter.ToDiagnosticString(this); |
| | 933 | | } |
| | 934 | |
|
| | 935 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 936 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 937 | | public void WriteTo(pb::CodedOutputStream output) { |
| | 938 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 939 | | output.WriteRawMessage(this); |
| | 940 | | #else |
| | 941 | | if (X != 0F) { |
| | 942 | | output.WriteRawTag(13); |
| | 943 | | output.WriteFloat(X); |
| | 944 | | } |
| | 945 | | if (Y != 0F) { |
| | 946 | | output.WriteRawTag(21); |
| | 947 | | output.WriteFloat(Y); |
| | 948 | | } |
| | 949 | | if (Z != 0F) { |
| | 950 | | output.WriteRawTag(29); |
| | 951 | | output.WriteFloat(Z); |
| | 952 | | } |
| | 953 | | if (W != 0F) { |
| | 954 | | output.WriteRawTag(37); |
| | 955 | | output.WriteFloat(W); |
| | 956 | | } |
| | 957 | | if (_unknownFields != null) { |
| | 958 | | _unknownFields.WriteTo(output); |
| | 959 | | } |
| | 960 | | #endif |
| | 961 | | } |
| | 962 | |
|
| | 963 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 964 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 965 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 966 | | void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { |
| | 967 | | if (X != 0F) { |
| | 968 | | output.WriteRawTag(13); |
| | 969 | | output.WriteFloat(X); |
| | 970 | | } |
| | 971 | | if (Y != 0F) { |
| | 972 | | output.WriteRawTag(21); |
| | 973 | | output.WriteFloat(Y); |
| | 974 | | } |
| | 975 | | if (Z != 0F) { |
| | 976 | | output.WriteRawTag(29); |
| | 977 | | output.WriteFloat(Z); |
| | 978 | | } |
| | 979 | | if (W != 0F) { |
| | 980 | | output.WriteRawTag(37); |
| | 981 | | output.WriteFloat(W); |
| | 982 | | } |
| | 983 | | if (_unknownFields != null) { |
| | 984 | | _unknownFields.WriteTo(ref output); |
| | 985 | | } |
| | 986 | | } |
| | 987 | | #endif |
| | 988 | |
|
| | 989 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 990 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 991 | | public int CalculateSize() { |
| | 992 | | int size = 0; |
| | 993 | | if (X != 0F) { |
| | 994 | | size += 1 + 4; |
| | 995 | | } |
| | 996 | | if (Y != 0F) { |
| | 997 | | size += 1 + 4; |
| | 998 | | } |
| | 999 | | if (Z != 0F) { |
| | 1000 | | size += 1 + 4; |
| | 1001 | | } |
| | 1002 | | if (W != 0F) { |
| | 1003 | | size += 1 + 4; |
| | 1004 | | } |
| | 1005 | | if (_unknownFields != null) { |
| | 1006 | | size += _unknownFields.CalculateSize(); |
| | 1007 | | } |
| | 1008 | | return size; |
| | 1009 | | } |
| | 1010 | |
|
| | 1011 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1012 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1013 | | public void MergeFrom(Quaternion other) { |
| | 1014 | | if (other == null) { |
| | 1015 | | return; |
| | 1016 | | } |
| | 1017 | | if (other.X != 0F) { |
| | 1018 | | X = other.X; |
| | 1019 | | } |
| | 1020 | | if (other.Y != 0F) { |
| | 1021 | | Y = other.Y; |
| | 1022 | | } |
| | 1023 | | if (other.Z != 0F) { |
| | 1024 | | Z = other.Z; |
| | 1025 | | } |
| | 1026 | | if (other.W != 0F) { |
| | 1027 | | W = other.W; |
| | 1028 | | } |
| | 1029 | | _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
| | 1030 | | } |
| | 1031 | |
|
| | 1032 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1033 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1034 | | public void MergeFrom(pb::CodedInputStream input) { |
| | 1035 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 1036 | | input.ReadRawMessage(this); |
| | 1037 | | #else |
| | 1038 | | uint tag; |
| | 1039 | | while ((tag = input.ReadTag()) != 0) { |
| | 1040 | | switch(tag) { |
| | 1041 | | default: |
| | 1042 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
| | 1043 | | break; |
| | 1044 | | case 13: { |
| | 1045 | | X = input.ReadFloat(); |
| | 1046 | | break; |
| | 1047 | | } |
| | 1048 | | case 21: { |
| | 1049 | | Y = input.ReadFloat(); |
| | 1050 | | break; |
| | 1051 | | } |
| | 1052 | | case 29: { |
| | 1053 | | Z = input.ReadFloat(); |
| | 1054 | | break; |
| | 1055 | | } |
| | 1056 | | case 37: { |
| | 1057 | | W = input.ReadFloat(); |
| | 1058 | | break; |
| | 1059 | | } |
| | 1060 | | } |
| | 1061 | | } |
| | 1062 | | #endif |
| | 1063 | | } |
| | 1064 | |
|
| | 1065 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 1066 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1067 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1068 | | void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { |
| | 1069 | | uint tag; |
| | 1070 | | while ((tag = input.ReadTag()) != 0) { |
| | 1071 | | switch(tag) { |
| | 1072 | | default: |
| | 1073 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); |
| | 1074 | | break; |
| | 1075 | | case 13: { |
| | 1076 | | X = input.ReadFloat(); |
| | 1077 | | break; |
| | 1078 | | } |
| | 1079 | | case 21: { |
| | 1080 | | Y = input.ReadFloat(); |
| | 1081 | | break; |
| | 1082 | | } |
| | 1083 | | case 29: { |
| | 1084 | | Z = input.ReadFloat(); |
| | 1085 | | break; |
| | 1086 | | } |
| | 1087 | | case 37: { |
| | 1088 | | W = input.ReadFloat(); |
| | 1089 | | break; |
| | 1090 | | } |
| | 1091 | | } |
| | 1092 | | } |
| | 1093 | | } |
| | 1094 | | #endif |
| | 1095 | |
|
| | 1096 | | } |
| | 1097 | |
|
| | 1098 | | #endregion |
| | 1099 | |
|
| | 1100 | | } |
| | 1101 | |
|
| | 1102 | | #endregion Designer generated code |