From 29f951c309a5c17453c43efb03e1c17b5470eb8d Mon Sep 17 00:00:00 2001 From: goat Date: Fri, 28 Jun 2024 23:21:14 +0200 Subject: [PATCH] CommandInfo must be public to allow registering commands --- Dalamud/Game/Command/CommandInfo.cs | 2 +- Dalamud/Plugin/Services/ICommandManager.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dalamud/Game/Command/CommandInfo.cs b/Dalamud/Game/Command/CommandInfo.cs index a8fad6e7a..055c1d125 100644 --- a/Dalamud/Game/Command/CommandInfo.cs +++ b/Dalamud/Game/Command/CommandInfo.cs @@ -3,7 +3,7 @@ namespace Dalamud.Game.Command; /// /// This class describes a registered command. /// -internal sealed class CommandInfo : ICommandInfo +public sealed class CommandInfo : ICommandInfo { /// /// Initializes a new instance of the class. diff --git a/Dalamud/Plugin/Services/ICommandManager.cs b/Dalamud/Plugin/Services/ICommandManager.cs index 6844ca7e0..5816fb2e8 100644 --- a/Dalamud/Plugin/Services/ICommandManager.cs +++ b/Dalamud/Plugin/Services/ICommandManager.cs @@ -27,7 +27,7 @@ public interface ICommandManager /// The command to dispatch. /// The provided arguments. /// A object describing this command. - public void DispatchCommand(string command, string argument, ICommandInfo info); + public void DispatchCommand(string command, string argument, CommandInfo info); /// /// Add a command handler, which you can use to add your own custom commands to the in-game chat. @@ -35,7 +35,7 @@ public interface ICommandManager /// The command to register. /// A object describing the command. /// If adding was successful. - public bool AddHandler(string command, ICommandInfo info); + public bool AddHandler(string command, CommandInfo info); /// /// Remove a command from the command handlers.