2019-12-04 08:11:14 +00:00
|
|
|
pub use glam as math;
|
2019-12-02 09:31:07 +00:00
|
|
|
|
2020-07-10 04:18:35 +00:00
|
|
|
pub mod child_builder;
|
2019-12-02 09:31:07 +00:00
|
|
|
pub mod components;
|
|
|
|
pub mod hierarchy_maintenance_system;
|
2020-07-10 04:18:35 +00:00
|
|
|
pub mod local_transform_systems;
|
2020-06-07 20:39:50 +00:00
|
|
|
pub mod transform_propagate_system;
|
2020-07-10 04:18:35 +00:00
|
|
|
pub mod transform_systems;
|
|
|
|
pub mod world_child_builder;
|
2019-12-02 09:31:07 +00:00
|
|
|
|
|
|
|
pub mod prelude {
|
2020-07-10 04:18:35 +00:00
|
|
|
pub use crate::{build_systems, child_builder::*, components::*, world_child_builder::*};
|
|
|
|
}
|
|
|
|
|
|
|
|
use bevy_ecs::{IntoQuerySystem, System};
|
|
|
|
|
|
|
|
// TODO: make this a plugin
|
|
|
|
pub fn build_systems() -> Vec<Box<dyn System>> {
|
|
|
|
let mut all_systems = Vec::with_capacity(5);
|
|
|
|
|
|
|
|
all_systems.append(&mut hierarchy_maintenance_system::hierarchy_maintenance_systems());
|
|
|
|
all_systems.append(&mut local_transform_systems::local_transform_systems());
|
|
|
|
all_systems.append(&mut transform_systems::transform_systems());
|
|
|
|
all_systems.push(transform_propagate_system::transform_propagate_system.system());
|
|
|
|
|
|
|
|
all_systems
|
2019-12-02 09:31:07 +00:00
|
|
|
}
|