mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-12 19:44:05 +09:00
Former-commit-id: ffae41e5876e54e2e0aedb5a93092db8e8f75d01 Former-commit-id: 65883b385a205d47b76c60f18a91186c2be922b2
23 lines
623 B
Kotlin
23 lines
623 B
Kotlin
package net.torvald.terrarum.console
|
|
|
|
import net.torvald.imagefont.GameFontBase
|
|
import net.torvald.terrarum.Terrarum
|
|
import net.torvald.terrarum.ui.ConsoleWindow
|
|
|
|
/**
|
|
* Created by minjaesong on 16-04-25.
|
|
*/
|
|
class Error : ConsoleCommand {
|
|
override fun execute(args: Array<String>) {
|
|
val argsWoHeader = Array<String>(args.size - 1, {it -> args[it + 1]})
|
|
argsWoHeader.forEach { execute(it) }
|
|
}
|
|
|
|
fun execute(single_line: String) {
|
|
(Terrarum.ingame.consoleHandler.UI as ConsoleWindow).sendMessage("${GameFontBase.colToCode["r"]}$single_line")
|
|
}
|
|
|
|
override fun printUsage() {
|
|
|
|
}
|
|
} |