23 lines
542 B
Plaintext
23 lines
542 B
Plaintext
extends Object
|
|
class_name Biome
|
|
|
|
var name: String
|
|
var roomList: RoomList
|
|
var starterRoom: RoomData
|
|
|
|
var spread: float
|
|
var priority: int #Biomes with a prio of 0 will always be placed, after Biomes of lower priority will be placed
|
|
|
|
#Place all prio 0 Biomes
|
|
#Then place x number of prio 1 biomes
|
|
#Then place y number of prio 2 biomes
|
|
# [...]
|
|
#Spread biomes
|
|
|
|
func _init(bName: String, rList: RoomList, sRoom: RoomData, bSpread: float, bPrio: int) -> void:
|
|
name = bName
|
|
roomList = rList
|
|
starterRoom = sRoom
|
|
spread = bSpread
|
|
priority = bPrio
|