unity-atoms/Packages/Core/Runtime/Utils/Runtime.cs
Adam Ramberg c3bc59259f More WIP
2020-03-02 02:26:06 +01:00

34 lines
1.1 KiB
C#

namespace UnityAtoms
{
/// <summary>
/// Internal constant and static readonly members for runtime usage.
/// </summary>
public static class Runtime
{
/// <summary>
/// Runtime constants
/// </summary>
public static class Constants
{
/// <summary>
/// Prefix that should be pre-pended to all Debug.Logs made from UnityAtoms to help immediately inform a user that those logs are made from this library.
/// </summary>
public const string LOG_PREFIX = "UnityAtoms :: ";
}
public static class ExecutionOrder
{
public const int VARIABLE_INSTANCER = -100;
}
/// <summary>
/// Determine if we are working the Unity Atoms source library / repo or not.
/// </summary>
/// <returns>`true` if we are working in the Unity Atoms source library / repo, otherwise `false`.</returns>
public static bool IsUnityAtomsRepo
{
get => System.Environment.CurrentDirectory.Contains("unity-atoms/Examples");
}
}
}