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
18
use bevy::prelude::*;

use bevy_fnplugins::FnPluginsExt;

fn main() {
    App::new()
        .add_plugins(DefaultPlugins)
        .fn_plugins(example_plugin)
        .run();
}

fn example_plugin(app: &mut App) {
    app.add_systems(Update, health_system);
}

fn health_system() {
    println!("Player health: 100");
}