1 2 3 4 5 6 7 8 9 10 11
//! Provides a trait for adding bundles of systems to a dispatcher.
use specs::prelude::DispatcherBuilder;
error_chain! {}
/// A bundle of ECS components, resources and systems.
pub trait SystemBundle<'a, 'b> {
/// Build and add ECS resources, register components, add systems etc to the Application.
fn build(self, dispatcher: &mut DispatcherBuilder<'a, 'b>) -> Result<()>;
}