Add printLine support for commands and implement basic UI controls rendering

This commit is contained in:
Stone_Red
2026-06-08 19:51:22 +02:00
parent fc71af028f
commit 8b900c9d58
14 changed files with 178 additions and 29 deletions
+2 -2
View File
@@ -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;
}