Files
SpaceBots/Maps/MapGenerator/Biome.gd

23 lines
542 B
GDScript3
Raw Normal View History

2026-01-21 23:51:53 +01:00
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