bevy_fnplugins 0.1.1

A plugin for bevy that allows you to use functions as plugins
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use bevy_fnplugins::FnPluginsExt;

use bevy::prelude::*;

mod combat;
mod health;

use self::{combat::combat_plugin, health::health_plugin};

pub struct PlayerPlugin;

impl Plugin for PlayerPlugin {
    fn build(&self, app: &mut App) {
        app.fn_plugins((combat_plugin, health_plugin));
    }
}