Move trade filters into runtime projection

This commit is contained in:
Meta Vens 2026-06-21 21:32:57 +01:00
commit 6f0ff70336
3 changed files with 315 additions and 89 deletions

View file

@ -4647,12 +4647,16 @@ static void RequireTradeFilterAndRowActionsUseEveSurface(string root)
var requiredSymbols = new[]
{
"RenderFilterSurface(",
"BuildFilterSurfaceCommands(",
"_filterSurfaceProjection = ProjectTradeFilterSurface();",
"HandleFilterSurfaceCommand(",
"AetheriaEveUnitySurfaceHost.RenderRuntime(",
"AetheriaEveUnitySurfaceHost.Hide(_filterSurfaceDocument)",
"AetheriaRuntimeTradeInteractionSurfaceBuilder.BuildFilter(ProjectTradeFilterSurfaceState(",
"ProjectTradeFilterSurfaceState(",
"AetheriaRuntimeTradeInteractionSurfaceBuilder.BuildFilter(_filterSurfaceProjection.State)",
"ProjectTradeFilterSurface(",
"AetheriaRuntimeTradeInteractionSurfaceBuilder.ProjectFilters(",
"_filterSurfaceProjection?.TryResolve(command.Command, out var selection) == true",
"ExecuteTradeFilterSelection(",
"new AetheriaRuntimeTradeFilterOption(",
"RenderRowActionSurface(",
"HandleRowActionSurfaceCommand(",
"AetheriaEveUnitySurfaceHost.Hide(_rowActionSurfaceDocument)",
@ -4700,6 +4704,10 @@ static void RequireTradeFilterAndRowActionsUseEveSurface(string root)
"string.Equals(request.Command, AetheriaRuntimeTradeInteractionSurfaceBuilder.CloseFilter",
"string.Equals(request.Command, AetheriaRuntimeTradeInteractionSurfaceBuilder.CloseRowAction",
"_filterSurfaceCommands.TryGetValue(request.Command",
"private readonly Dictionary<string, Action> _filterSurfaceCommands",
"BuildFilterSurfaceCommands(",
"ProjectTradeFilterSurfaceState(",
"AddTradeFilterGroup(",
"_rowActionSurfaceCommands.TryGetValue(request.Command",
"private readonly Dictionary<string, Action> _rowActionSurfaceCommands",
"BuildRowActionSurfaceCommands(",
@ -4730,6 +4738,10 @@ static void RequireTradeFilterAndRowActionsUseEveSurface(string root)
"public static bool TryReadFilter(",
"public static bool TryReadRowAction(",
"AetheriaRuntimeTradeFilterSurfaceState",
"AetheriaRuntimeTradeFilterOption",
"AetheriaRuntimeTradeFilterSelectionKind",
"AetheriaRuntimeTradeFilterSelection",
"AetheriaRuntimeTradeFilterSurfaceProjection",
"AetheriaRuntimeTradeRowActionSurfaceState",
"AetheriaRuntimeTradeRowActionOption",
"AetheriaRuntimeTradeRowActionSelection",
@ -4738,6 +4750,8 @@ static void RequireTradeFilterAndRowActionsUseEveSurface(string root)
"AetheriaRuntimeTradeSurfaceOption",
"public static string HardpointFilterCommand(",
"public static string RowActionCommand(",
"public static AetheriaRuntimeTradeFilterSurfaceProjection ProjectFilters(",
"public bool TryResolve(string command, out AetheriaRuntimeTradeFilterSelection selection)",
"public static AetheriaRuntimeTradeRowActionSurfaceProjection ProjectRowActions(",
"public bool TryResolve(string command, out AetheriaRuntimeTradeRowActionSelection selection)",
"public static AetheriaRuntimeSurfaceDocument BuildFilter(",