mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-12 14:51:51 +09:00
Former-commit-id: f924467637c8e34ecc9b2ffd00b343253c40aaf7 Former-commit-id: 7779de4420c27e06ee17e8576b643c366d434ef8
25 lines
718 B
Kotlin
25 lines
718 B
Kotlin
package com.torvald.terrarum.console
|
|
|
|
import com.torvald.terrarum.langpack.Lang
|
|
|
|
/**
|
|
* Created by minjaesong on 16-03-22.
|
|
*/
|
|
class Help : ConsoleCommand {
|
|
override fun execute(args: Array<String>) {
|
|
val echo = Echo()
|
|
if (args.size == 1) {
|
|
for (i in 1..6) echo.execute(Lang["HELP_OTF_MAIN_TEXT_$i"])
|
|
}
|
|
else if (args[1].toLowerCase() == "slow") {
|
|
for (i in 1..4) echo.execute(Lang["HELP_OTF_SLOW_TEXT_$i"])
|
|
}
|
|
else {
|
|
for (i in 1..6) echo.execute(Lang["HELP_OTF_MAIN_TEXT_$i"])
|
|
}
|
|
}
|
|
|
|
override fun printUsage() {
|
|
Echo().execute("Prints some utility functions assigned to function row of the keyboard.")
|
|
}
|
|
} |