Another attempt at ProtoBuf serialization of Inventory
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Globalization;
|
||||
using ProtoBuf;
|
||||
|
||||
namespace OpenMetaverse
|
||||
{
|
||||
@@ -34,14 +35,18 @@ namespace OpenMetaverse
|
||||
/// A three-dimensional vector with doubleing-point values
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
[ProtoContract]
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public struct Vector3d : IComparable<Vector3d>, IEquatable<Vector3d>
|
||||
{
|
||||
/// <summary>X value</summary>
|
||||
[ProtoMember(1)]
|
||||
public double X;
|
||||
/// <summary>Y value</summary>
|
||||
[ProtoMember(2)]
|
||||
public double Y;
|
||||
/// <summary>Z value</summary>
|
||||
[ProtoMember(3)]
|
||||
public double Z;
|
||||
|
||||
#region Constructors
|
||||
|
||||
Reference in New Issue
Block a user