bevy/crates/bevy_state/src
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
..
state fix docs around StateTransition and remove references to `apply_sta… (#13772) 2024-06-10 19:31:41 +02:00
app.rs Move StateTransitionSteps registration to states plugin (#13939) 2024-06-21 19:36:48 +02:00
condition.rs remove inaccurate warning from in_state (#13862) 2024-06-19 04:14:58 +02:00
lib.rs Add more granular system sets for state transition schedule ordering (#13763) 2024-06-10 19:31:41 +02:00
state_scoped.rs impl Reflect + Clone for StateScoped (#14156) 2024-08-02 18:58:30 +02:00