// // Licensed under the MIT License. See LICENSE file in the project root for full license information. // namespace MUnique.OpenMU.PlugIns.Tests; using System.ComponentModel.DataAnnotations; using System.Runtime.InteropServices; /// /// A test strategy plugin. /// /// [Guid("69A6FCD1-E828-4841-BE91-E064231ED7B9")] [PlugIn] [Display(Name = nameof(ExampleStrategyPlugIn), Description = "A test strategy plugin.")] public class ExampleStrategyPlugIn : IExampleStrategyPlugIn { /// /// Gets the command key which is handled by this strategy plugin type. /// public static string CommandKey => "/mytest"; /// public string Key => CommandKey; /// /// Gets the handled command. /// /// /// The handled command. /// public string? HandledCommand { get; private set; } /// public void HandleCommand(string command) { this.HandledCommand = command; } }