Highlights
- Jecs now has entity recycling which will allow you to reuse 2^24 indexes 2^16 times each by giving them generations, giving you a possible range of 2^40 entities in total, you will never run out! Huge thanks to @centau and @SanderMertens for the guidance on the implementation of this!
- The query iterator has been simplified to keep the API more lightweight and transparent.
- Now that jecs is much more stable than before, I am going to take a pivot towards working on flamecs, a jecs wrapper for Flamework. Takes advantage of Flamework macros and type ID system for increased ergonomics.
Changelog
[world]
:- Added recycling to
world:entity
- If you see much larger entity ids, that is because its generation has been incremented
- Added recycling to
[query]
:- Removed
query:drain
- The default behaviour is simply to drain the iterator
- Removed
query:next
- Just call the iterator function returned by
query:iter
directly if you want to get the next results
- Just call the iterator function returned by
- Removed
query:replace
- Removed
[luau]
:- Fixed
query:archetypes
not takingself
- Changed so that the
jecs.Pair
type now returns the first element's type so you won't need to typecast anymore.
- Fixed
New Contributors
- @silly-spongus made their first contribution in #130
- @christopher-buss made their first contribution in #144
- @bortantle made their first contribution in #146
- @daolgierd made their first contribution in #152
- @metrowaii made their first contribution in #157
Full Changelog: v0.3.2...v0.4.0