unity-atoms/Packages/Core/Runtime/References/AtomBaseReference.cs

29 lines
752 B
C#
Raw Normal View History

2020-03-08 19:16:40 -04:00
using UnityEngine;
namespace UnityAtoms
{
2020-03-21 17:45:39 -04:00
/// <summary>
/// Different Reference usages.
/// </summary>
2020-03-08 19:16:40 -04:00
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
{
2020-03-16 18:26:23 -04:00
public int Usage { get => _usage; set => _usage = value; }
2020-03-08 19:16:40 -04:00
/// <summary>
/// Describes how we use the Reference and where the value comes from.
/// </summary>
[SerializeField]
protected int _usage;
}
}