mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-13 03:54:06 +09:00
Former-commit-id: d1c81cf3207fff4dd311e9b6c3beb04c194aebc5 Former-commit-id: 26f5042ba41cd577e681a22465435945434c864b
23 lines
678 B
Kotlin
23 lines
678 B
Kotlin
package net.torvald.terrarum.console
|
|
|
|
import net.torvald.imagefont.GameFontBase
|
|
import net.torvald.terrarum.Terrarum
|
|
|
|
/**
|
|
* Created by minjaesong on 16-06-16.
|
|
*/
|
|
internal object Seed : ConsoleCommand {
|
|
val ccG = GameFontBase.colToCode["g"]
|
|
val ccW = GameFontBase.colToCode["w"]
|
|
val ccY = GameFontBase.colToCode["y"]
|
|
|
|
override fun execute(args: Array<String>) {
|
|
Echo("Map$ccW: $ccG${Terrarum.ingame.world.generatorSeed}")
|
|
println("[seed] Map$ccW: $ccG${Terrarum.ingame.world.generatorSeed}")
|
|
// TODO display randomiser seed
|
|
}
|
|
|
|
override fun printUsage() {
|
|
Echo("prints out the generator seed of the current game.")
|
|
}
|
|
} |