bevy/crates/bevy_state
Brandon Reinhart 4275669b07
impl Reflect + Clone for StateScoped (#14156)
# Objective

- Expand the flexibilty of StateScoped by adding Reflect and Clone
- This lets StateScoped be used in Clone Bundles, for example

```rust
#[derive(Component, Reflect, Clone)]
pub struct StateScoped<S: States>(pub S);
```

Notes:
- States are already Clone.
- Type registration is up to the user, but this is commonly the case
with reflected generic types.

## Testing

- Ran the examples.
2024-08-02 18:58:30 +02:00
..
macros Release 0.14.0 version bump (#14126) 2024-07-03 18:22:10 -07:00
src impl Reflect + Clone for StateScoped (#14156) 2024-08-02 18:58:30 +02:00
Cargo.toml Release 0.14.0 version bump (#14126) 2024-07-03 18:22:10 -07:00