bevy_scene_bms_bindings/
lib.rs1#![allow(clippy::all)]
2#![allow(unused, deprecated, dead_code)]
3extern crate std;
4
5use bevy_app::{App, Plugin};
6use bevy_ecs::prelude::*;
7use bevy_mod_scripting_bindings::{
8 ReflectReference,
9 function::{
10 from::{M, R, V},
11 namespace::NamespaceBuilder,
12 },
13};
14use bevy_mod_scripting_derive::script_bindings;
15pub struct BevySceneScriptingPlugin;
16pub(crate) fn register_scene_component_info_functions(world: &mut World) {
17 bevy_mod_scripting_bindings::function::namespace::NamespaceBuilder::<
18 ::bevy_scene::SceneComponentInfo,
19 >::new(world)
20 .register_documented(
21 "clone",
22 |_self: R<::bevy_scene::SceneComponentInfo>| {
23 let output: V<::bevy_scene::SceneComponentInfo> = {
24 {
25 let output: V<::bevy_scene::SceneComponentInfo> =
26 <::bevy_scene::SceneComponentInfo as ::std::clone::Clone>::clone(&_self)
27 .into();
28 output
29 }
30 };
31 output
32 },
33 "",
34 &["_self"],
35 );
36 let registry = world.get_resource_or_init::<AppTypeRegistry>();
37 let mut registry = registry.write();
38 registry
39 .register_type_data::<
40 ::bevy_scene::SceneComponentInfo,
41 bevy_mod_scripting_bindings::MarkAsGenerated,
42 >();
43}
44impl Plugin for BevySceneScriptingPlugin {
45 fn build(&self, app: &mut App) {
46 let mut world = app.world_mut();
47 register_scene_component_info_functions(&mut world);
48 }
49}