bevy/crates/bevy_app/src
BD103 b298d25414
Fix bevy_picking plugin suffixes (#16082)
# Objective

- `MeshPickingBackend` and `SpritePickingBackend` do not have the
`Plugin` suffix
- `DefaultPickingPlugins` is masquerading as a `Plugin` when in reality
it should be a `PluginGroup`
- Fixes #16081.

## Solution

- Rename some structures:

|Original Name|New Name|
|-|-|
|`MeshPickingBackend`|`MeshPickingPlugin`|
|`MeshPickingBackendSettings`|`MeshPickingSettings`|
|`SpritePickingBackend`|`SpritePickingPlugin`|
|`UiPickingBackendPlugin`|`UiPickingPlugin`|

- Make `DefaultPickingPlugins` a `PluginGroup`.
- Because `DefaultPickingPlugins` is within the `DefaultPlugins` plugin
group, I also added support for nested plugin groups to the
`plugin_group!` macro.

## Testing

- I used ripgrep to ensure all references were properly renamed.
- For the `plugin_group!` macro, I used `cargo expand` to manually
inspect the expansion of `DefaultPlugins`.

---

## Migration Guide

> [!NOTE]
>
> All 3 of the changed structures were added after 0.14, so this does
not need to be included in the 0.14 to 0.15 migration guide.

- `MeshPickingBackend` is now named `MeshPickingPlugin`.
- `MeshPickingBackendSettings` is now named `MeshPickingSettings`.
- `SpritePickingBackend` is now named `SpritePickingPlugin`.
- `UiPickingBackendPlugin` is now named `UiPickingPlugin`.
- `DefaultPickingPlugins` is now a a `PluginGroup` instead of a
`Plugin`.
2024-10-27 21:17:18 +01:00
..
app.rs Migrate from Query::single and friends to Single (#15872) 2024-10-13 20:32:06 +00:00
lib.rs Documentation for variadics (#15387) 2024-10-02 12:48:36 +00:00
main_schedule.rs Simpler lint fixes: makes ci lints work but disables a lint for now (#15376) 2024-09-24 11:42:59 +00:00
panic_handler.rs Simpler lint fixes: makes ci lints work but disables a lint for now (#15376) 2024-09-24 11:42:59 +00:00
plugin_group.rs Fix bevy_picking plugin suffixes (#16082) 2024-10-27 21:17:18 +01:00
plugin.rs Documentation for variadics (#15387) 2024-10-02 12:48:36 +00:00
schedule_runner.rs Add core and alloc over std Lints (#15281) 2024-09-27 00:59:59 +00:00
sub_app.rs Add core and alloc over std Lints (#15281) 2024-09-27 00:59:59 +00:00
terminal_ctrl_c_handler.rs Add core and alloc over std Lints (#15281) 2024-09-27 00:59:59 +00:00