bevy-input-sequence 0.10.0

Recognizes and acts on input sequences
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use bevy::reflect::Reflect;
use std::time::Duration;
/// A time limit specified as frame counts or duration.
#[derive(Clone, Debug, Reflect)]
pub enum TimeLimit {
    /// Time limit for frame count
    Frames(u32),
    /// Time limit for duration
    Duration(Duration),
}

impl From<Duration> for TimeLimit {
    #[inline(always)]
    fn from(duration: Duration) -> Self {
        Self::Duration(duration)
    }
}