libgdx / ashley

A Java entity system inspired by Ash & Artemis.
Apache License 2.0
875 stars 144 forks source link

Add/Remove system during iteration #311

Open fabiitch opened 1 year ago

fabiitch commented 1 year ago

Resolve https://github.com/libgdx/ashley/pull/217

System can be add and remove during iteration, operation are performed at end of update loop.

An other solution can be simply throw an exception if user try to add/remove during iteration.

An other better solution is to perform operation during loop. but it need a little of rework. (issues #312)

thx for reading