explicitly make ICommandInfo => IReadOnlyCommandInfo

This commit is contained in:
goat 2024-06-28 23:26:15 +02:00
parent 29f951c309
commit d628be9536
3 changed files with 21 additions and 21 deletions

View file

@ -12,7 +12,7 @@ public interface ICommandManager
/// <summary>
/// Gets a read-only list of all registered commands.
/// </summary>
public ReadOnlyDictionary<string, ICommandInfo> Commands { get; }
public ReadOnlyDictionary<string, IReadOnlyCommandInfo> Commands { get; }
/// <summary>
/// Process a command in full.
@ -27,7 +27,7 @@ public interface ICommandManager
/// <param name="command">The command to dispatch.</param>
/// <param name="argument">The provided arguments.</param>
/// <param name="info">A <see cref="CommandInfo"/> object describing this command.</param>
public void DispatchCommand(string command, string argument, CommandInfo info);
public void DispatchCommand(string command, string argument, IReadOnlyCommandInfo info);
/// <summary>
/// Add a command handler, which you can use to add your own custom commands to the in-game chat.