Aetheria/Assets/Scripts/Gameplay/AetheriaUnityObservedRunProjection.cs

22 lines
717 B
C#
Raw Normal View History

2026-06-25 18:09:33 +01:00
using System;
using System.Linq;
using GameCult.Aetheria.State.Verse;
public static class AetheriaUnityObservedRunProjection
{
public static Galaxy Project(
2026-06-25 18:09:33 +01:00
AetheriaRuntimeSectorMapDocument sectorMap,
SectorBackgroundSettings backgroundSettings,
AetheriaRuntimeCatalogSnapshot runtimeCatalog,
Action<string> log)
{
return global::Galaxy.ProjectObservedSectorMap(sectorMap, backgroundSettings, runtimeCatalog, log);
2026-06-25 18:09:33 +01:00
}
public static GalaxyZone FindZone(Galaxy galaxy, int daemonZoneIndex)
2026-06-25 18:09:33 +01:00
{
return daemonZoneIndex < 0
? null
: galaxy?.Zones?.FirstOrDefault(zone => zone != null && zone.ZoneIndex == daemonZoneIndex);
2026-06-25 18:09:33 +01:00
}
}