mirror of
https://github.com/Stone-Red-Code/RemSox.git
synced 2026-09-04 09:06:23 +02:00
Add printLine support for commands and implement basic UI controls rendering
This commit is contained in:
@@ -24,7 +24,7 @@ public static class CommandManager
|
||||
return commands.Values.OrderBy(command => command.Name);
|
||||
}
|
||||
|
||||
public static bool TryExecute(string input)
|
||||
public static bool TryExecute(string input, Action<string> printLine)
|
||||
{
|
||||
string trimmedInput = input.Trim();
|
||||
|
||||
@@ -51,7 +51,7 @@ public static class CommandManager
|
||||
arguments = trimmedInput.Substring(commandName.Length).TrimStart();
|
||||
}
|
||||
|
||||
entry.Value.Execute(arguments);
|
||||
entry.Value.Execute(arguments, printLine);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user