Trait dynec::world::Bundle

source ·
pub trait Bundle {
    // Provided methods
    fn register(&mut self, _builder: &mut Builder) { ... }
    fn populate(&mut self, _world: &mut World) { ... }
}
Expand description

A bundle encapsulates the systems and resources for a specific feature. This can be used by library crates to expose their features as a single API.

Provided Methods§

source

fn register(&mut self, _builder: &mut Builder)

Schedules the systems used by this bundle.

Scheduling a system automatically registers the archetypes and components used by the system.

source

fn populate(&mut self, _world: &mut World)

Populates the world with entities and global states.

Implementors§