bevy/crates/bevy_state/src
Phoqinu c6147e57f4
Make StateTransitionSteps public (#16612)
# Objective

- Fixes #16594 

## Solution

- `StateTransitionSteps` was made public

## Testing

- _Did you test these changes? If so, how?_
 I am now able to import it and use it.

---

## Showcase

- Users can now write their own state scoped resources

```rust
    fn init_state_scoped_resource<R: Resource + FromWorld>(
        &mut self,
        state: impl States,
    ) -> &mut Self {
        use bevy::state::state::StateTransitionSteps; // this PR in action

        self.add_systems(
            StateTransition,
            (
                clear_state_scoped_resource_impl::<_, R>(state.clone())
                    .in_set(StateTransitionSteps::ExitSchedules), // and here
                init_state_scoped_resource_impl::<_, R>(state)
                    .in_set(StateTransitionSteps::EnterSchedules), // here too
            ),
        );

        self
    }
```
2024-12-03 19:48:00 +00:00
..
state Make StateTransitionSteps public (#16612) 2024-12-03 19:48:00 +00:00
app.rs enable_state_scoped_entities() as a derive attribute (#16180) 2024-12-01 20:09:36 +00:00
commands.rs Rename Add to Queue for methods with deferred semantics (#15234) 2024-09-17 00:17:49 +00:00
condition.rs remove inaccurate warning from in_state (#13862) 2024-06-16 16:06:45 +00:00
lib.rs Fix typo in bevy_ecs (#16195) 2024-10-31 19:20:01 +00:00
reflect.rs Add core and alloc over std Lints (#15281) 2024-09-27 00:59:59 +00:00
state_scoped.rs enable_state_scoped_entities() as a derive attribute (#16180) 2024-12-01 20:09:36 +00:00
state_scoped_events.rs Add core and alloc over std Lints (#15281) 2024-09-27 00:59:59 +00:00