// --------------------------------------------------------------------------------------------------------------------
//
// Copyright (c) VRMADA, All rights reserved.
//
// --------------------------------------------------------------------------------------------------------------------
using UltimateXR.Core.Components.Singleton;
using UltimateXR.Core.Instantiation;
using UltimateXR.Core.StateSave;
namespace UltimateXR.Core
{
public static partial class UxrConstants
{
#region Public Types & Data
///
/// Serialization constants, used in state synchronization.
///
public static class Serialization
{
#region Public Types & Data
///
/// Each time the serialization format of a component in UltimateXR is changed, this version number gets incremented by
/// one. The goal is to provide backwards compatibility and be able to deserialize old data as well as new.
/// When serializing data, this version will be included somewhere. When deserializing data, the version it was
/// serialized with will be provided, enabling backwards compatibility.
///
public const int CurrentBinaryVersion = 0;
///
/// Default value for .
///
public const int SerializationOrderInstanceManager = SerializationOrderSingleton - 1000;
///
/// Default value for components derived from
/// .
///
public const int SerializationOrderSingleton = -10000;
///
/// Default value for regular components.
///
public const int SerializationOrderDefault = 0;
#endregion
}
#endregion
}
}