mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-14 23:56:07 +09:00
abolished a need to pass world as parametre
+ simply changing the single variable (ingame.world) will update all the renderer's behaviour + somehow my git changelogs are exploding
This commit is contained in:
@@ -9,6 +9,7 @@ import net.torvald.terrarum.worlddrawer.LightmapRenderer
|
||||
import net.torvald.terrarum.worlddrawer.FeaturesDrawer
|
||||
import net.torvald.terrarum.Terrarum.mouseTileX
|
||||
import net.torvald.terrarum.Terrarum.mouseTileY
|
||||
import net.torvald.terrarum.gameworld.GameWorld
|
||||
import net.torvald.terrarum.modulebasegame.Ingame
|
||||
import net.torvald.terrarum.modulebasegame.gameworld.GameWorldExtension
|
||||
|
||||
@@ -29,7 +30,10 @@ class BasicDebugInfoWindow : UICanvas() {
|
||||
private var ydelta = 0.0
|
||||
|
||||
private val ingame = Terrarum.ingame!! as Ingame
|
||||
private val world = ingame.world as GameWorldExtension
|
||||
|
||||
private val world: GameWorldExtension
|
||||
get() = Terrarum.ingame!!.world as GameWorldExtension
|
||||
|
||||
|
||||
override fun updateUI(delta: Float) {
|
||||
val player = ingame.actorNowPlaying
|
||||
|
||||
Reference in New Issue
Block a user