v0.2.0
Pre-release
Pre-release
- Adds support for archetypes with
Vec
-like dynamic storage capacity. This can be used by setting the keyworddyn
as the capacity value in theecs_archetype!
declaration. Worlds generated byecs_world!
now have awith_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.
- Fixed-capacity archetypes won't have arguments in
- Adds an
Entity<_>
pseudo-parameter to queries. This will match any archetype likeEntityAny
, but will yield a typedEntity<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.