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:
minjaesong
2018-10-05 23:40:03 +09:00
parent ae1e99aa3e
commit 397b2a8795
36 changed files with 344 additions and 268 deletions

View File

@@ -7,7 +7,7 @@ import net.torvald.terrarum.gameworld.GameWorld
/**
* Created by minjaesong on 2016-09-08.
*/
class FixtureBasicTerminal(world: GameWorld, phosphor: Color) : FixtureBase(world) {
class FixtureBasicTerminal(phosphor: Color) : FixtureBase() {
/*val computer = TerrarumComputer(8)
val vt: Terminal = SimpleTextTerminal(phosphor, 80, 25, computer)

View File

@@ -6,7 +6,7 @@ import net.torvald.terrarum.gameworld.GameWorld
/**
* Created by minjaesong on 2016-09-08.
*/
open class FixtureComputerBase(world: GameWorld) : FixtureBase(world) {
open class FixtureComputerBase : FixtureBase() {
/** Connected terminal */
var terminal: FixtureBasicTerminal? = null