veloren/common/src/comp/mod.rs

21 lines
470 B
Rust
Raw Normal View History

2019-01-02 19:22:01 +00:00
pub mod phys;
pub mod uid;
pub mod util;
2019-01-02 19:22:01 +00:00
// Reexports
pub use uid::{Uid, UidAllocator};
use specs::World as EcsWorld;
2019-01-02 17:23:31 +00:00
pub fn register_local_components(ecs_world: &mut EcsWorld) {
ecs_world.register::<Uid>();
ecs_world.add_resource(UidAllocator::new());
ecs_world.register::<util::New>();
2019-01-02 19:22:01 +00:00
ecs_world.register::<phys::Pos>();
ecs_world.register::<phys::Vel>();
ecs_world.register::<phys::Dir>();
ecs_world.register::<phys::UpdateKind>();
2019-01-02 17:23:31 +00:00
}