mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-12 16:18:07 -05:00
implement script plugin command registration - issue #132
This commit is contained in:
23
SharedLibraryCore/Interfaces/IScriptCommandFactory.cs
Normal file
23
SharedLibraryCore/Interfaces/IScriptCommandFactory.cs
Normal file
@ -0,0 +1,23 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SharedLibraryCore.Interfaces
|
||||
{
|
||||
/// <summary>
|
||||
/// defines capabilities of script command factory
|
||||
/// </summary>
|
||||
public interface IScriptCommandFactory
|
||||
{
|
||||
/// <summary>
|
||||
/// generate a new script command from parsed source
|
||||
/// </summary>
|
||||
/// <param name="name">name of command</param>
|
||||
/// <param name="alias">alias of command</param>
|
||||
/// <param name="description">description of command</param>
|
||||
/// <param name="permission">minimum required permission</param>
|
||||
/// <param name="args">command arguments (name, is required)</param>
|
||||
/// <param name="executeAction">action to peform when commmand is executed</param>
|
||||
/// <returns></returns>
|
||||
IManagerCommand CreateScriptCommand(string name, string alias, string description, string permission, IEnumerable<(string, bool)> args, Action<GameEvent> executeAction);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user