Skip to content

Commit 05ffc7e

Browse files
chore(codegen): update bevy bindings (#209)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 5050273 commit 05ffc7e

File tree

8 files changed

+49
-73
lines changed

8 files changed

+49
-73
lines changed

crates/bevy_mod_scripting_functions/src/bevy_bindings/bevy_core.rs

+5-8
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,11 @@
44
#![cfg_attr(rustfmt, rustfmt_skip)]
55
use super::bevy_ecs::*;
66
use super::bevy_reflect::*;
7-
use bevy_mod_scripting_core::{
8-
AddContextInitializer, StoreDocumentation,
9-
bindings::{
10-
ReflectReference,
11-
function::{
12-
from::{Ref, Mut, Val},
13-
namespace::NamespaceBuilder,
14-
},
7+
use bevy_mod_scripting_core::bindings::{
8+
ReflectReference,
9+
function::{
10+
from::{Ref, Mut, Val},
11+
namespace::NamespaceBuilder,
1512
},
1613
};
1714
use crate::*;

crates/bevy_mod_scripting_functions/src/bevy_bindings/bevy_ecs.rs

+5-8
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,11 @@
33
#![allow(unused, deprecated, dead_code)]
44
#![cfg_attr(rustfmt, rustfmt_skip)]
55
use super::bevy_reflect::*;
6-
use bevy_mod_scripting_core::{
7-
AddContextInitializer, StoreDocumentation,
8-
bindings::{
9-
ReflectReference,
10-
function::{
11-
from::{Ref, Mut, Val},
12-
namespace::NamespaceBuilder,
13-
},
6+
use bevy_mod_scripting_core::bindings::{
7+
ReflectReference,
8+
function::{
9+
from::{Ref, Mut, Val},
10+
namespace::NamespaceBuilder,
1411
},
1512
};
1613
use crate::*;

crates/bevy_mod_scripting_functions/src/bevy_bindings/bevy_hierarchy.rs

+5-8
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,11 @@
55
use super::bevy_ecs::*;
66
use super::bevy_reflect::*;
77
use super::bevy_core::*;
8-
use bevy_mod_scripting_core::{
9-
AddContextInitializer, StoreDocumentation,
10-
bindings::{
11-
ReflectReference,
12-
function::{
13-
from::{Ref, Mut, Val},
14-
namespace::NamespaceBuilder,
15-
},
8+
use bevy_mod_scripting_core::bindings::{
9+
ReflectReference,
10+
function::{
11+
from::{Ref, Mut, Val},
12+
namespace::NamespaceBuilder,
1613
},
1714
};
1815
use crate::*;

crates/bevy_mod_scripting_functions/src/bevy_bindings/bevy_input.rs

+5-8
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,11 @@ use super::bevy_ecs::*;
66
use super::bevy_reflect::*;
77
use super::bevy_core::*;
88
use super::bevy_math::*;
9-
use bevy_mod_scripting_core::{
10-
AddContextInitializer, StoreDocumentation,
11-
bindings::{
12-
ReflectReference,
13-
function::{
14-
from::{Ref, Mut, Val},
15-
namespace::NamespaceBuilder,
16-
},
9+
use bevy_mod_scripting_core::bindings::{
10+
ReflectReference,
11+
function::{
12+
from::{Ref, Mut, Val},
13+
namespace::NamespaceBuilder,
1714
},
1815
};
1916
use crate::*;

crates/bevy_mod_scripting_functions/src/bevy_bindings/bevy_math.rs

+14-17
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,11 @@
33
#![allow(unused, deprecated, dead_code)]
44
#![cfg_attr(rustfmt, rustfmt_skip)]
55
use super::bevy_reflect::*;
6-
use bevy_mod_scripting_core::{
7-
AddContextInitializer, StoreDocumentation,
8-
bindings::{
9-
ReflectReference,
10-
function::{
11-
from::{Ref, Mut, Val},
12-
namespace::NamespaceBuilder,
13-
},
6+
use bevy_mod_scripting_core::bindings::{
7+
ReflectReference,
8+
function::{
9+
from::{Ref, Mut, Val},
10+
namespace::NamespaceBuilder,
1411
},
1512
};
1613
use crate::*;
@@ -292,22 +289,22 @@ impl ::bevy::app::Plugin for BevyMathScriptingPlugin {
292289
)
293290
.register(
294291
"mul",
295-
|
296-
_self: Val<bevy::math::Isometry3d>,
297-
rhs: Val<bevy::math::prelude::Dir3>|
298-
{
299-
let output: Val<bevy::math::prelude::Dir3> = <bevy::math::Isometry3d as std::ops::Mul<
300-
bevy::math::prelude::Dir3,
292+
|_self: Val<bevy::math::Isometry3d>, rhs: Val<bevy::math::Isometry3d>| {
293+
let output: Val<bevy::math::Isometry3d> = <bevy::math::Isometry3d as std::ops::Mul<
294+
bevy::math::Isometry3d,
301295
>>::mul(_self.into_inner(), rhs.into_inner())
302296
.into();
303297
output
304298
},
305299
)
306300
.register(
307301
"mul",
308-
|_self: Val<bevy::math::Isometry3d>, rhs: Val<bevy::math::Isometry3d>| {
309-
let output: Val<bevy::math::Isometry3d> = <bevy::math::Isometry3d as std::ops::Mul<
310-
bevy::math::Isometry3d,
302+
|
303+
_self: Val<bevy::math::Isometry3d>,
304+
rhs: Val<bevy::math::prelude::Dir3>|
305+
{
306+
let output: Val<bevy::math::prelude::Dir3> = <bevy::math::Isometry3d as std::ops::Mul<
307+
bevy::math::prelude::Dir3,
311308
>>::mul(_self.into_inner(), rhs.into_inner())
312309
.into();
313310
output

crates/bevy_mod_scripting_functions/src/bevy_bindings/bevy_reflect.rs

+5-8
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,11 @@
22
#![allow(clippy::all)]
33
#![allow(unused, deprecated, dead_code)]
44
#![cfg_attr(rustfmt, rustfmt_skip)]
5-
use bevy_mod_scripting_core::{
6-
AddContextInitializer, StoreDocumentation,
7-
bindings::{
8-
ReflectReference,
9-
function::{
10-
from::{Ref, Mut, Val},
11-
namespace::NamespaceBuilder,
12-
},
5+
use bevy_mod_scripting_core::bindings::{
6+
ReflectReference,
7+
function::{
8+
from::{Ref, Mut, Val},
9+
namespace::NamespaceBuilder,
1310
},
1411
};
1512
use crate::*;

crates/bevy_mod_scripting_functions/src/bevy_bindings/bevy_time.rs

+5-8
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,11 @@
44
#![cfg_attr(rustfmt, rustfmt_skip)]
55
use super::bevy_ecs::*;
66
use super::bevy_reflect::*;
7-
use bevy_mod_scripting_core::{
8-
AddContextInitializer, StoreDocumentation,
9-
bindings::{
10-
ReflectReference,
11-
function::{
12-
from::{Ref, Mut, Val},
13-
namespace::NamespaceBuilder,
14-
},
7+
use bevy_mod_scripting_core::bindings::{
8+
ReflectReference,
9+
function::{
10+
from::{Ref, Mut, Val},
11+
namespace::NamespaceBuilder,
1512
},
1613
};
1714
use crate::*;

crates/bevy_mod_scripting_functions/src/bevy_bindings/bevy_transform.rs

+5-8
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,11 @@ use super::bevy_reflect::*;
77
use super::bevy_core::*;
88
use super::bevy_math::*;
99
use super::bevy_hierarchy::*;
10-
use bevy_mod_scripting_core::{
11-
AddContextInitializer, StoreDocumentation,
12-
bindings::{
13-
ReflectReference,
14-
function::{
15-
from::{Ref, Mut, Val},
16-
namespace::NamespaceBuilder,
17-
},
10+
use bevy_mod_scripting_core::bindings::{
11+
ReflectReference,
12+
function::{
13+
from::{Ref, Mut, Val},
14+
namespace::NamespaceBuilder,
1815
},
1916
};
2017
use crate::*;

0 commit comments

Comments
 (0)