overhaul provider structure
This commit is contained in:
15
OwnChar.Server/Commands/IServerCommand.cs
Normal file
15
OwnChar.Server/Commands/IServerCommand.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using Pilz.Plugins.Advanced;
|
||||
|
||||
namespace OwnChar.Server.Commands
|
||||
{
|
||||
public interface IServerCommand
|
||||
{
|
||||
// Shared
|
||||
public const string FeatureCode = "ownchar.server.command";
|
||||
public IEnumerable<IServerCommand> Commands => PluginFeatureController.Instance.Features.Get(FeatureCode).Cast<PluginFunction>().Select(f => (IServerCommand)f.Execute()!);
|
||||
|
||||
// Interface
|
||||
public string Command { get; }
|
||||
public string Description { get; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user