Move runtime state boot probe into package
This commit is contained in:
parent
7558b8559b
commit
6f0a84073d
4 changed files with 51 additions and 12 deletions
|
|
@ -36,7 +36,6 @@ public class ActionGameManager : MonoBehaviour
|
|||
get => _gameDataDirectory ??= new DirectoryInfo(Application.dataPath).Parent.CreateSubdirectory("GameData");
|
||||
}
|
||||
|
||||
public static string AetheriaStateFilePath => AetheriaRuntimeStateBoundary.GetStateFilePath(GameDataDirectory);
|
||||
private static string LegacyAetherDatabasePath => LegacyCatalogBoundary.GetLegacyCatalogPath(GameDataDirectory);
|
||||
private static ILegacyCatalogReader LegacyCatalog => LegacyCatalogBoundary.GetCatalog(GameDataDirectory);
|
||||
|
||||
|
|
@ -232,8 +231,11 @@ public class ActionGameManager : MonoBehaviour
|
|||
Instance = this;
|
||||
EntityInstance.EffectManagerParent = EffectManagerParent;
|
||||
ConsoleController.MessageReceiver = this;
|
||||
|
||||
Debug.Log($"Aetheria typed state file: {AetheriaStateFilePath}");
|
||||
|
||||
var stateBoot = AetheriaRuntimeStateBoot.Inspect(GameDataDirectory);
|
||||
Debug.Log($"Aetheria typed state file: {stateBoot.StateFilePath}");
|
||||
if (!stateBoot.StateFileExists)
|
||||
Debug.LogWarning("Aetheria typed state file is missing. Run the Aetheria.State importer before treating legacy catalog data as runtime state.");
|
||||
Debug.Log($"Aetheria legacy item catalog: {LegacyAetherDatabasePath}");
|
||||
ItemManager = new ItemManager(
|
||||
LegacyCatalog,
|
||||
|
|
|
|||
Loading…
Reference in a new issue