Add commands in plugin descriptions

This commit is contained in:
Aireil 2020-12-06 03:43:37 +01:00
parent 5ae756577c
commit fe1101a0fb
2 changed files with 14 additions and 0 deletions

View file

@ -1,3 +1,5 @@
using System.Reflection;
namespace Dalamud.Game.Command {
/// <summary>
/// This class describes a registered command.
@ -31,6 +33,9 @@ namespace Dalamud.Game.Command {
/// <param name="handler"></param>
public CommandInfo(HandlerDelegate handler) {
Handler = handler;
LoaderAssemblyName = Assembly.GetCallingAssembly()?.GetName()?.Name;
}
internal string LoaderAssemblyName { get; set; } = string.Empty;
}
}