Advertise Aetheria Eve surface catalog

This commit is contained in:
Meta Vens 2026-07-02 20:36:28 +01:00
commit f13f70d92b
6 changed files with 194 additions and 42 deletions

View file

@ -323,44 +323,9 @@ public static class AetheriaEveSurfaceDocuments
Summary = "Aetheria daemon editor Eve TUI surface record"
}
],
Surfaces =
[
new EveProviderSurfaceRef
{
SurfaceId = CatalogSurfaceId,
Key = CatalogSurfaceKey
},
new EveProviderSurfaceRef
{
SurfaceId = OperationsSurfaceId,
Key = OperationsSurfaceKey
},
new EveProviderSurfaceRef
{
SurfaceId = PlayerSettingsSurfaceId,
Key = PlayerSettingsSurfaceKey
},
new EveProviderSurfaceRef
{
SurfaceId = AetheriaRuntimeDaemonGameSurfaceBuilder.SurfaceId,
Key = DaemonGameSurfaceKey
},
new EveProviderSurfaceRef
{
SurfaceId = AetheriaRuntimeDaemonGameSurfaceBuilder.TuiSurfaceId,
Key = DaemonGameTuiSurfaceKey
},
new EveProviderSurfaceRef
{
SurfaceId = AetheriaRuntimeDaemonEditorSurfaceBuilder.SurfaceId,
Key = DaemonEditorSurfaceKey
},
new EveProviderSurfaceRef
{
SurfaceId = AetheriaRuntimeDaemonEditorSurfaceBuilder.TuiSurfaceId,
Key = DaemonEditorTuiSurfaceKey
}
],
Surfaces = AetheriaRuntimeEveSurfaceCatalog.All
.Select(ToProviderSurfaceRef)
.ToArray(),
Commands =
[
new EveProviderCommandRef
@ -413,6 +378,17 @@ public static class AetheriaEveSurfaceDocuments
};
}
private static EveProviderSurfaceRef ToProviderSurfaceRef(AetheriaRuntimeEveSurfaceAdvertisement surface)
{
return new EveProviderSurfaceRef
{
SurfaceId = surface.SurfaceId,
Key = surface.RecordRef,
Transport = surface.Transport,
Status = surface.Status
};
}
private static string LatestTimestamp(params string?[] timestamps)
{
var latest = "";