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::{
1010} ;
1111use crate :: * ;
1212pub 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 ) {
1515 let mut world = app. world_mut ( ) ;
1616 NamespaceBuilder :: < :: bevy:: core:: prelude:: Name > :: new ( world)
1717 . overwrite_script_function (
Original file line number Diff line number Diff line change @@ -9,8 +9,8 @@ use bevy_mod_scripting_core::{
99} ;
1010use crate :: * ;
1111pub 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 ) {
1414 let mut world = app. world_mut ( ) ;
1515 NamespaceBuilder :: < :: bevy:: ecs:: entity:: Entity > :: new ( world)
1616 . overwrite_script_function (
Original file line number Diff line number Diff line change @@ -11,8 +11,8 @@ use bevy_mod_scripting_core::{
1111} ;
1212use crate :: * ;
1313pub 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 ) {
1616 let mut world = app. world_mut ( ) ;
1717 NamespaceBuilder :: < :: bevy:: hierarchy:: prelude:: Children > :: new ( world)
1818 . overwrite_script_function (
Original file line number Diff line number Diff line change @@ -12,8 +12,8 @@ use bevy_mod_scripting_core::{
1212} ;
1313use crate :: * ;
1414pub 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 ) {
1717 let mut world = app. world_mut ( ) ;
1818 NamespaceBuilder :: < :: bevy:: input:: gamepad:: Gamepad > :: new ( world)
1919 . overwrite_script_function (
Original file line number Diff line number Diff line change @@ -9,8 +9,8 @@ use bevy_mod_scripting_core::{
99} ;
1010use crate :: * ;
1111pub 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 ) {
1414 let mut world = app. world_mut ( ) ;
1515 NamespaceBuilder :: < :: bevy:: math:: AspectRatio > :: new ( world)
1616 . overwrite_script_function (
Original file line number Diff line number Diff line change @@ -8,8 +8,8 @@ use bevy_mod_scripting_core::{
88};
99use crate::*;
1010pub 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) {
1313 let mut world = app.world_mut();
1414 NamespaceBuilder::<::std::sync::atomic::AtomicBool>::new(world)
1515 .overwrite_script_function(
Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ use bevy_mod_scripting_core::{
1010} ;
1111use crate :: * ;
1212pub 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 ) {
1515 let mut world = app. world_mut ( ) ;
1616 NamespaceBuilder :: < :: bevy:: time:: prelude:: Fixed > :: new ( world)
1717 . overwrite_script_function (
Original file line number Diff line number Diff line change @@ -13,8 +13,8 @@ use bevy_mod_scripting_core::{
1313} ;
1414use crate :: * ;
1515pub 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 ) {
1818 let mut world = app. world_mut ( ) ;
1919 NamespaceBuilder :: < :: bevy:: transform:: components:: GlobalTransform > :: new ( world)
2020 . overwrite_script_function (
Original file line number Diff line number Diff line change @@ -11,8 +11,8 @@ pub mod bevy_hierarchy;
1111pub mod bevy_ecs;
1212pub mod bevy_time;
1313pub 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 ) {
1616 bevy_reflect:: BevyReflectScriptingPlugin . build ( app) ;
1717 bevy_math:: BevyMathScriptingPlugin . build ( app) ;
1818 bevy_input:: BevyInputScriptingPlugin . build ( app) ;
You can’t perform that action at this time.
0 commit comments