Skip to content

Jecs v0.4.0

Latest
Compare
Choose a tag to compare
@Ukendio Ukendio released this 17 Nov 18:06
· 22 commits to main since this release
3cde5c8

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
  • [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
    • Removed query:replace
  • [luau]:
    • Fixed query:archetypes not taking self
    • Changed so that the jecs.Pair type now returns the first element's type so you won't need to typecast anymore.

New Contributors

Full Changelog: v0.3.2...v0.4.0