Keep Unity state surface compile fixes

This commit is contained in:
Meta Vens 2026-06-27 13:36:40 +01:00
commit 6dba17d86c
10 changed files with 53 additions and 11 deletions

View file

@ -2,6 +2,8 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
using GameCult.Aetheria.State.Verse;
public sealed class AetheriaUnityCockpitHudShell
{
public InventoryPanel ShipPanel { get; set; }

View file

@ -53,10 +53,10 @@ public sealed class AetheriaUnityPilotFrameAdapter
if (renderSettings != null)
{
if (HeatstrokePost != null)
HeatstrokePost.weight = (float)renderSettings.NormalizeHeatstrokePost(currentEntity.Heatstroke);
HeatstrokePost.weight = (float)renderSettings.Value.NormalizeHeatstrokePost(currentEntity.Heatstroke);
if (SevereHeatstrokePost != null)
SevereHeatstrokePost.weight =
(float)renderSettings.ResolveSevereHeatstrokePostWeight(currentEntity.Heatstroke, timeSeconds);
(float)renderSettings.Value.ResolveSevereHeatstrokePostWeight(currentEntity.Heatstroke, timeSeconds);
}
if (currentEntity is Ship)

View file

@ -3,6 +3,7 @@
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
using System.Linq;
using GameCult.Aetheria.State.Verse;
public static class AetheriaUnityRenderSettingsBridge
{

View file

@ -66,7 +66,7 @@ public sealed class AetheriaUnityTargetPresentation
{
var contacts = ResolveVisibleContacts?.Invoke(
currentEntity,
renderSettings.TargetDetectionInfoThreshold,
renderSettings.Value.TargetDetectionInfoThreshold,
true) ?? Array.Empty<AetheriaRuntimeZoneContactRow>();
foreach (var contact in contacts)
@ -168,9 +168,9 @@ public sealed class AetheriaUnityTargetPresentation
}
var infoGathered = ResolveInfoGathered?.Invoke(indicator.Key, currentEntity) ?? 0f;
indicator.Value.Fill.fillAmount = (float)renderSettings.NormalizeDetectionProgress(infoGathered);
indicator.Value.Fill.fillAmount = (float)renderSettings.Value.NormalizeDetectionProgress(infoGathered);
indicator.Value.Fill.enabled = !blinkSpottedTargets ||
renderSettings.ResolveTargetSpottedFillEnabled(infoGathered, time);
renderSettings.Value.ResolveTargetSpottedFillEnabled(infoGathered, time);
}
}