teoxoy / factorio-blueprint-editor

A feature-rich Factorio Blueprint Editor
https://fbe.teoxoy.com
MIT License
299 stars 61 forks source link

Blueprint tools and additive paste #235

Closed KenCoder closed 2 years ago

KenCoder commented 2 years ago

Closes #9 - both rotate and flip are supported. Also addressed #237 - additive paste.

I did a bunch of testing by creating a blueprint with every entity and comparing the results of the rotate in FBE to a rotate in Factorio. I got train tracks mostly working, though there are some issues, they are existing track issues which should be fixed by full train support. I did have to change some of the possible rotations, to match Factorio.

As you can see, the approach I took as to create a new, modified blueprint by rotating the entities. It's the simplest way I could come up with to implement it.

teoxoy commented 2 years ago

Other than the small suggested change, it looks good!

The copy based solution should work fine for now. In the future, if other features require more involved update propagation we can use events within the paint containers as well.

Thanks for the contribution!