bevy_fnplugins 0.1.1

A plugin for bevy that allows you to use functions as plugins
Documentation
  • Coverage
  • 16.67%
    1 out of 6 items documented1 out of 2 items with examples
  • Size
  • Source code size: 111.44 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 105.72 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • spider-killer556

bevy_fnplugins

Set rust functions as bevy plugins

Versions

bevy bevy_fnplugins
0.12 0.1

Examples

use bevy::prelude::*;

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

fn example_plugin(app: &mut App) {
    app.add_system(Startup, hello_system);
}

fn hello_system() {
    println!("It works!");
}

For more examples, see the examples directory.