Interface IScriptSystem
Assembly: SociallyDistant.Framework.dll
Syntax
public interface IScriptSystem
Methods
GetGlobalCommand(string)
Declaration
IScriptCommand? GetGlobalCommand(string commandName)
Parameters
Type |
Name |
Description |
string |
commandName |
|
Returns
RegisterGlobalCommand(string, IScriptCommand)
Declaration
void RegisterGlobalCommand(string commandName, IScriptCommand command)
Parameters
RegisterHookListener(string, IHookListener)
Declaration
void RegisterHookListener(string hookName, IHookListener listener)
Parameters
RunCommandAsync(string, string[], IScriptExecutionContext, IConsoleDriver?)
Declaration
Task RunCommandAsync(string name, string[] args, IScriptExecutionContext context, IConsoleDriver? console = null)
Parameters
Returns
RunHookAsync(string)
Declaration
Task RunHookAsync(string hookName)
Parameters
Type |
Name |
Description |
string |
hookName |
|
Returns
UnregisterGlobalCommand(string)
Declaration
void UnregisterGlobalCommand(string commandName)
Parameters
Type |
Name |
Description |
string |
commandName |
|
UnregisterHookListener(string, IHookListener)
Declaration
void UnregisterHookListener(string hookName, IHookListener listener)
Parameters