| 1 | namespace CascadeIDE.Contracts.Experimental; |
| 2 | |
| 3 | /// <summary> |
| 4 | /// Канонические строковые id зон внимания кокпита (нижний регистр). ADR 0025; совпадают с |
| 5 | /// <c>AttentionZoneIds</c> / TOML overlay в приложении. |
| 6 | /// </summary> |
| 7 | [ApiStability(ApiStability.Experimental)] |
| 8 | public static class AttentionZoneCanonicalIds |
| 9 | { |
| 10 | public const string Forward = "forward"; |
| 11 | public const string Pfd = "pfd"; |
| 12 | public const string Mfd = "mfd"; |
| 13 | public const string Eicas = "eicas"; |
| 14 | public const string Hud = "hud"; |
| 15 | |
| 16 | /// <summary>Стабильный порядок для валидации и дампов.</summary> |
| 17 | public static readonly string[] All = [Forward, Pfd, Mfd, Eicas, Hud]; |
| 18 | |
| 19 | /// <summary>Строгое совпадение с одним из канонических id (как в данных ADR / overlay).</summary> |
| 20 | public static bool IsKnownCanonicalId(string? value) => |
| 21 | value is Forward or Pfd or Mfd or Eicas or Hud; |
| 22 | } |
| 23 | |
View only · write via MCP/CIDE