mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-15 13:14:17 +01:00
CommandInfo must be public to allow registering commands
This commit is contained in:
parent
a900b704c2
commit
29f951c309
2 changed files with 3 additions and 3 deletions
|
|
@ -3,7 +3,7 @@ namespace Dalamud.Game.Command;
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// This class describes a registered command.
|
/// This class describes a registered command.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal sealed class CommandInfo : ICommandInfo
|
public sealed class CommandInfo : ICommandInfo
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initializes a new instance of the <see cref="CommandInfo"/> class.
|
/// Initializes a new instance of the <see cref="CommandInfo"/> class.
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ public interface ICommandManager
|
||||||
/// <param name="command">The command to dispatch.</param>
|
/// <param name="command">The command to dispatch.</param>
|
||||||
/// <param name="argument">The provided arguments.</param>
|
/// <param name="argument">The provided arguments.</param>
|
||||||
/// <param name="info">A <see cref="CommandInfo"/> object describing this command.</param>
|
/// <param name="info">A <see cref="CommandInfo"/> object describing this command.</param>
|
||||||
public void DispatchCommand(string command, string argument, ICommandInfo info);
|
public void DispatchCommand(string command, string argument, CommandInfo info);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Add a command handler, which you can use to add your own custom commands to the in-game chat.
|
/// 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
|
||||||
/// <param name="command">The command to register.</param>
|
/// <param name="command">The command to register.</param>
|
||||||
/// <param name="info">A <see cref="CommandInfo"/> object describing the command.</param>
|
/// <param name="info">A <see cref="CommandInfo"/> object describing the command.</param>
|
||||||
/// <returns>If adding was successful.</returns>
|
/// <returns>If adding was successful.</returns>
|
||||||
public bool AddHandler(string command, ICommandInfo info);
|
public bool AddHandler(string command, CommandInfo info);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Remove a command from the command handlers.
|
/// Remove a command from the command handlers.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue