mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
18 lines
404 B
Rust
18 lines
404 B
Rust
pub mod comp;
|
|
pub mod sys;
|
|
|
|
use crate::audio::sfx::SfxEventItem;
|
|
use common::event::EventBus;
|
|
use specs::{Entity, World, WorldExt};
|
|
|
|
#[derive(Copy, Clone, Debug)]
|
|
pub struct MyEntity(pub Entity);
|
|
|
|
pub fn init(world: &mut World) {
|
|
world.register::<comp::HpFloaterList>();
|
|
world.register::<comp::Interpolated>();
|
|
|
|
// Voxygen event buses
|
|
world.insert(EventBus::<SfxEventItem>::default());
|
|
}
|