GitBrincie212 / Apel-Mod

Apel is a library that brings particle animations to the table with flexible behaviour and a clean developer interface. It promises also lots of predefined shapes & paths to help the developer on their particle scene
Other
2 stars 1 forks source link

Allow `#amount(int)` in ParticleCuboid.Builder #47

Closed DarthSharkie closed 2 months ago

DarthSharkie commented 2 months ago

Fixes #46

Cuboid no longer has a constructor with special handling for amount, and it can't easily be made clear on the builders that #amount(int) isn't intended for cuboid configuration. Therefore, take advantage of the builder's ability to perform logic before construction and see if the user set an integer amount. If so, convert to Vector3i as used by Cuboid.

Updates documentation to encourage the use of the Vector3i approach.

Other options: