Skip to main content

fantasy_craft/utils/
plugins.rs

1use crate::prelude::{DirectionComponentLoader, LocalVisibleLoader, Plugin, StateComponentLoader, VisibleLoader};
2
3pub struct UtilsPlugin;
4
5impl Plugin for UtilsPlugin {
6    fn build(&self, app: &mut crate::prelude::App) {
7        app.scene_loader
8            .register("DirectionComponent", Box::new(DirectionComponentLoader))
9            .register("StateComponent", Box::new(StateComponentLoader))
10            .register("Visible", Box::new(VisibleLoader))
11            .register("LocalVisible", Box::new(LocalVisibleLoader));
12    }
13}