Build typed Aetheria client surfaces
This commit is contained in:
parent
74b3b3d72a
commit
2e96660d48
246 changed files with 37893 additions and 6728 deletions
20
Assets/Scripts/Gameplay/AetheriaUnityRuntimePaths.cs
Normal file
20
Assets/Scripts/Gameplay/AetheriaUnityRuntimePaths.cs
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
using System.IO;
|
||||
using GameCult.Aetheria.State.Verse;
|
||||
using UnityEngine;
|
||||
|
||||
public static class AetheriaUnityRuntimePaths
|
||||
{
|
||||
private static DirectoryInfo _gameDataDirectory;
|
||||
private static string _runtimeStateFilePath;
|
||||
|
||||
public static DirectoryInfo GameDataDirectory =>
|
||||
_gameDataDirectory ??= new DirectoryInfo(Application.dataPath).Parent.CreateSubdirectory("GameData");
|
||||
|
||||
public static string RuntimeStateFilePath =>
|
||||
_runtimeStateFilePath ??= AetheriaRuntimeStateBoot.Inspect(GameDataDirectory).StateFilePath;
|
||||
|
||||
public static void ClearRuntimeStateFilePathCache()
|
||||
{
|
||||
_runtimeStateFilePath = null;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue