mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
Reflect derived traits on all components and resources: bevy_state (#15228)
Solves https://github.com/bevyengine/bevy/issues/15187 for bevy_state
This commit is contained in:
parent
07e79f3e9f
commit
b38cc9e7b0
1 changed files with 2 additions and 2 deletions
|
@ -52,7 +52,7 @@ use bevy_reflect::prelude::ReflectDefault;
|
||||||
#[cfg_attr(
|
#[cfg_attr(
|
||||||
feature = "bevy_reflect",
|
feature = "bevy_reflect",
|
||||||
derive(bevy_reflect::Reflect),
|
derive(bevy_reflect::Reflect),
|
||||||
reflect(Resource)
|
reflect(Resource, Debug, PartialEq)
|
||||||
)]
|
)]
|
||||||
pub struct State<S: States>(pub(crate) S);
|
pub struct State<S: States>(pub(crate) S);
|
||||||
|
|
||||||
|
@ -118,7 +118,7 @@ impl<S: States> Deref for State<S> {
|
||||||
#[cfg_attr(
|
#[cfg_attr(
|
||||||
feature = "bevy_reflect",
|
feature = "bevy_reflect",
|
||||||
derive(bevy_reflect::Reflect),
|
derive(bevy_reflect::Reflect),
|
||||||
reflect(Resource, Default)
|
reflect(Resource, Default, Debug)
|
||||||
)]
|
)]
|
||||||
pub enum NextState<S: FreelyMutableState> {
|
pub enum NextState<S: FreelyMutableState> {
|
||||||
/// No state transition is pending
|
/// No state transition is pending
|
||||||
|
|
Loading…
Reference in a new issue