mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-10 02:24:05 +09:00
still wip modularisation, game somehow boots
This commit is contained in:
27
src/net/torvald/terrarum/modulebasegame/console/Help.kt
Normal file
27
src/net/torvald/terrarum/modulebasegame/console/Help.kt
Normal file
@@ -0,0 +1,27 @@
|
||||
package net.torvald.terrarum.modulebasegame.console
|
||||
|
||||
import net.torvald.terrarum.console.ConsoleCommand
|
||||
import net.torvald.terrarum.console.Echo
|
||||
import net.torvald.terrarum.langpack.Lang
|
||||
|
||||
/**
|
||||
* Created by minjaesong on 2016-03-22.
|
||||
*/
|
||||
internal object Help : ConsoleCommand {
|
||||
override fun execute(args: Array<String>) {
|
||||
|
||||
if (args.size == 1) {
|
||||
for (i in 1..6) Echo(Lang["HELP_OTF_MAIN_$i"])
|
||||
}
|
||||
else if (args[1].toLowerCase() == "slow") {
|
||||
for (i in 1..4) Echo(Lang["HELP_OTF_SLOW_$i"])
|
||||
}
|
||||
else {
|
||||
for (i in 1..6) Echo(Lang["HELP_OTF_MAIN_$i"])
|
||||
}
|
||||
}
|
||||
|
||||
override fun printUsage() {
|
||||
Echo("Prints some utility functions assigned to function row of the keyboard.")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user