mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +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 |