# 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. |
||
|---|---|---|
| .. | ||
| state | ||
| app.rs | ||
| condition.rs | ||
| lib.rs | ||
| state_scoped.rs | ||