Centralize legacy catalog access
This commit is contained in:
parent
e51a77932c
commit
be1c8801ed
5 changed files with 35 additions and 26 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue