fantasy-craft 0.0.2

A 2D / 2.5D game engine built on top of Macroquad and Hecs for the Foxvoid Ecosystem
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::prelude::{DirectionComponentLoader, LocalVisibleLoader, Plugin, StateComponentLoader, VisibleLoader};

pub struct UtilsPlugin;

impl Plugin for UtilsPlugin {
    fn build(&self, app: &mut crate::prelude::App) {
        app.scene_loader
            .register("DirectionComponent", Box::new(DirectionComponentLoader))
            .register("StateComponent", Box::new(StateComponentLoader))
            .register("Visible", Box::new(VisibleLoader))
            .register("LocalVisible", Box::new(LocalVisibleLoader));
    }
}