mirror of
https://github.com/bevyengine/bevy
synced 2024-11-22 20:53:53 +00:00
02028d16b3
# 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. |
||
---|---|---|
.. | ||
macros | ||
src | ||
Cargo.toml |