Remove bootstrap document wrapper

This commit is contained in:
Meta Vens 2026-06-29 03:12:41 +01:00
commit 3adac72496
5 changed files with 12 additions and 43 deletions

View file

@ -12095,10 +12095,10 @@ static void RequireAetheriaRuntimeVerseClientContract(string root)
"BootstrapLoadoutTemplatesDocument()",
"BootstrapPlayerSettingsDocument()",
"BootstrapVerseHostSettingsDocument()",
"AetheriaRuntimeBootstrapDocuments.RuntimeCatalog(StatePath)",
"AetheriaRuntimeBootstrapDocuments.LoadoutTemplates(StatePath)",
"AetheriaRuntimeBootstrapDocuments.PlayerSettings(StatePath)",
"AetheriaRuntimeBootstrapDocuments.VerseHostSettings(StatePath)"
"return AetheriaRuntimeCatalogStore.OpenReadOnly(StatePath);",
"AetheriaRuntimeCatalogStore.ReadLoadoutTemplates(StatePath)",
"AetheriaRuntimeCatalogStore.ReadPlayerSettings(StatePath)",
"AetheriaRuntimeCatalogStore.ReadVerseHostSettings(StatePath)"
};
var missingClientBootstrapSymbols = requiredClientBootstrapSymbols
.Where(symbol => !client.Contains(symbol, StringComparison.Ordinal))
@ -12114,10 +12114,7 @@ static void RequireAetheriaRuntimeVerseClientContract(string root)
{
"return Task.FromResult(AetheriaRuntimeCatalogStore.ReadPlayerSettings(StatePath));",
"return Task.FromResult(AetheriaRuntimeCatalogStore.ReadVerseHostSettings(StatePath));",
"AetheriaRuntimeCatalogStore.OpenReadOnly(StatePath)",
"AetheriaRuntimeCatalogStore.ReadLoadoutTemplates(StatePath)",
"AetheriaRuntimeCatalogStore.ReadPlayerSettings(StatePath)",
"AetheriaRuntimeCatalogStore.ReadVerseHostSettings(StatePath)",
"public static class AetheriaRuntimeBootstrapDocuments",
"ReadRuntimeCatalogSnapshot()",
"ReadLoadoutTemplatesDocument()",
"ReadPlayerSettingsDocument()",

View file

@ -83,7 +83,6 @@
<Compile Include="Packages\org.gamecult.aetheria.state\Runtime\AetheriaRuntimeEveCommandClient.cs" />
<Compile Include="Packages\org.gamecult.aetheria.state\Runtime\AetheriaRuntimeAssetDocuments.cs" />
<Compile Include="Packages\org.gamecult.aetheria.state\Runtime\AetheriaRuntimeDaemonTradeItemQueries.cs" />
<Compile Include="Packages\org.gamecult.aetheria.state\Runtime\AetheriaRuntimeBootstrapDocuments.cs" />
<Compile Include="Packages\org.gamecult.aetheria.state\Runtime\AetheriaRuntimeClientTargetSurfaceBuilder.cs" />
<Compile Include="Packages\org.gamecult.aetheria.state\Runtime\AetheriaRuntimePlayerSettingsSurfaceBuilder.cs" />
<Compile Include="Packages\org.gamecult.aetheria.state\Runtime\AetheriaRuntimeTradeValuePolicySurfaceBuilder.cs" />

View file

@ -1,28 +0,0 @@
namespace GameCult.Aetheria.State.Verse
{
public static class AetheriaRuntimeBootstrapDocuments
{
public static AetheriaRuntimeCatalogSnapshot RuntimeCatalog(string statePath)
{
return AetheriaRuntimeCatalogStore.OpenReadOnly(statePath);
}
public static AetheriaRuntimeLoadoutTemplatesDocument LoadoutTemplates(string statePath)
{
return new AetheriaRuntimeLoadoutTemplatesDocument(
AetheriaRuntimeCatalogStore.ReadLoadoutTemplates(statePath));
}
public static AetheriaRuntimePlayerSettingsDocument PlayerSettings(string statePath)
{
return AetheriaRuntimePlayerSettingsDocument.FromSnapshot(
AetheriaRuntimeCatalogStore.ReadPlayerSettings(statePath));
}
public static AetheriaRuntimeVerseHostSettingsDocument VerseHostSettings(string statePath)
{
return AetheriaRuntimeVerseHostSettingsDocument.FromSnapshot(
AetheriaRuntimeCatalogStore.ReadVerseHostSettings(statePath));
}
}
}

View file

@ -1,2 +0,0 @@
fileFormatVersion: 2
guid: 2cbb2fbe4bd64f4ab8fb3183b59b42d3

View file

@ -649,22 +649,25 @@ namespace GameCult.Aetheria.State.Verse
private AetheriaRuntimeCatalogSnapshot BootstrapRuntimeCatalogSnapshot()
{
return AetheriaRuntimeBootstrapDocuments.RuntimeCatalog(StatePath);
return AetheriaRuntimeCatalogStore.OpenReadOnly(StatePath);
}
private AetheriaRuntimeLoadoutTemplatesDocument BootstrapLoadoutTemplatesDocument()
{
return AetheriaRuntimeBootstrapDocuments.LoadoutTemplates(StatePath);
return new AetheriaRuntimeLoadoutTemplatesDocument(
AetheriaRuntimeCatalogStore.ReadLoadoutTemplates(StatePath));
}
private AetheriaRuntimePlayerSettingsDocument BootstrapPlayerSettingsDocument()
{
return AetheriaRuntimeBootstrapDocuments.PlayerSettings(StatePath);
return AetheriaRuntimePlayerSettingsDocument.FromSnapshot(
AetheriaRuntimeCatalogStore.ReadPlayerSettings(StatePath));
}
private AetheriaRuntimeVerseHostSettingsDocument BootstrapVerseHostSettingsDocument()
{
return AetheriaRuntimeBootstrapDocuments.VerseHostSettings(StatePath);
return AetheriaRuntimeVerseHostSettingsDocument.FromSnapshot(
AetheriaRuntimeCatalogStore.ReadVerseHostSettings(StatePath));
}
}
}