mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-11 19:14:05 +09:00
GameWorld: adding "worldIndex"; more save/load stuffs
This commit is contained in:
@@ -231,7 +231,8 @@ open class Ingame(batch: SpriteBatch) : IngameInstance(batch) {
|
||||
|
||||
|
||||
// init map as chosen size
|
||||
gameworld = GameWorldExtension(worldParams.width, worldParams.height)
|
||||
gameworld = GameWorldExtension(1, worldParams.width, worldParams.height)
|
||||
gameworldCount++
|
||||
world = gameworld as GameWorld
|
||||
|
||||
// generate terrain for the map
|
||||
|
||||
@@ -7,7 +7,7 @@ import kotlin.properties.Delegates
|
||||
/**
|
||||
* Created by minjaesong on 2018-07-03.
|
||||
*/
|
||||
class GameWorldExtension(width: Int, height: Int): GameWorld(width, height) {
|
||||
class GameWorldExtension(worldIndex: Int, width: Int, height: Int): GameWorld(worldIndex, width, height) {
|
||||
|
||||
val time: WorldTime
|
||||
val economy = GameEconomy()
|
||||
|
||||
Reference in New Issue
Block a user