Fetch Electron viewports from daemon documents

This commit is contained in:
Meta Vens 2026-07-06 03:21:20 +01:00
commit d91e87b6d6
4 changed files with 320 additions and 516 deletions

View file

@ -997,7 +997,12 @@ static bool TryGetManagedViewportRequest(
schemaId = "";
viewport = new AetheriaRuntimeViewportBounds();
var prefix = "";
if (recordKey.StartsWith("aetheria.viewport.objects.", StringComparison.Ordinal))
if (recordKey.StartsWith("aetheria.viewport.map.", StringComparison.Ordinal))
{
prefix = "aetheria.viewport.map.";
schemaId = AetheriaRuntimeDaemonSchemas.GameViewport;
}
else if (recordKey.StartsWith("aetheria.viewport.objects.", StringComparison.Ordinal))
{
prefix = "aetheria.viewport.objects.";
schemaId = AetheriaRuntimeDaemonSchemas.ObjectsViewport;