Jecs v0.3.0
Highlights
- Jecs is the first ECS to have implemented archetype deletion second only to flecs!
- Reached 121 stars!
- Added new creations to the addons page
Changelog
[world]
:- Added an index parameter to
world:target
- Added a way to change the components limit via
_G.JECS_HI_COMPONENT_ID
- Set it to whatever number you want but try to make it as close to the number of components you will use as possible
- Make sure to set this before calling jecs or else it will not work
- Added debug mode, enable via setting
_G.JECS_DEBUG
to true- Make sure to set this before calling jecs or else it will not work
- Added
world:cleanup
which is called to cleanup empty archetypes manually - Changed
world:delete
to delete archetypes that are dependent on the passed entity - Changed
world:delete
to delete entity's children before the entity to prevent cycles
- Added an index parameter to
[query]
:- Fixed the iterator to not drain by default
[typescript]
- Fixed entry point of the package.json file to be
src
rather thansrc/init
- Fixed
query.next
returning a query object whereas it would be expected to return a tuple containing the entity and the corresponding component values - Exported
query.archetypes
- Changed
pair
to return a number instead of an entity- Preventing direct usage of a pair as an entity while still allowing it to be used as a component
- Exported built-in components
ChildOf
andName
- Exported
world.parent
- Fixed entry point of the package.json file to be
New Contributors
- @ffrostfall made their first contribution in #114
- @hautajoki made their first contribution in #115
- @jakeundefinedz made their first contribution in #121
- @revvy02 made their first contribution in #122
- @Someon1e made their first contribution in #120
Full Changelog: v0.2.10...v0.3.0