2020-01-10 00:33:38 +00:00
|
|
|
pub mod comp;
|
|
|
|
pub mod sys;
|
|
|
|
|
2020-06-28 15:21:12 +00:00
|
|
|
use crate::audio::sfx::SfxEventItem;
|
2020-11-16 23:32:23 +00:00
|
|
|
use common::{event::EventBus, outcome::Outcome};
|
2020-01-10 00:33:38 +00:00
|
|
|
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>();
|
2020-11-16 23:32:23 +00:00
|
|
|
world.insert(Vec::<Outcome>::new());
|
2020-06-28 15:21:12 +00:00
|
|
|
|
|
|
|
// Voxygen event buses
|
|
|
|
world.insert(EventBus::<SfxEventItem>::default());
|
2020-01-10 00:33:38 +00:00
|
|
|
}
|