bevy/crates/bevy_ecs/src/reflect
Brandon Reinhart 7570c9f3d2
Map entities from a resource when written to the world. (#13650)
# Objective

- Fix #10958 by performing entity mapping on the entities inside of
resources.

## Solution

- Resources can reflect(MapEntitiesResource) and impl MapEntities to get
access to the mapper during the world insert of the scene.

## Testing

- A test resource_entity_map_maps_entities confirms the desired
behavior.

## Changelog

- Added reflect(MapEntitiesResource) for mapping entities on Resources
in a DynamicScene.

fixes 10958
2024-06-03 16:33:24 +00:00
..
bundle.rs Make from_reflect_or_world also try ReflectDefault and improve some comments and panic messages (#12499) 2024-04-30 00:48:46 +00:00
component.rs Generalize component reflection to operate on FilteredEntityRef and FilteredEntityMut, not EntityRef and EntityMut. (#13549) 2024-05-28 14:02:09 +00:00
entity_commands.rs Move commands module into bevy::ecs::world (#12234) 2024-03-02 23:13:45 +00:00
from_world.rs fix some typos (#12038) 2024-02-22 18:55:22 +00:00
map_entities.rs Map entities from a resource when written to the world. (#13650) 2024-06-03 16:33:24 +00:00
mod.rs Map entities from a resource when written to the world. (#13650) 2024-06-03 16:33:24 +00:00
resource.rs Make from_reflect_or_world also try ReflectDefault and improve some comments and panic messages (#12499) 2024-04-30 00:48:46 +00:00