bevy/crates/bevy_scene/src
poopy 2ea8d35900
explicitly mention component in methods on DynamicSceneBuilder (#15210)
# Objective

The method names on `DynamicSceneBuilder` are misleading. Specifically,
`deny_all` and `allow_all` implies everything will be denied/allowed,
including all components and resources. In reality, these methods only
apply to components (which is mentioned in the docs).

## Solution

- change `deny_all` and `allow_all` to `deny_all_components` and
`allow_all_components`
- also, change the remaining methods to mention component where it makes
sense

We could also add the `deny_all` and `allow_all` methods back later,
only this time, they would deny/allow both resources and components.

## Showcase

### Before
```rust
let builder = DynamicSceneBuilder::from_world(world)
    .deny_all()
    .deny_all_resources()
    .allow::<MyComponent>();
```

### After
```rust
let builder = DynamicSceneBuilder::from_world(world)
    .deny_all_components()
    .deny_all_resources()
    .allow_component::<MyComponent>();
```

## Migration Guide

the following invocations on `DynamicSceneBuilder` should be changed by
users
- `with_filter` -> `with_component_filter`
- `allow` -> `allow_component`
- `deny` -> `deny_component`
- `allow_all` -> `allow_all_components`
- `deny_all` -> `deny_all_components`
2024-09-15 14:37:32 +00:00
..
bundle.rs Implement clone for most bundles. (#12993) 2024-04-16 16:37:09 +00:00
dynamic_scene.rs reflect: implement the unique reflect rfc (#7207) 2024-08-12 17:01:41 +00:00
dynamic_scene_builder.rs explicitly mention component in methods on DynamicSceneBuilder (#15210) 2024-09-15 14:37:32 +00:00
lib.rs Unify crate-level preludes (#15080) 2024-09-08 17:10:57 +00:00
scene.rs Align Scene::write_to_world_with to match DynamicScene::write_to_world_with (#13855) 2024-07-15 14:04:09 +00:00
scene_filter.rs Make builder types take and return Self (#10001) 2023-10-09 19:46:17 +00:00
scene_loader.rs Optimize common usages of AssetReader (#14082) 2024-07-01 19:59:42 +00:00
scene_spawner.rs Change SceneInstanceReady to trigger an observer. (#13859) 2024-07-30 21:23:48 +00:00
serde.rs Use FromReflect when extracting entities in dynamic scenes (#15174) 2024-09-15 14:33:39 +00:00