iyes_loopless 0.9.1

Composable alternatives to Bevy's States/FixedTimestep/RunCriteria
Documentation
//! Composable Alternatives to Bevy's RunCriteria, States, FixedTimestep
//! 
//! This crate offers alternatives to the Run Criteria, States, and FixedTimestep
//! scheduling features currently offered by the Bevy game engine.
//! 
//! The ones provided by this crate do not use "looping stages", and can therefore
//! be combined/composed together elegantly, solving some of the most annoying
//! usability limitations of the respective APIs in Bevy.

#![warn(missing_docs)]

pub mod condition;
#[cfg(feature = "fixedtimestep")]
pub mod fixedtimestep;
#[cfg(feature = "states")]
pub mod state;

/// Prelude: convenient import for all the user-facing APIs provided by the crate
pub mod prelude {
    pub use crate::condition::{ConditionHelpers, IntoConditionalSystem, ConditionSet, AddConditionalToSet};

    #[cfg(feature = "fixedtimestep")]
    pub use crate::fixedtimestep::{FixedTimesteps, FixedTimestepStage};
    #[cfg(feature = "fixedtimestep")]
    pub use crate::fixedtimestep::schedule::ScheduleLooplessFixedTimestepExt;
    #[cfg(all(feature = "fixedtimestep", feature = "app"))]
    pub use crate::fixedtimestep::app::AppLooplessFixedTimestepExt;

    #[cfg(feature = "states")]
    pub use crate::state::{CurrentState, NextState, StateTransitionStage};
    #[cfg(feature = "states")]
    pub use crate::state::schedule::ScheduleLooplessStateExt;
    #[cfg(all(feature = "states", feature = "app"))]
    pub use crate::state::app::AppLooplessStateExt;
}