using System;
namespace UnityAtoms
{
///
/// Internal constant and static readonly members for runtime usage.
///
public static class Runtime
{
///
/// Runtime constants
///
public static class Constants
{
///
/// 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.
///
public const string LOG_PREFIX = "UnityAtoms :: ";
}
#if UNITY_EDITOR
private static bool? _isUnityAtomsRepo = false;
#endif
///
/// Determine if we are working the Unity Atoms source library / repo or not.
///
/// `true` if we are working in the Unity Atoms source library / repo, otherwise `false`.
public static bool IsUnityAtomsRepo
{
#if !UNITY_EDITOR
get => System.Environment.CurrentDirectory.Contains("unity-atoms/Examples");
#else
get => (_isUnityAtomsRepo = (_isUnityAtomsRepo ?? System.Environment.CurrentDirectory.Contains("unity-atoms/Examples"))).Value;
set => _isUnityAtomsRepo = value;
#endif
}
}
}