2020-05-11 17:10:43 -04:00
|
|
|
|
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>
|
2020-09-28 21:32:53 -04:00
|
|
|
|
/// <param name="isTargetRequired">target required or not</param>
|
2020-05-11 17:10:43 -04:00
|
|
|
|
/// <param name="args">command arguments (name, is required)</param>
|
|
|
|
|
/// <param name="executeAction">action to peform when commmand is executed</param>
|
|
|
|
|
/// <returns></returns>
|
2020-09-28 21:32:53 -04:00
|
|
|
|
IManagerCommand CreateScriptCommand(string name, string alias, string description, string permission, bool isTargetRequired, IEnumerable<(string, bool)> args, Action<GameEvent> executeAction);
|
2020-05-11 17:10:43 -04:00
|
|
|
|
}
|
|
|
|
|
}
|