Expose legacy catalog as read port
This commit is contained in:
parent
23a5241a7d
commit
c9f6002ff2
9 changed files with 42 additions and 34 deletions
|
|
@ -234,7 +234,7 @@ public class ActionGameManager : MonoBehaviour
|
|||
Debug.Log($"Aetheria typed state file: {AetheriaStateFilePath}");
|
||||
Debug.Log($"Aetheria legacy item catalog: {LegacyAetherDatabasePath}");
|
||||
ItemManager = new ItemManager(
|
||||
LegacyCatalogBoundary.GetCatalogCache(GameDataDirectory),
|
||||
LegacyCatalogBoundary.GetCatalog(GameDataDirectory),
|
||||
Settings.GameplaySettings,
|
||||
Debug.Log);
|
||||
ZoneRenderer.ItemManager = ItemManager;
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ public static class LegacyCatalogBoundary
|
|||
return Path.Combine(gameDataDirectory.FullName, "AetherDB.msgpack");
|
||||
}
|
||||
|
||||
public static LegacyCatalogCache GetCatalogCache(DirectoryInfo gameDataDirectory)
|
||||
public static ILegacyCatalogReader GetCatalog(DirectoryInfo gameDataDirectory)
|
||||
{
|
||||
if (_catalogCache != null) return _catalogCache;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue