bevy/crates/bevy_state/src
Brandon Reinhart 02028d16b3
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-07-08 01:00:04 +00:00
..
state fix docs around StateTransition and remove references to `apply_sta… (#13772) 2024-06-10 13:23:14 +00:00
app.rs Move StateTransitionSteps registration to states plugin (#13939) 2024-06-20 00:57:40 +00:00
condition.rs remove inaccurate warning from in_state (#13862) 2024-06-16 16:06:45 +00:00
lib.rs Add more granular system sets for state transition schedule ordering (#13763) 2024-06-10 13:13:58 +00:00
state_scoped.rs impl Reflect + Clone for StateScoped (#14156) 2024-07-08 01:00:04 +00:00