Merge master into eureka/aetheria-release-scenarios: adopt the scenarios lane onto master's base
The one conflict is AetheriaStores.CatalogTypes: keep ShipAuthoring from the ships lane and Scenario from the scenarios lane. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
commit
2d39c83504
47 changed files with 5005 additions and 12 deletions
|
|
@ -42,7 +42,13 @@ public class ActionGameManager : MonoBehaviour
|
|||
|
||||
private static CultCache _cultCache;
|
||||
|
||||
// Mod packages left out of this boot (a bad package, or a name collision), for the main menu to name.
|
||||
public static ShipModCatalog.Exclusion[] ModExclusions { get; private set; } = Array.Empty<ShipModCatalog.Exclusion>();
|
||||
|
||||
private static string CatalogPath => Path.Combine(GameDataDirectory.FullName, "Aetheria.cc");
|
||||
private static string ModsPath => Path.Combine(GameDataDirectory.FullName, "Mods");
|
||||
// Disposable: composed at every boot from the shipped catalog and the mod packages, never authored.
|
||||
private static string DerivedCatalogPath => Path.Combine(Application.persistentDataPath, "Aetheria.modded.cc");
|
||||
|
||||
public static CultCache CultCache
|
||||
{
|
||||
|
|
@ -52,12 +58,18 @@ public class ActionGameManager : MonoBehaviour
|
|||
|
||||
// All three stores attach once and stay attached until the process exits. The run lifecycle is record-level
|
||||
// inside this cache; reopening would replace the catalog instances the galaxy and live entities hold.
|
||||
// The catalog is read-only in every build; capturepreset writes through its own cache (Loadouts.Commit).
|
||||
// The catalog is read-only in every build; capturepreset writes through its own cache (Loadouts.Commit) to the
|
||||
// shipped file. With mod packages installed the game reads the derived catalog instead.
|
||||
var (catalog, excluded) = ShipModCatalog.ResolveCatalog(CatalogPath, DerivedCatalogPath, ModsPath);
|
||||
ModExclusions = excluded;
|
||||
_cultCache = AetheriaStores.Open(
|
||||
CatalogPath,
|
||||
catalog,
|
||||
runPath: Path.Combine(GameDataDirectory.FullName, "run.cc"),
|
||||
playerPath: Path.Combine(GameDataDirectory.FullName, "player.cc"));
|
||||
|
||||
// Mod ship prototypes import asynchronously from here; entering a game waits on ShipModShips.Loading.
|
||||
ShipModShips.Preload(_cultCache, ModsPath);
|
||||
|
||||
return _cultCache;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue