console command dictionary is now automatically filled using reflection

This commit is contained in:
minjaesong
2021-08-29 20:36:11 +09:00
parent 3fc6e28c4d
commit c610bd1ac6
28 changed files with 143 additions and 91 deletions

View File

@@ -7,6 +7,7 @@ import net.torvald.terrarum.ui.ConsoleWindow
/**
* Created by minjaesong on 2016-04-25.
*/
@ConsoleAlias("error")
internal object EchoError : ConsoleCommand {
override fun execute(args: Array<String>) {
val argsWoHeader = Array(args.size - 1) { args[it + 1] }