Remove bootstrap document wrapper
This commit is contained in:
parent
5299dcb184
commit
3adac72496
5 changed files with 12 additions and 43 deletions
|
|
@ -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()",
|
||||
|
|
|
|||
|
|
@ -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" />
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 2cbb2fbe4bd64f4ab8fb3183b59b42d3
|
||||
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue