unity-atoms/Packages/Core/Runtime/References/AtomBaseReference.cs
2020-03-21 22:45:39 +01:00

29 lines
752 B
C#

using UnityEngine;
namespace UnityAtoms
{
/// <summary>
/// Different Reference usages.
/// </summary>
public class AtomReferenceUsage
{
public const int VALUE = 0;
public const int CONSTANT = 1;
public const int VARIABLE = 2;
public const int VARIABLE_INSTANCER = 3;
}
/// <summary>
/// None generic base class for `AtomReference&lt;T, C, V, E1, E2, F, VI&gt;`.
/// </summary>
public abstract class AtomBaseReference
{
public int Usage { get => _usage; set => _usage = value; }
/// <summary>
/// Describes how we use the Reference and where the value comes from.
/// </summary>
[SerializeField]
protected int _usage;
}
}