using System.Diagnostics.CodeAnalysis; namespace EvilEngine.Mounts; public enum InstallState { Installed, UpdateQueued, Updating } public sealed record FoundArt(string? Capsule, string? Header, string? Hero, string? Logo) { public string? Icon { get; init; } public static FoundArt None { get; } = new(null, null, null, null); } public sealed record FoundInstall(string Store, string Key, string Title, string Path) { public FoundArt Art { get; init; } = FoundArt.None; public InstallState State { get; init; } } public interface IFinder { string Store { get; } bool TryFind(string key, [NotNullWhen(true)] out string? path); IReadOnlyList Installs(); FoundArt Art(string key) { return FoundArt.None; } }