bevy_mod_scripting_functions/lib.rs
1#![allow(missing_docs)]
2
3use bevy::prelude::*;
4pub mod bevy_bindings;
5pub mod core;
6pub use core::*;
7
8/// A plugin that registers the core scripting functions.
9#[derive(Default)]
10pub struct ScriptFunctionsPlugin;
11
12impl Plugin for ScriptFunctionsPlugin {
13 fn build(&self, app: &mut App) {
14 register_bevy_bindings(app);
15 register_core_functions(app);
16
17 // TODO: if bevy ever does this itself we should remove this
18 let world_mut = app.world_mut();
19 world_mut.register_component::<ChildOf>();
20 world_mut.register_component::<Children>();
21 }
22}