Aetheria/Packages/org.gamecult.aetheria.state/Runtime/AetheriaRuntimeStateBoot.cs
2026-06-13 11:44:01 +01:00

28 lines
829 B
C#

using System.IO;
namespace GameCult.Aetheria.State.Unity
{
public readonly struct AetheriaRuntimeStateBootReport
{
public AetheriaRuntimeStateBootReport(string stateFilePath, bool stateFileExists)
{
StateFilePath = stateFilePath;
StateFileExists = stateFileExists;
}
public string StateFilePath { get; }
public bool StateFileExists { get; }
}
public static class AetheriaRuntimeStateBoot
{
public static AetheriaRuntimeStateBootReport Inspect(DirectoryInfo gameDataDirectory)
{
var stateFilePath = AetheriaRuntimeStateBoundary.GetStateFilePath(gameDataDirectory);
return new AetheriaRuntimeStateBootReport(
stateFilePath,
File.Exists(stateFilePath));
}
}
}