Skip to content

v0.2.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@recatek recatek released this 10 Jun 22:46
· 80 commits to main since this release
ac95267
  • Adds support for archetypes with Vec-like dynamic storage capacity. This can be used by setting the keyword dyn as the capacity value in the ecs_archetype! declaration. Worlds generated by ecs_world! now have a with_capacity function with arguments for each dynamic archetype to pre-allocate storage.
    • Fixed-capacity archetypes won't have arguments in with_capacity -- they are always allocated to their full fixed capacity on world creation.
  • Adds an Entity<_> pseudo-parameter to queries. This will match any archetype like EntityAny, but will yield a typed Entity<A> for the currently-matched archetype in the query body.
  • Adds a new 32_components crate feature to go up to 32 maximum components in a single archetype. Enabling this feature may impact compile times.