bevy/crates/bevy_ecs/src
Christian Hughes 79f6fcd1eb
EntityRef/Mut get_components (immutable variants only) (#15089)
# Objective

Smaller scoped version of #13375 without the `_mut` variants which
currently have unsoundness issues.

## Solution

Same as #13375, but without the `_mut` variants.

## Testing

- The same test from #13375 is reused.

---

## Migration Guide

- Renamed `FilteredEntityRef::components` to
`FilteredEntityRef::accessed_components` and
`FilteredEntityMut::components` to
`FilteredEntityMut::accessed_components`.

---------

Co-authored-by: Carter Anderson <mcanders1@gmail.com>
Co-authored-by: Periwink <charlesbour@gmail.com>
2024-09-09 16:29:44 +00:00
..
entity Migrated NonZero* to NonZero<*> (#14978) 2024-08-30 02:37:47 +00:00
event Commands::send_event (#14933) 2024-08-27 23:43:40 +00:00
identifier Migrated NonZero* to NonZero<*> (#14978) 2024-08-30 02:37:47 +00:00
observer Add observer to Trigger (#15066) 2024-09-09 16:23:14 +00:00
query Use associated type bounds for iter_many and friends (#15040) 2024-09-09 16:24:39 +00:00
reflect Use map_unchanged in reflection instead of creating a Mut manually. (#14692) 2024-08-15 14:26:57 +00:00
schedule Add condition_changed and condition_became_true to common_conditions (#14917) 2024-08-26 18:32:44 +00:00
storage Migrated NonZero* to NonZero<*> (#14978) 2024-08-30 02:37:47 +00:00
system Use associated type bounds for iter_many and friends (#15040) 2024-09-09 16:24:39 +00:00
world EntityRef/Mut get_components (immutable variants only) (#15089) 2024-09-09 16:29:44 +00:00
archetype.rs Fix observer unregistering unsetting archetype flags (#14963) 2024-08-30 00:43:56 +00:00
batching.rs Parallel event reader (#12554) 2024-04-22 16:37:42 +00:00
bundle.rs Required Components (#14791) 2024-08-27 20:22:23 +00:00
change_detection.rs Add filter_map_unchanged to Mut<T> (#14837) 2024-08-22 17:51:21 +00:00
component.rs Required Components (#14791) 2024-08-27 20:22:23 +00:00
intern.rs Moves intern and label modules into bevy_ecs (#12772) 2024-04-08 15:34:11 +00:00
label.rs Add mappings to EntityMapper (#13727) 2024-06-08 12:52:23 +00:00
lib.rs Unify crate-level preludes (#15080) 2024-09-08 17:10:57 +00:00
removal_detection.rs Created an EventMutator for when you want to mutate an event before reading (#13818) 2024-07-08 14:53:06 +00:00
traversal.rs Minimal Bubbling Observers (#13991) 2024-07-15 13:39:41 +00:00