Isolate legacy catalog boundary

This commit is contained in:
Meta Vens 2026-06-13 06:33:12 +01:00
commit fd6aa1d280
6 changed files with 56 additions and 40 deletions

View file

@ -118,7 +118,7 @@ public class MainMenu : MonoBehaviour
Settings.SectorGenerationSettings,
Settings.SectorBackgroundSettings,
Settings.NameGeneratorSettings,
ActionGameManager.LegacyCultCache,
LegacyCatalogBoundary.GetCatalogCache(ActionGameManager.GameDataDirectory),
Debug.Log,
setState);
Observable.NextFrame().Subscribe(_ =>
@ -144,7 +144,7 @@ public class MainMenu : MonoBehaviour
Settings.TutorialGenerationSettings,
Settings.TutorialBackgroundSettings,
Settings.NameGeneratorSettings,
ActionGameManager.LegacyCultCache,
LegacyCatalogBoundary.GetCatalogCache(ActionGameManager.GameDataDirectory),
ActionGameManager.PlayerSettings,
ActionGameManager.GameDataDirectory.CreateSubdirectory("Narrative"),
Debug.Log,

View file

@ -390,7 +390,7 @@ public class PropertiesPanel : MonoBehaviour
AddProperty("Quantity", () => simpleCommodity.Quantity.ToString());
var sheet = AddStatSheet();
var manufacturer = ActionGameManager.LegacyCultCache.Get<Faction>(data.Manufacturer);
var manufacturer = LegacyCatalogBoundary.GetCatalogCache(ActionGameManager.GameDataDirectory).Get<Faction>(data.Manufacturer);
sheet.AddStat("Manufacturer", () => manufacturer?.Name ?? "GameCult");
sheet.AddStat("Mass", () => ActionGameManager.PlayerSettings.Format(GameManager.ItemManager.GetMass(item)));