#[allow(unused_imports)] use log::{debug, error, info, trace, warn}; pub mod subengine_controller; pub use self::subengine_controller::SubengineController; pub mod subengine_pipeline; pub use self::subengine_pipeline::SubenginePipeline; pub mod test_subengine; pub use self::test_subengine::TestSubengine; //--SubEngine trait------------------------------------------------------------------------------------ /// A trait that should be implemented by all subengines running it the game engine. /// /// Allow the [`Controller`] to run custom subengines. pub trait Subengine { /// Main function of the subengine. Called byt the [`Controller`] for each frame. fn run(&self); }