amethyst_test 0.15.3

Amethyst test utilities crate
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use amethyst::prelude::*;

/// State that returns `Trans::Pop` on `.update()`.
#[derive(Debug)]
pub struct PopState;

impl<T, E> State<T, E> for PopState
where
    E: Send + Sync + 'static,
{
    fn update(&mut self, _data: StateData<'_, T>) -> Trans<T, E> {
        Trans::Pop
    }
}