Stage Eve UI Toolkit lowering boundary
This commit is contained in:
parent
42500ea45c
commit
f685c04065
17 changed files with 678 additions and 9 deletions
|
|
@ -10,6 +10,7 @@ var statePath = args.Length > 1
|
|||
await using var client = await AetheriaRuntimeCatalogClient.OpenAsync(statePath);
|
||||
var catalog = client.ReadCatalog();
|
||||
var packageCatalog = AetheriaRuntimeCatalogStore.OpenReadOnly(statePath);
|
||||
var packageSurfaces = AetheriaRuntimeCatalogStore.ReadEveSurfaces(statePath);
|
||||
var surface = await client.ReadCatalogSurfaceAsync();
|
||||
var commitSmokeDirectory = Path.Combine(Path.GetTempPath(), "aetheria-state-unity-smoke", Guid.NewGuid().ToString("N"));
|
||||
var commitSmokeStatePath = Path.Combine(commitSmokeDirectory, "aetheria-world.cc");
|
||||
|
|
@ -134,6 +135,17 @@ if (surface?.Schema != "gamecult.eve.surface.v1" ||
|
|||
throw new InvalidOperationException("Runtime catalog client did not read the typed Eve surface.");
|
||||
}
|
||||
|
||||
var packageSurface = packageSurfaces.FirstOrDefault(candidate => candidate.Surface.Id == AetheriaCatalogSurfaceProjector.SurfaceId);
|
||||
if (packageSurface == null ||
|
||||
packageSurface.Schema != "gamecult.eve.surface.v1" ||
|
||||
packageSurface.ProviderId != "aetheria" ||
|
||||
packageSurface.Surface.Root.Kind != "surface" ||
|
||||
packageSurface.Surface.Root.Children.Count == 0 ||
|
||||
packageSurface.Commands.All(command => command.Command != "aetheria.catalog.refresh"))
|
||||
{
|
||||
throw new InvalidOperationException("Package runtime store did not read the typed Eve surface contract from CultCache.");
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
var commit = AetheriaRuntimeStateCommitLog.QueuePlayerSettings(
|
||||
|
|
@ -235,4 +247,5 @@ Console.WriteLine($"Interior/hardpoint sample: {interior.Name} {interior.Interio
|
|||
Console.WriteLine($"Behavior payload sample: {behaviorHost.Name} {behaviorPayload.Kind}/{behaviorPayload.Fields.Count}");
|
||||
Console.WriteLine($"Behavior sample: {behaviorKind}");
|
||||
Console.WriteLine($"Eve surface: {surface.Surface.Id}");
|
||||
Console.WriteLine($"Package Eve surfaces: {packageSurfaces.Count}");
|
||||
Console.WriteLine("Runtime state commit log smoke: settings and run zone/entity snapshots queued, applied, and cleared");
|
||||
|
|
|
|||
Loading…
Reference in a new issue