Add Unity state runtime package boundary
This commit is contained in:
parent
c8fd1d5e22
commit
7558b8559b
7 changed files with 57 additions and 21 deletions
|
|
@ -8,6 +8,7 @@ using System.Collections.Generic;
|
|||
using System.IO;
|
||||
using System.Linq;
|
||||
using Cinemachine;
|
||||
using GameCult.Aetheria.State.Unity;
|
||||
using Ink;
|
||||
using Ink.Runtime;
|
||||
using TMPro;
|
||||
|
|
@ -35,7 +36,7 @@ public class ActionGameManager : MonoBehaviour
|
|||
get => _gameDataDirectory ??= new DirectoryInfo(Application.dataPath).Parent.CreateSubdirectory("GameData");
|
||||
}
|
||||
|
||||
public static string AetheriaStateFilePath => AetheriaStateBoundary.GetStateFilePath(GameDataDirectory);
|
||||
public static string AetheriaStateFilePath => AetheriaRuntimeStateBoundary.GetStateFilePath(GameDataDirectory);
|
||||
private static string LegacyAetherDatabasePath => LegacyCatalogBoundary.GetLegacyCatalogPath(GameDataDirectory);
|
||||
private static ILegacyCatalogReader LegacyCatalog => LegacyCatalogBoundary.GetCatalog(GameDataDirectory);
|
||||
|
||||
|
|
|
|||
|
|
@ -1,11 +0,0 @@
|
|||
using System.IO;
|
||||
|
||||
public static class AetheriaStateBoundary
|
||||
{
|
||||
public const string RuntimeStateFileName = "aetheria-world.cc";
|
||||
|
||||
public static string GetStateFilePath(DirectoryInfo gameDataDirectory)
|
||||
{
|
||||
return Path.Combine(gameDataDirectory.FullName, RuntimeStateFileName);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue