Grow map bounds to accommodate placed structures #1780
Labels
Z-Developer Experience
This issue seeks to make life easier for developers writing Scenarios or other Swarm code.
Z-Feature
A new feature to be added to the game.
Currently, "structures" may be placed only inside the bounds of their parent map rectangle. Otherwise, they will be cropped to the parent bounds.
This is problematic if we want to place structures at great distances from each other; currently, it would require that an explicit cell grid of great size be included in the YAML file.
Design
The truncating behavior that is the status quo should be preserved as the default.
A new property of the
placement
object in YAML namedtruncate
could default toTrue
. When overridden toFalse
, structures that are overlaid atop a base structure will enlarge its area instead of being truncated.Importantly, the "origin" must be made consistent in the base structure, when multiple substructures are to be overlaid upon it. I think that the current behavior is that the upper left cell is treated as the origin. If one of the substructure placements happens to enlarge the area to the left, this could move the origin and mess up subsequent placements.
The text was updated successfully, but these errors were encountered: