mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-11 19:14:05 +09:00
Former-commit-id: d04fc939a659fc4a6b952d64894bd28edf97bc38 Former-commit-id: 6c20526f3bdda2d9d08dc156b3b0fe271e89bffb
24 lines
595 B
Kotlin
24 lines
595 B
Kotlin
package net.torvald.terrarum.console
|
|
|
|
import net.torvald.terrarum.mapdrawer.LightmapRenderer
|
|
|
|
/**
|
|
* Created by minjaesong on 16-09-07.
|
|
*/
|
|
internal object TestGetLight : ConsoleCommand {
|
|
/**
|
|
* Args 0: command given
|
|
* Args 1: first argument
|
|
*
|
|
* e.g. in ```setav mass 74```, zeroth args will be ```setav```.
|
|
*/
|
|
override fun execute(args: Array<String>) {
|
|
val x = args[1].toInt()
|
|
val y = args[2].toInt()
|
|
val l = LightmapRenderer.getLightRawPos(16, 16)
|
|
EchoConsole.execute(l.toString())
|
|
}
|
|
|
|
override fun printUsage() {
|
|
}
|
|
} |