I'm building a game that is procedurally generated. The world is separated into biomes and each biome has their own rooms.
Each biome constructs its graph which contains the room structure:
Then the biome chooses the right rooms from the prefabs I've made or just construct one according to a "basic prefab".
I was wondering how I could implement this factory system in Godot.
My inital thought was to preload every room prefabs and then construct a dictionnary according to their properties but once I've preloaded them I can't read their properties they aren't instantiated.
Would it cause problem at a large scale to instantiate them, read their properties and then destroy them ?
Or have you any other idea on how to implement it ?