more inlining and minor performance tweaks on LightmapRenderer

This commit is contained in:
minjaesong
2017-06-12 04:04:54 +09:00
parent 980c92f213
commit 12c6f6fd04
15 changed files with 171 additions and 220 deletions

View File

@@ -47,7 +47,6 @@ object CommandDict {
"gsontest" to GsonTest,
"tips" to PrintRandomTips,
"langtest" to LangTest,
"testgetlight" to TestGetLight,
"spawnball" to SpawnPhysTestBall,
"spawntorch" to SpawnTikiTorch,
"musictest" to MusicTest,

View File

@@ -1,24 +0,0 @@
package net.torvald.terrarum.console
import net.torvald.terrarum.worlddrawer.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(x, y)
EchoConsole.execute(l.toString())
}
override fun printUsage() {
}
}