Skip to content

Commit 9724fd1

Browse files
chore(codegen): update bevy bindings (#177)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 593f1c0 commit 9724fd1

File tree

8 files changed

+38
-38
lines changed

8 files changed

+38
-38
lines changed

crates/bevy_mod_scripting_functions/src/bevy_bindings/bevy_core.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use bevy_mod_scripting_core::{
88
AddContextInitializer, StoreDocumentation,
99
bindings::{ReflectReference, function::from::{Ref, Mut, Val}},
1010
};
11-
use crate::{*, namespaced_register::NamespaceBuilder};
11+
use crate::*;
1212
pub struct BevyCoreScriptingPlugin;
1313
impl ::bevy::app::Plugin for BevyCoreScriptingPlugin {
1414
fn build(&self, app: &mut ::bevy::prelude::App) {

crates/bevy_mod_scripting_functions/src/bevy_bindings/bevy_ecs.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use bevy_mod_scripting_core::{
77
AddContextInitializer, StoreDocumentation,
88
bindings::{ReflectReference, function::from::{Ref, Mut, Val}},
99
};
10-
use crate::{*, namespaced_register::NamespaceBuilder};
10+
use crate::*;
1111
pub struct BevyEcsScriptingPlugin;
1212
impl ::bevy::app::Plugin for BevyEcsScriptingPlugin {
1313
fn build(&self, app: &mut ::bevy::prelude::App) {
@@ -161,7 +161,7 @@ impl ::bevy::app::Plugin for BevyEcsScriptingPlugin {
161161
.overwrite_script_function(
162162
"set",
163163
|_self: Mut<bevy::ecs::component::Tick>, tick: u32| {
164-
let output: () = ::bevy::ecs::component::Tick::set(&mut_self, tick)
164+
let output: () = ::bevy::ecs::component::Tick::set(&mut _self, tick)
165165
.into();
166166
output
167167
},
@@ -263,7 +263,7 @@ impl ::bevy::app::Plugin for BevyEcsScriptingPlugin {
263263
change_tick: Val<bevy::ecs::component::Tick>|
264264
{
265265
let output: () = ::bevy::ecs::component::ComponentTicks::set_changed(
266-
&mut_self,
266+
&mut _self,
267267
change_tick.into(),
268268
)
269269
.into();

crates/bevy_mod_scripting_functions/src/bevy_bindings/bevy_hierarchy.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use bevy_mod_scripting_core::{
99
AddContextInitializer, StoreDocumentation,
1010
bindings::{ReflectReference, function::from::{Ref, Mut, Val}},
1111
};
12-
use crate::{*, namespaced_register::NamespaceBuilder};
12+
use crate::*;
1313
pub struct BevyHierarchyScriptingPlugin;
1414
impl ::bevy::app::Plugin for BevyHierarchyScriptingPlugin {
1515
fn build(&self, app: &mut ::bevy::prelude::App) {
@@ -23,7 +23,7 @@ impl ::bevy::app::Plugin for BevyHierarchyScriptingPlugin {
2323
b_index: usize|
2424
{
2525
let output: () = ::bevy::hierarchy::prelude::Children::swap(
26-
&mut_self,
26+
&mut _self,
2727
a_index,
2828
b_index,
2929
)

crates/bevy_mod_scripting_functions/src/bevy_bindings/bevy_input.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use bevy_mod_scripting_core::{
1010
AddContextInitializer, StoreDocumentation,
1111
bindings::{ReflectReference, function::from::{Ref, Mut, Val}},
1212
};
13-
use crate::{*, namespaced_register::NamespaceBuilder};
13+
use crate::*;
1414
pub struct BevyInputScriptingPlugin;
1515
impl ::bevy::app::Plugin for BevyInputScriptingPlugin {
1616
fn build(&self, app: &mut ::bevy::prelude::App) {
@@ -947,7 +947,7 @@ impl ::bevy::app::Plugin for BevyInputScriptingPlugin {
947947
"set_press_threshold",
948948
|_self: Mut<bevy::input::gamepad::ButtonSettings>, value: f32| {
949949
let output: f32 = ::bevy::input::gamepad::ButtonSettings::set_press_threshold(
950-
&mut_self,
950+
&mut _self,
951951
value,
952952
)
953953
.into();
@@ -968,7 +968,7 @@ impl ::bevy::app::Plugin for BevyInputScriptingPlugin {
968968
"set_release_threshold",
969969
|_self: Mut<bevy::input::gamepad::ButtonSettings>, value: f32| {
970970
let output: f32 = ::bevy::input::gamepad::ButtonSettings::set_release_threshold(
971-
&mut_self,
971+
&mut _self,
972972
value,
973973
)
974974
.into();
@@ -1014,7 +1014,7 @@ impl ::bevy::app::Plugin for BevyInputScriptingPlugin {
10141014
"set_livezone_upperbound",
10151015
|_self: Mut<bevy::input::gamepad::AxisSettings>, value: f32| {
10161016
let output: f32 = ::bevy::input::gamepad::AxisSettings::set_livezone_upperbound(
1017-
&mut_self,
1017+
&mut _self,
10181018
value,
10191019
)
10201020
.into();
@@ -1035,7 +1035,7 @@ impl ::bevy::app::Plugin for BevyInputScriptingPlugin {
10351035
"set_deadzone_upperbound",
10361036
|_self: Mut<bevy::input::gamepad::AxisSettings>, value: f32| {
10371037
let output: f32 = ::bevy::input::gamepad::AxisSettings::set_deadzone_upperbound(
1038-
&mut_self,
1038+
&mut _self,
10391039
value,
10401040
)
10411041
.into();
@@ -1056,7 +1056,7 @@ impl ::bevy::app::Plugin for BevyInputScriptingPlugin {
10561056
"set_livezone_lowerbound",
10571057
|_self: Mut<bevy::input::gamepad::AxisSettings>, value: f32| {
10581058
let output: f32 = ::bevy::input::gamepad::AxisSettings::set_livezone_lowerbound(
1059-
&mut_self,
1059+
&mut _self,
10601060
value,
10611061
)
10621062
.into();
@@ -1077,7 +1077,7 @@ impl ::bevy::app::Plugin for BevyInputScriptingPlugin {
10771077
"set_deadzone_lowerbound",
10781078
|_self: Mut<bevy::input::gamepad::AxisSettings>, value: f32| {
10791079
let output: f32 = ::bevy::input::gamepad::AxisSettings::set_deadzone_lowerbound(
1080-
&mut_self,
1080+
&mut _self,
10811081
value,
10821082
)
10831083
.into();
@@ -1098,7 +1098,7 @@ impl ::bevy::app::Plugin for BevyInputScriptingPlugin {
10981098
"set_threshold",
10991099
|_self: Mut<bevy::input::gamepad::AxisSettings>, value: f32| {
11001100
let output: f32 = ::bevy::input::gamepad::AxisSettings::set_threshold(
1101-
&mut_self,
1101+
&mut _self,
11021102
value,
11031103
)
11041104
.into();

crates/bevy_mod_scripting_functions/src/bevy_bindings/bevy_math.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use bevy_mod_scripting_core::{
77
AddContextInitializer, StoreDocumentation,
88
bindings::{ReflectReference, function::from::{Ref, Mut, Val}},
99
};
10-
use crate::{*, namespaced_register::NamespaceBuilder};
10+
use crate::*;
1111
pub struct BevyMathScriptingPlugin;
1212
impl ::bevy::app::Plugin for BevyMathScriptingPlugin {
1313
fn build(&self, app: &mut ::bevy::prelude::App) {
@@ -2329,7 +2329,7 @@ impl ::bevy::app::Plugin for BevyMathScriptingPlugin {
23292329
"reverse",
23302330
|_self: Mut<bevy::math::primitives::Triangle2d>| {
23312331
let output: () = ::bevy::math::primitives::Triangle2d::reverse(
2332-
&mut_self,
2332+
&mut _self,
23332333
)
23342334
.into();
23352335
output
@@ -2872,7 +2872,7 @@ impl ::bevy::app::Plugin for BevyMathScriptingPlugin {
28722872
"reverse",
28732873
|_self: Mut<bevy::math::primitives::Triangle3d>| {
28742874
let output: () = ::bevy::math::primitives::Triangle3d::reverse(
2875-
&mut_self,
2875+
&mut _self,
28762876
)
28772877
.into();
28782878
output

crates/bevy_mod_scripting_functions/src/bevy_bindings/bevy_reflect.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use bevy_mod_scripting_core::{
66
AddContextInitializer, StoreDocumentation,
77
bindings::{ReflectReference, function::from::{Ref, Mut, Val}},
88
};
9-
use crate::{*, namespaced_register::NamespaceBuilder};
9+
use crate::*;
1010
pub struct BevyReflectScriptingPlugin;
1111
impl ::bevy::app::Plugin for BevyReflectScriptingPlugin {
1212
fn build(&self, app: &mut ::bevy::prelude::App) {
@@ -13367,7 +13367,7 @@ impl ::bevy::app::Plugin for BevyReflectScriptingPlugin {
1336713367
.overwrite_script_function(
1336813368
"set",
1336913369
|_self: Mut<bevy::math::BVec2>, index: usize, value: bool| {
13370-
let output: () = ::bevy::math::BVec2::set(&mut_self, index, value)
13370+
let output: () = ::bevy::math::BVec2::set(&mut _self, index, value)
1337113371
.into();
1337213372
output
1337313373
},
@@ -13444,7 +13444,7 @@ impl ::bevy::app::Plugin for BevyReflectScriptingPlugin {
1344413444
.overwrite_script_function(
1344513445
"set",
1344613446
|_self: Mut<bevy::math::BVec3>, index: usize, value: bool| {
13447-
let output: () = ::bevy::math::BVec3::set(&mut_self, index, value)
13447+
let output: () = ::bevy::math::BVec3::set(&mut _self, index, value)
1344813448
.into();
1344913449
output
1345013450
},
@@ -13539,7 +13539,7 @@ impl ::bevy::app::Plugin for BevyReflectScriptingPlugin {
1353913539
.overwrite_script_function(
1354013540
"set",
1354113541
|_self: Mut<bevy::math::BVec4>, index: usize, value: bool| {
13542-
let output: () = ::bevy::math::BVec4::set(&mut_self, index, value)
13542+
let output: () = ::bevy::math::BVec4::set(&mut _self, index, value)
1354313543
.into();
1354413544
output
1354513545
},
@@ -21856,7 +21856,7 @@ impl ::bevy::app::Plugin for BevyReflectScriptingPlugin {
2185621856
.overwrite_script_function(
2185721857
"set",
2185821858
|_self: Mut<bevy::math::BVec3A>, index: usize, value: bool| {
21859-
let output: () = ::bevy::math::BVec3A::set(&mut_self, index, value)
21859+
let output: () = ::bevy::math::BVec3A::set(&mut _self, index, value)
2186021860
.into();
2186121861
output
2186221862
},
@@ -21951,7 +21951,7 @@ impl ::bevy::app::Plugin for BevyReflectScriptingPlugin {
2195121951
.overwrite_script_function(
2195221952
"set",
2195321953
|_self: Mut<bevy::math::BVec4A>, index: usize, value: bool| {
21954-
let output: () = ::bevy::math::BVec4A::set(&mut_self, index, value)
21954+
let output: () = ::bevy::math::BVec4A::set(&mut _self, index, value)
2195521955
.into();
2195621956
output
2195721957
},

crates/bevy_mod_scripting_functions/src/bevy_bindings/bevy_time.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use bevy_mod_scripting_core::{
88
AddContextInitializer, StoreDocumentation,
99
bindings::{ReflectReference, function::from::{Ref, Mut, Val}},
1010
};
11-
use crate::{*, namespaced_register::NamespaceBuilder};
11+
use crate::*;
1212
pub struct BevyTimeScriptingPlugin;
1313
impl ::bevy::app::Plugin for BevyTimeScriptingPlugin {
1414
fn build(&self, app: &mut ::bevy::prelude::App) {
@@ -110,7 +110,7 @@ impl ::bevy::app::Plugin for BevyTimeScriptingPlugin {
110110
mode: Val<bevy::time::prelude::TimerMode>|
111111
{
112112
let output: () = ::bevy::time::prelude::Timer::set_mode(
113-
&mut_self,
113+
&mut _self,
114114
mode.into(),
115115
)
116116
.into();
@@ -120,15 +120,15 @@ impl ::bevy::app::Plugin for BevyTimeScriptingPlugin {
120120
.overwrite_script_function(
121121
"pause",
122122
|_self: Mut<bevy::time::prelude::Timer>| {
123-
let output: () = ::bevy::time::prelude::Timer::pause(&mut_self)
123+
let output: () = ::bevy::time::prelude::Timer::pause(&mut _self)
124124
.into();
125125
output
126126
},
127127
)
128128
.overwrite_script_function(
129129
"unpause",
130130
|_self: Mut<bevy::time::prelude::Timer>| {
131-
let output: () = ::bevy::time::prelude::Timer::unpause(&mut_self)
131+
let output: () = ::bevy::time::prelude::Timer::unpause(&mut _self)
132132
.into();
133133
output
134134
},
@@ -144,7 +144,7 @@ impl ::bevy::app::Plugin for BevyTimeScriptingPlugin {
144144
.overwrite_script_function(
145145
"reset",
146146
|_self: Mut<bevy::time::prelude::Timer>| {
147-
let output: () = ::bevy::time::prelude::Timer::reset(&mut_self)
147+
let output: () = ::bevy::time::prelude::Timer::reset(&mut _self)
148148
.into();
149149
output
150150
},
@@ -292,14 +292,14 @@ impl ::bevy::app::Plugin for BevyTimeScriptingPlugin {
292292
.overwrite_script_function(
293293
"pause",
294294
|_self: Mut<bevy::time::Stopwatch>| {
295-
let output: () = ::bevy::time::Stopwatch::pause(&mut_self).into();
295+
let output: () = ::bevy::time::Stopwatch::pause(&mut _self).into();
296296
output
297297
},
298298
)
299299
.overwrite_script_function(
300300
"unpause",
301301
|_self: Mut<bevy::time::Stopwatch>| {
302-
let output: () = ::bevy::time::Stopwatch::unpause(&mut_self).into();
302+
let output: () = ::bevy::time::Stopwatch::unpause(&mut _self).into();
303303
output
304304
},
305305
)
@@ -313,7 +313,7 @@ impl ::bevy::app::Plugin for BevyTimeScriptingPlugin {
313313
.overwrite_script_function(
314314
"reset",
315315
|_self: Mut<bevy::time::Stopwatch>| {
316-
let output: () = ::bevy::time::Stopwatch::reset(&mut_self).into();
316+
let output: () = ::bevy::time::Stopwatch::reset(&mut _self).into();
317317
output
318318
},
319319
)

crates/bevy_mod_scripting_functions/src/bevy_bindings/bevy_transform.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use bevy_mod_scripting_core::{
1111
AddContextInitializer, StoreDocumentation,
1212
bindings::{ReflectReference, function::from::{Ref, Mut, Val}},
1313
};
14-
use crate::{*, namespaced_register::NamespaceBuilder};
14+
use crate::*;
1515
pub struct BevyTransformScriptingPlugin;
1616
impl ::bevy::app::Plugin for BevyTransformScriptingPlugin {
1717
fn build(&self, app: &mut ::bevy::prelude::App) {
@@ -174,7 +174,7 @@ impl ::bevy::app::Plugin for BevyTransformScriptingPlugin {
174174
"rotate_x",
175175
|_self: Mut<bevy::transform::components::Transform>, angle: f32| {
176176
let output: () = ::bevy::transform::components::Transform::rotate_x(
177-
&mut_self,
177+
&mut _self,
178178
angle,
179179
)
180180
.into();
@@ -185,7 +185,7 @@ impl ::bevy::app::Plugin for BevyTransformScriptingPlugin {
185185
"rotate_y",
186186
|_self: Mut<bevy::transform::components::Transform>, angle: f32| {
187187
let output: () = ::bevy::transform::components::Transform::rotate_y(
188-
&mut_self,
188+
&mut _self,
189189
angle,
190190
)
191191
.into();
@@ -196,7 +196,7 @@ impl ::bevy::app::Plugin for BevyTransformScriptingPlugin {
196196
"rotate_z",
197197
|_self: Mut<bevy::transform::components::Transform>, angle: f32| {
198198
let output: () = ::bevy::transform::components::Transform::rotate_z(
199-
&mut_self,
199+
&mut _self,
200200
angle,
201201
)
202202
.into();
@@ -207,7 +207,7 @@ impl ::bevy::app::Plugin for BevyTransformScriptingPlugin {
207207
"rotate_local_x",
208208
|_self: Mut<bevy::transform::components::Transform>, angle: f32| {
209209
let output: () = ::bevy::transform::components::Transform::rotate_local_x(
210-
&mut_self,
210+
&mut _self,
211211
angle,
212212
)
213213
.into();
@@ -218,7 +218,7 @@ impl ::bevy::app::Plugin for BevyTransformScriptingPlugin {
218218
"rotate_local_y",
219219
|_self: Mut<bevy::transform::components::Transform>, angle: f32| {
220220
let output: () = ::bevy::transform::components::Transform::rotate_local_y(
221-
&mut_self,
221+
&mut _self,
222222
angle,
223223
)
224224
.into();
@@ -229,7 +229,7 @@ impl ::bevy::app::Plugin for BevyTransformScriptingPlugin {
229229
"rotate_local_z",
230230
|_self: Mut<bevy::transform::components::Transform>, angle: f32| {
231231
let output: () = ::bevy::transform::components::Transform::rotate_local_z(
232-
&mut_self,
232+
&mut _self,
233233
angle,
234234
)
235235
.into();

0 commit comments

Comments
 (0)