1
2
3
4
5
6
7
8
9
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<()>;
}