LANCommander/LANCommander.Launcher.Plugins/Extensions/IContextMenuExtension.cs
2026-07-28 19:06:33 -05:00

16 lines
603 B
C#

using Avalonia.Controls;
namespace LANCommander.Launcher.Plugins.Extensions;
/// <summary>
/// Adds items to a game's context menu. Implementations are resolved from DI and their items
/// appended to the consolidated game menu shown on covers and list rows.
/// </summary>
public interface IContextMenuExtension
{
/// <summary>Relative position among extension items; lower values appear first.</summary>
int Order { get; }
/// <summary>Builds the menu items shown for the given game (typically <see cref="MenuItem"/>s).</summary>
IEnumerable<Control> BuildMenuItems(Guid gameId);
}