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