Route inventory current ship through observed state

This commit is contained in:
Meta Vens 2026-06-21 19:23:54 +01:00
commit 05146a6768
4 changed files with 40 additions and 10 deletions

View file

@ -3999,7 +3999,9 @@ static void RequireInventoryShipSettingsUseEveSurface(string root)
"AetheriaRuntimeShipSettingsCommandKind.DecrementShutdownThreshold",
"AetheriaRuntimeShipSettingsCommandKind.IncrementShutdownThreshold",
"AetheriaRuntimeShipSettingsCommandKind.ResetShutdownThreshold",
"AetheriaRuntimeShipSettingsCommandKind.Close"
"AetheriaRuntimeShipSettingsCommandKind.Close",
"GameManager.TryGetObservedCurrentEntity(out var currentEntity)",
"GameManager.TryGetObservedCurrentEntity(out var entity)"
};
var missingSymbols = requiredSymbols
@ -4028,7 +4030,10 @@ static void RequireInventoryShipSettingsUseEveSurface(string root)
"PropertiesPanel.AddField(\"Shutdown Threshold\"",
"() => GameManager.CurrentEntity.Settings.ShutdownPerformance",
"f => GameManager.RequestEntityShutdownPerformance(GameManager.CurrentEntity, f)",
"switch (request.Command)"
"switch (request.Command)",
"var entity = GameManager.CurrentEntity",
"GameManager.CurrentEntity == null",
"RenderCurrentShipSettingsSurface(GameManager.CurrentEntity)"
};
var hits = forbiddenSymbols
@ -10523,6 +10528,13 @@ static void RequireDockedCurrentShipRequestAuthority(string root)
throw new InvalidOperationException("InventoryPanel no longer routes current-ship selection through ActionGameManager.");
}
if (!inventoryPanel.Contains("GameManager.TryGetObservedCurrentEntity(out var currentEntity)", StringComparison.Ordinal) ||
inventoryPanel.Contains("GameManager.CurrentEntity", StringComparison.Ordinal))
{
throw new InvalidOperationException(
"InventoryPanel must compare current-ship UI state through daemon-observed current entity state instead of peeking GameManager.CurrentEntity directly.");
}
if (inventoryPanel.Contains("Current.targetGraphic.color = ToggleEnabledColor;", StringComparison.Ordinal))
{
throw new InvalidOperationException(