bevy/crates/bevy_ecs/src/world
Mason Boeman 2b6bfdb5ea
Add dynamic slice based variants of get_many_entities methods (#13584)
# Objective

Add slice based variants of existing `get_many_entities` functions on
`World`. This allows for a collection of entries to be looked up mutably
or immutably instead of requiring a compile time constant number.

## Solution

We just take slices and return Vectors.

the following functions have been added:
- `get_many_entities_dynamic`
- `get_many_entities_dynamic_mut`
- `get_many_entities_from_set_mut`

## Testing

- Doc tests, which pass when run through Miri
2024-06-04 15:29:51 +00:00
..
command_queue.rs Refactor command application for more consistency (#13249) 2024-05-28 12:17:57 +00:00
deferred_world.rs Refactor command application for more consistency (#13249) 2024-05-28 12:17:57 +00:00
entity_ref.rs Add ability to clear all components on an entity via EntityWorldMut (#13588) 2024-05-31 16:42:03 +00:00
error.rs Replace all labels with interned labels (#7762) 2023-10-25 21:39:23 +00:00
identifier.rs impl ExclusiveSystemParam for WorldId (#11164) 2024-01-01 15:59:53 +00:00
mod.rs Add dynamic slice based variants of get_many_entities methods (#13584) 2024-06-04 15:29:51 +00:00
spawn_batch.rs Component Lifecycle Hooks and a Deferred World (#10756) 2024-03-01 14:59:22 +00:00
unsafe_world_cell.rs Refactor command application for more consistency (#13249) 2024-05-28 12:17:57 +00:00