namespace XFEEDToolBox.Core.Galaxy; /// Original published mission marker types, distinct from mission IDs. public static class GalaxyMissionMarkerStyles { // Pinned original3A4E940's actual jump table, not list order or completion // inferred from Journal progress. Both assets retain their original frame. public static string? OriginalFrameFor(int markerType)=>markerType switch {4=>"GM_DisplayOptions_Missions",45=>"GM_Marker_MissionComplete",_=>null}; public static IReadOnlyDictionary> BySystem(IEnumerable missions)=>missions .Where(m=>OriginalFrameFor(m.MarkerType) is not null) .SelectMany(m=>m.SystemAddresses.Distinct().Select(address=>(Address:address,m.MarkerType))) .GroupBy(m=>m.Address).ToDictionary(g=>g.Key,g=>(IReadOnlyList)g.Select(m=>m.MarkerType).Distinct().Order().ToArray()); }