mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-15 04:54:05 +09:00
TilePropCodex is now object, torch flicker (WIP as all the torches are in unison)
Former-commit-id: df9c0e3a9ace2ba976da5e81f1f2d2217db541a0 Former-commit-id: 81a25a938023f318937e1f4ded15e6047fdf8864
This commit is contained in:
@@ -37,6 +37,7 @@ object CommandDict {
|
||||
Pair("settimedelta", SetTimeDelta()),
|
||||
Pair("help", Help()),
|
||||
Pair("version", Version()),
|
||||
Pair("seed", Seed()),
|
||||
|
||||
// Test codes
|
||||
Pair("bulletintest", SetBulletin()),
|
||||
|
||||
23
src/net/torvald/terrarum/console/Seed.kt
Normal file
23
src/net/torvald/terrarum/console/Seed.kt
Normal file
@@ -0,0 +1,23 @@
|
||||
package net.torvald.terrarum.console
|
||||
|
||||
import net.torvald.imagefont.GameFontBase
|
||||
import net.torvald.terrarum.Terrarum
|
||||
|
||||
/**
|
||||
* Created by minjaesong on 16-06-16.
|
||||
*/
|
||||
class Seed : ConsoleCommand {
|
||||
val ccG = GameFontBase.colToCode["g"]
|
||||
val ccW = GameFontBase.colToCode["w"]
|
||||
val ccY = GameFontBase.colToCode["y"]
|
||||
// tsalagi
|
||||
|
||||
override fun execute(args: Array<String>) {
|
||||
Echo().execute("${ccY}Map$ccW: $ccG${Terrarum.game.map.generatorSeed}")
|
||||
// TODO display randomiser seed
|
||||
}
|
||||
|
||||
override fun printUsage() {
|
||||
Echo().execute("prints out the generator seed of the current game.")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user