world portal: world search is now new world

This commit is contained in:
minjaesong
2023-06-19 00:50:55 +09:00
parent 138c6d22d2
commit 9e9064dd55
4 changed files with 39 additions and 19 deletions

View File

@@ -39,10 +39,12 @@ class SimpleGameWorld : GameWorld() {
override lateinit var layerTerrain: BlockLayer
}
open class GameWorld() : Disposable {
open class GameWorld(
val worldIndex: UUID // should not be immutable as JSON loader will want to overwrite it
) : Disposable {
constructor() : this(UUID.randomUUID())
// var worldName: String = "New World"
var worldIndex: UUID = UUID.randomUUID() // should not be immutable as JSON loader will want to overwrite it
var worldCreator: UUID = UUID(0L,0L) // TODO record a value to this
var width: Int = 999; private set
var height: Int = 999; private set