Skip to content

Commit

Permalink
1.2 add biome map type (#5)
Browse files Browse the repository at this point in the history
* added biome maptype
  • Loading branch information
mysticdrew authored Jan 23, 2022
1 parent e8766db commit b27cbce
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/main/kotlin/info/journeymap/tools/constants/MapType.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ enum class MapType(val type: String) {
SURFACE_DAY("Surface (Day)"),
SURFACE_NIGHT("Surface (Night)"),
SURFACE_TOPO("Surface (Topographic)"),
BIOME("Biome"),
UNDERGROUND("Underground");

override fun toString(): String {
Expand Down
2 changes: 2 additions & 0 deletions src/main/kotlin/info/journeymap/tools/models/Dimension.kt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class Dimension(val directory: File) {
"day" -> mapTypes.add(MapType.SURFACE_DAY)
"night" -> mapTypes.add(MapType.SURFACE_NIGHT)
"topo" -> mapTypes.add(MapType.SURFACE_TOPO)
"biome" -> mapTypes.add(MapType.BIOME)
}
}
}
Expand All @@ -48,6 +49,7 @@ class Dimension(val directory: File) {
MapType.SURFACE_DAY -> this.directory.resolve("day")
MapType.SURFACE_NIGHT -> this.directory.resolve("night")
MapType.SURFACE_TOPO -> this.directory.resolve("topo")
MapType.BIOME -> this.directory.resolve("biome")

else -> null
}
Expand Down
1 change: 0 additions & 1 deletion src/main/kotlin/info/journeymap/tools/models/World.kt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ class World(val directory: File) {

this.directory.listFiles()!!.forEach {
val dimension = Dimension(it)
println(dimension)
if (dimension.mapTypes.isNotEmpty() || dimension.layers.isNotEmpty()) {
dimensions.add(dimension)
}
Expand Down

0 comments on commit b27cbce

Please sign in to comment.