Initial commit
This commit is contained in:
22
Maps/MapGenerator/Biome.gd
Normal file
22
Maps/MapGenerator/Biome.gd
Normal file
@@ -0,0 +1,22 @@
|
||||
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
|
||||
Reference in New Issue
Block a user