Reintroduce ProtoBuf and use it for inventory caching too. ZeroFormatter wasn't working out.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
/*
|
||||
* Copyright (c) 2006-2016, openmetaverse.co
|
||||
* Copyright (c) 2021, Sjofn LLC.
|
||||
* All rights reserved.
|
||||
*
|
||||
* - Redistribution and use in source and binary forms, with or without
|
||||
@@ -27,6 +28,7 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Globalization;
|
||||
using ProtoBuf;
|
||||
|
||||
namespace OpenMetaverse
|
||||
{
|
||||
@@ -35,11 +37,14 @@ namespace OpenMetaverse
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
[ProtoContract]
|
||||
public struct Vector2 : IComparable<Vector2>, IEquatable<Vector2>
|
||||
{
|
||||
/// <summary>X value</summary>
|
||||
[ProtoMember(1)]
|
||||
public float X;
|
||||
/// <summary>Y value</summary>
|
||||
[ProtoMember(2)]
|
||||
public float Y;
|
||||
|
||||
#region Constructors
|
||||
|
||||
Reference in New Issue
Block a user