-
Notifications
You must be signed in to change notification settings - Fork 3
Closed
Milestone
Description
Just as
#[derive(States, Debug, Default, Copy, Clone, PartialEq, Eq, Hash, Reflect)]
#[auto_init_state(plugin = MyPlugin)]
#[auto_register_state_type(plugin = MyPlugin)]
enum FooState {
#[default]
Start,
End,
}can be replaced with
#[auto_states(plugin = MyPlugin, derive, reflect, register, init)]
enum FooState {
#[default]
Start,
End,
}then
#[derive(SubStates, Debug, Default, Copy, Clone, PartialEq, Eq, Hash, Reflect)]
#[source(AppState = AppState::InGame)]
#[auto_init_sub_state(plugin = MyPlugin)]
#[auto_register_state_type(plugin = MyPlugin)]
enum GamePhase {
#[default]
Setup,
Battle,
Conclusion
}should be able to be replaced with
#[auto_sub_states(plugin = MyPlugin, derive, reflect, register, init)]
#[source(AppState = AppState::InGame)]
enum GamePhase {
#[default]
Setup,
Battle,
Conclusion
}Metadata
Metadata
Assignees
Labels
No labels