File tree Expand file tree Collapse file tree 9 files changed +18
-18
lines changed
crates/bevy_mod_scripting_functions/src/bevy Expand file tree Collapse file tree 9 files changed +18
-18
lines changed Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ use bevy_mod_scripting_core::{
10
10
} ;
11
11
use crate :: * ;
12
12
pub struct BevyCoreScriptingPlugin ;
13
- impl bevy:: app:: Plugin for BevyCoreScriptingPlugin {
14
- fn build ( & self , app : & mut bevy:: prelude:: App ) {
13
+ impl :: bevy:: app:: Plugin for BevyCoreScriptingPlugin {
14
+ fn build ( & self , app : & mut :: bevy:: prelude:: App ) {
15
15
let mut world = app. world_mut ( ) ;
16
16
NamespaceBuilder :: < :: bevy:: core:: prelude:: Name > :: new ( world)
17
17
. overwrite_script_function (
Original file line number Diff line number Diff line change @@ -9,8 +9,8 @@ use bevy_mod_scripting_core::{
9
9
} ;
10
10
use crate :: * ;
11
11
pub struct BevyEcsScriptingPlugin ;
12
- impl bevy:: app:: Plugin for BevyEcsScriptingPlugin {
13
- fn build ( & self , app : & mut bevy:: prelude:: App ) {
12
+ impl :: bevy:: app:: Plugin for BevyEcsScriptingPlugin {
13
+ fn build ( & self , app : & mut :: bevy:: prelude:: App ) {
14
14
let mut world = app. world_mut ( ) ;
15
15
NamespaceBuilder :: < :: bevy:: ecs:: entity:: Entity > :: new ( world)
16
16
. overwrite_script_function (
Original file line number Diff line number Diff line change @@ -11,8 +11,8 @@ use bevy_mod_scripting_core::{
11
11
} ;
12
12
use crate :: * ;
13
13
pub struct BevyHierarchyScriptingPlugin ;
14
- impl bevy:: app:: Plugin for BevyHierarchyScriptingPlugin {
15
- fn build ( & self , app : & mut bevy:: prelude:: App ) {
14
+ impl :: bevy:: app:: Plugin for BevyHierarchyScriptingPlugin {
15
+ fn build ( & self , app : & mut :: bevy:: prelude:: App ) {
16
16
let mut world = app. world_mut ( ) ;
17
17
NamespaceBuilder :: < :: bevy:: hierarchy:: prelude:: Children > :: new ( world)
18
18
. overwrite_script_function (
Original file line number Diff line number Diff line change @@ -12,8 +12,8 @@ use bevy_mod_scripting_core::{
12
12
} ;
13
13
use crate :: * ;
14
14
pub struct BevyInputScriptingPlugin ;
15
- impl bevy:: app:: Plugin for BevyInputScriptingPlugin {
16
- fn build ( & self , app : & mut bevy:: prelude:: App ) {
15
+ impl :: bevy:: app:: Plugin for BevyInputScriptingPlugin {
16
+ fn build ( & self , app : & mut :: bevy:: prelude:: App ) {
17
17
let mut world = app. world_mut ( ) ;
18
18
NamespaceBuilder :: < :: bevy:: input:: gamepad:: Gamepad > :: new ( world)
19
19
. overwrite_script_function (
Original file line number Diff line number Diff line change @@ -9,8 +9,8 @@ use bevy_mod_scripting_core::{
9
9
} ;
10
10
use crate :: * ;
11
11
pub struct BevyMathScriptingPlugin ;
12
- impl bevy:: app:: Plugin for BevyMathScriptingPlugin {
13
- fn build ( & self , app : & mut bevy:: prelude:: App ) {
12
+ impl :: bevy:: app:: Plugin for BevyMathScriptingPlugin {
13
+ fn build ( & self , app : & mut :: bevy:: prelude:: App ) {
14
14
let mut world = app. world_mut ( ) ;
15
15
NamespaceBuilder :: < :: bevy:: math:: AspectRatio > :: new ( world)
16
16
. overwrite_script_function (
Original file line number Diff line number Diff line change @@ -8,8 +8,8 @@ use bevy_mod_scripting_core::{
8
8
};
9
9
use crate::*;
10
10
pub struct BevyReflectScriptingPlugin;
11
- impl bevy::app::Plugin for BevyReflectScriptingPlugin {
12
- fn build(&self, app: &mut bevy::prelude::App) {
11
+ impl :: bevy::app::Plugin for BevyReflectScriptingPlugin {
12
+ fn build(&self, app: &mut :: bevy::prelude::App) {
13
13
let mut world = app.world_mut();
14
14
NamespaceBuilder::<::std::sync::atomic::AtomicBool>::new(world)
15
15
.overwrite_script_function(
Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ use bevy_mod_scripting_core::{
10
10
} ;
11
11
use crate :: * ;
12
12
pub struct BevyTimeScriptingPlugin ;
13
- impl bevy:: app:: Plugin for BevyTimeScriptingPlugin {
14
- fn build ( & self , app : & mut bevy:: prelude:: App ) {
13
+ impl :: bevy:: app:: Plugin for BevyTimeScriptingPlugin {
14
+ fn build ( & self , app : & mut :: bevy:: prelude:: App ) {
15
15
let mut world = app. world_mut ( ) ;
16
16
NamespaceBuilder :: < :: bevy:: time:: prelude:: Fixed > :: new ( world)
17
17
. overwrite_script_function (
Original file line number Diff line number Diff line change @@ -13,8 +13,8 @@ use bevy_mod_scripting_core::{
13
13
} ;
14
14
use crate :: * ;
15
15
pub struct BevyTransformScriptingPlugin ;
16
- impl bevy:: app:: Plugin for BevyTransformScriptingPlugin {
17
- fn build ( & self , app : & mut bevy:: prelude:: App ) {
16
+ impl :: bevy:: app:: Plugin for BevyTransformScriptingPlugin {
17
+ fn build ( & self , app : & mut :: bevy:: prelude:: App ) {
18
18
let mut world = app. world_mut ( ) ;
19
19
NamespaceBuilder :: < :: bevy:: transform:: components:: GlobalTransform > :: new ( world)
20
20
. overwrite_script_function (
Original file line number Diff line number Diff line change @@ -11,8 +11,8 @@ pub mod bevy_hierarchy;
11
11
pub mod bevy_ecs;
12
12
pub mod bevy_time;
13
13
pub struct LuaBevyScriptingPlugin ;
14
- impl bevy:: app:: Plugin for LuaBevyScriptingPlugin {
15
- fn build ( & self , app : & mut bevy:: prelude:: App ) {
14
+ impl :: bevy:: app:: Plugin for LuaBevyScriptingPlugin {
15
+ fn build ( & self , app : & mut :: bevy:: prelude:: App ) {
16
16
bevy_reflect:: BevyReflectScriptingPlugin . build ( app) ;
17
17
bevy_math:: BevyMathScriptingPlugin . build ( app) ;
18
18
bevy_input:: BevyInputScriptingPlugin . build ( app) ;
You can’t perform that action at this time.
0 commit comments