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
17
use bevy::prelude::*;
use bevy_fnplugins::FnPluginsExt;

fn main() {
    App::new()
        .add_plugins(DefaultPlugins)
        .fn_plugins((health_plugin, damage_plugin))
        .run();
}

fn health_plugin(_app: &mut App) {
    // Code ...
}

fn damage_plugin(_app: &mut App) {
    // Code ...
}