#Determining which approach is best for building the geometry of my Tilemap

1 messages · Page 1 of 1 (latest)

drifting roost
#

Could somebody help me understand the key differences between these approaches, the result I need is a set of instanced geometry like the image.

Option A: Tilemap provides its Tile[,] to the builder, creating the full geometry for the map at once.
Option B: The new Tile provides the builder with itself, effectively making the Tile build its own geometry

Either option feels like there will be positives and negatives, but as the result will be identical with both, thats giving me a hard time for choosing

#

For context, what I'm doing at the moment is
Option C: The Builder itself gets the array from Tilemap and creates the full geometry for the map

#

I'm not happy with option C. I'd rather pass values to the builder and return a result from it

plucky bough
#

Id provide an array to the builder. Otherwise I presume Tile would require a builder instance to be provided in its constructor which seems like a bad idea