start work to allow customizing command properties via configuration
This commit is contained in:
38
SharedLibraryCore/Interfaces/IManagerCommand.cs
Normal file
38
SharedLibraryCore/Interfaces/IManagerCommand.cs
Normal file
@ -0,0 +1,38 @@
|
||||
using System.Threading.Tasks;
|
||||
using static SharedLibraryCore.Database.Models.EFClient;
|
||||
|
||||
namespace SharedLibraryCore.Interfaces
|
||||
{
|
||||
/// <summary>
|
||||
/// Defines the basic properties of a command
|
||||
/// </summary>
|
||||
public interface IManagerCommand
|
||||
{
|
||||
/// <summary>
|
||||
/// Executes the command
|
||||
/// </summary>
|
||||
/// <param name="gameEvent">event corresponding to the command</param>
|
||||
/// <returns></returns>
|
||||
Task ExecuteAsync(GameEvent gameEvent);
|
||||
|
||||
/// <summary>
|
||||
/// Name of the command
|
||||
/// </summary>
|
||||
string Name { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Description of the command
|
||||
/// </summary>
|
||||
string Description { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Alternative name of the command
|
||||
/// </summary>
|
||||
string Alias { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Minimum permission required to execute the command
|
||||
/// </summary>
|
||||
Permission Permission { get; }
|
||||
}
|
||||
}
|
15
SharedLibraryCore/Interfaces/ITranslationLookup.cs
Normal file
15
SharedLibraryCore/Interfaces/ITranslationLookup.cs
Normal file
@ -0,0 +1,15 @@
|
||||
namespace SharedLibraryCore.Interfaces
|
||||
{
|
||||
/// <summary>
|
||||
/// Defines the translation lookup capabilities for DI
|
||||
/// </summary>
|
||||
public interface ITranslationLookup
|
||||
{
|
||||
/// <summary>
|
||||
/// Allows indexing
|
||||
/// </summary>
|
||||
/// <param name="key">translation lookup key</param>
|
||||
/// <returns></returns>
|
||||
string this[string key] { get; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user