Centralize legacy catalog access

This commit is contained in:
Meta Vens 2026-06-13 10:45:01 +01:00
commit be1c8801ed
5 changed files with 35 additions and 26 deletions

View file

@ -37,6 +37,7 @@ public class ActionGameManager : MonoBehaviour
public static string AetheriaStateFilePath => LegacyCatalogBoundary.GetStateFilePath(GameDataDirectory);
public static string LegacyAetherDatabasePath => LegacyCatalogBoundary.GetLegacyCatalogPath(GameDataDirectory);
public static ILegacyCatalogReader LegacyCatalog => LegacyCatalogBoundary.GetCatalog(GameDataDirectory);
private static PlayerSettings _playerSettings;
public static PlayerSettings PlayerSettings
@ -234,7 +235,7 @@ public class ActionGameManager : MonoBehaviour
Debug.Log($"Aetheria typed state file: {AetheriaStateFilePath}");
Debug.Log($"Aetheria legacy item catalog: {LegacyAetherDatabasePath}");
ItemManager = new ItemManager(
LegacyCatalogBoundary.GetCatalog(GameDataDirectory),
LegacyCatalog,
Settings.GameplaySettings,
Debug.Log);
ZoneRenderer.ItemManager = ItemManager;