Skip to content

Commit 7722258

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

File tree

7 files changed

+30
-30
lines changed

7 files changed

+30
-30
lines changed

crates/bevy_mod_scripting_functions/src/bevy_bindings/bevy_ecs.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ impl ::bevy::app::Plugin for BevyEcsScriptingPlugin {
166166
)
167167
.overwrite_script_function(
168168
"set",
169-
|_self: Mut<bevy::ecs::component::Tick>, tick: u32| {
169+
|mut _self: Mut<bevy::ecs::component::Tick>, tick: u32| {
170170
let output: () = ::bevy::ecs::component::Tick::set(&mut _self, tick)
171171
.into();
172172
output
@@ -265,7 +265,7 @@ impl ::bevy::app::Plugin for BevyEcsScriptingPlugin {
265265
.overwrite_script_function(
266266
"set_changed",
267267
|
268-
_self: Mut<bevy::ecs::component::ComponentTicks>,
268+
mut _self: Mut<bevy::ecs::component::ComponentTicks>,
269269
change_tick: Val<bevy::ecs::component::Tick>|
270270
{
271271
let output: () = ::bevy::ecs::component::ComponentTicks::set_changed(

crates/bevy_mod_scripting_functions/src/bevy_bindings/bevy_hierarchy.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ impl ::bevy::app::Plugin for BevyHierarchyScriptingPlugin {
1818
.overwrite_script_function(
1919
"swap",
2020
|
21-
_self: Mut<bevy::hierarchy::prelude::Children>,
21+
mut _self: Mut<bevy::hierarchy::prelude::Children>,
2222
a_index: usize,
2323
b_index: usize|
2424
{

crates/bevy_mod_scripting_functions/src/bevy_bindings/bevy_input.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -945,7 +945,7 @@ impl ::bevy::app::Plugin for BevyInputScriptingPlugin {
945945
)
946946
.overwrite_script_function(
947947
"set_press_threshold",
948-
|_self: Mut<bevy::input::gamepad::ButtonSettings>, value: f32| {
948+
|mut _self: Mut<bevy::input::gamepad::ButtonSettings>, value: f32| {
949949
let output: f32 = ::bevy::input::gamepad::ButtonSettings::set_press_threshold(
950950
&mut _self,
951951
value,
@@ -966,7 +966,7 @@ impl ::bevy::app::Plugin for BevyInputScriptingPlugin {
966966
)
967967
.overwrite_script_function(
968968
"set_release_threshold",
969-
|_self: Mut<bevy::input::gamepad::ButtonSettings>, value: f32| {
969+
|mut _self: Mut<bevy::input::gamepad::ButtonSettings>, value: f32| {
970970
let output: f32 = ::bevy::input::gamepad::ButtonSettings::set_release_threshold(
971971
&mut _self,
972972
value,
@@ -1012,7 +1012,7 @@ impl ::bevy::app::Plugin for BevyInputScriptingPlugin {
10121012
)
10131013
.overwrite_script_function(
10141014
"set_livezone_upperbound",
1015-
|_self: Mut<bevy::input::gamepad::AxisSettings>, value: f32| {
1015+
|mut _self: Mut<bevy::input::gamepad::AxisSettings>, value: f32| {
10161016
let output: f32 = ::bevy::input::gamepad::AxisSettings::set_livezone_upperbound(
10171017
&mut _self,
10181018
value,
@@ -1033,7 +1033,7 @@ impl ::bevy::app::Plugin for BevyInputScriptingPlugin {
10331033
)
10341034
.overwrite_script_function(
10351035
"set_deadzone_upperbound",
1036-
|_self: Mut<bevy::input::gamepad::AxisSettings>, value: f32| {
1036+
|mut _self: Mut<bevy::input::gamepad::AxisSettings>, value: f32| {
10371037
let output: f32 = ::bevy::input::gamepad::AxisSettings::set_deadzone_upperbound(
10381038
&mut _self,
10391039
value,
@@ -1054,7 +1054,7 @@ impl ::bevy::app::Plugin for BevyInputScriptingPlugin {
10541054
)
10551055
.overwrite_script_function(
10561056
"set_livezone_lowerbound",
1057-
|_self: Mut<bevy::input::gamepad::AxisSettings>, value: f32| {
1057+
|mut _self: Mut<bevy::input::gamepad::AxisSettings>, value: f32| {
10581058
let output: f32 = ::bevy::input::gamepad::AxisSettings::set_livezone_lowerbound(
10591059
&mut _self,
10601060
value,
@@ -1075,7 +1075,7 @@ impl ::bevy::app::Plugin for BevyInputScriptingPlugin {
10751075
)
10761076
.overwrite_script_function(
10771077
"set_deadzone_lowerbound",
1078-
|_self: Mut<bevy::input::gamepad::AxisSettings>, value: f32| {
1078+
|mut _self: Mut<bevy::input::gamepad::AxisSettings>, value: f32| {
10791079
let output: f32 = ::bevy::input::gamepad::AxisSettings::set_deadzone_lowerbound(
10801080
&mut _self,
10811081
value,
@@ -1096,7 +1096,7 @@ impl ::bevy::app::Plugin for BevyInputScriptingPlugin {
10961096
)
10971097
.overwrite_script_function(
10981098
"set_threshold",
1099-
|_self: Mut<bevy::input::gamepad::AxisSettings>, value: f32| {
1099+
|mut _self: Mut<bevy::input::gamepad::AxisSettings>, value: f32| {
11001100
let output: f32 = ::bevy::input::gamepad::AxisSettings::set_threshold(
11011101
&mut _self,
11021102
value,

crates/bevy_mod_scripting_functions/src/bevy_bindings/bevy_math.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2341,7 +2341,7 @@ impl ::bevy::app::Plugin for BevyMathScriptingPlugin {
23412341
)
23422342
.overwrite_script_function(
23432343
"reverse",
2344-
|_self: Mut<bevy::math::primitives::Triangle2d>| {
2344+
|mut _self: Mut<bevy::math::primitives::Triangle2d>| {
23452345
let output: () = ::bevy::math::primitives::Triangle2d::reverse(
23462346
&mut _self,
23472347
)
@@ -2884,7 +2884,7 @@ impl ::bevy::app::Plugin for BevyMathScriptingPlugin {
28842884
)
28852885
.overwrite_script_function(
28862886
"reverse",
2887-
|_self: Mut<bevy::math::primitives::Triangle3d>| {
2887+
|mut _self: Mut<bevy::math::primitives::Triangle3d>| {
28882888
let output: () = ::bevy::math::primitives::Triangle3d::reverse(
28892889
&mut _self,
28902890
)

crates/bevy_mod_scripting_functions/src/bevy_bindings/bevy_reflect.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13567,7 +13567,7 @@ impl ::bevy::app::Plugin for BevyReflectScriptingPlugin {
1356713567
)
1356813568
.overwrite_script_function(
1356913569
"set",
13570-
|_self: Mut<bevy::math::BVec2>, index: usize, value: bool| {
13570+
|mut _self: Mut<bevy::math::BVec2>, index: usize, value: bool| {
1357113571
let output: () = ::bevy::math::BVec2::set(&mut _self, index, value)
1357213572
.into();
1357313573
output
@@ -13647,7 +13647,7 @@ impl ::bevy::app::Plugin for BevyReflectScriptingPlugin {
1364713647
)
1364813648
.overwrite_script_function(
1364913649
"set",
13650-
|_self: Mut<bevy::math::BVec3>, index: usize, value: bool| {
13650+
|mut _self: Mut<bevy::math::BVec3>, index: usize, value: bool| {
1365113651
let output: () = ::bevy::math::BVec3::set(&mut _self, index, value)
1365213652
.into();
1365313653
output
@@ -13745,7 +13745,7 @@ impl ::bevy::app::Plugin for BevyReflectScriptingPlugin {
1374513745
)
1374613746
.overwrite_script_function(
1374713747
"set",
13748-
|_self: Mut<bevy::math::BVec4>, index: usize, value: bool| {
13748+
|mut _self: Mut<bevy::math::BVec4>, index: usize, value: bool| {
1374913749
let output: () = ::bevy::math::BVec4::set(&mut _self, index, value)
1375013750
.into();
1375113751
output
@@ -22134,7 +22134,7 @@ impl ::bevy::app::Plugin for BevyReflectScriptingPlugin {
2213422134
)
2213522135
.overwrite_script_function(
2213622136
"set",
22137-
|_self: Mut<bevy::math::BVec3A>, index: usize, value: bool| {
22137+
|mut _self: Mut<bevy::math::BVec3A>, index: usize, value: bool| {
2213822138
let output: () = ::bevy::math::BVec3A::set(&mut _self, index, value)
2213922139
.into();
2214022140
output
@@ -22232,7 +22232,7 @@ impl ::bevy::app::Plugin for BevyReflectScriptingPlugin {
2223222232
)
2223322233
.overwrite_script_function(
2223422234
"set",
22235-
|_self: Mut<bevy::math::BVec4A>, index: usize, value: bool| {
22235+
|mut _self: Mut<bevy::math::BVec4A>, index: usize, value: bool| {
2223622236
let output: () = ::bevy::math::BVec4A::set(&mut _self, index, value)
2223722237
.into();
2223822238
output

crates/bevy_mod_scripting_functions/src/bevy_bindings/bevy_time.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ impl ::bevy::app::Plugin for BevyTimeScriptingPlugin {
106106
.overwrite_script_function(
107107
"set_mode",
108108
|
109-
_self: Mut<bevy::time::prelude::Timer>,
109+
mut _self: Mut<bevy::time::prelude::Timer>,
110110
mode: Val<bevy::time::prelude::TimerMode>|
111111
{
112112
let output: () = ::bevy::time::prelude::Timer::set_mode(
@@ -119,15 +119,15 @@ impl ::bevy::app::Plugin for BevyTimeScriptingPlugin {
119119
)
120120
.overwrite_script_function(
121121
"pause",
122-
|_self: Mut<bevy::time::prelude::Timer>| {
122+
|mut _self: Mut<bevy::time::prelude::Timer>| {
123123
let output: () = ::bevy::time::prelude::Timer::pause(&mut _self)
124124
.into();
125125
output
126126
},
127127
)
128128
.overwrite_script_function(
129129
"unpause",
130-
|_self: Mut<bevy::time::prelude::Timer>| {
130+
|mut _self: Mut<bevy::time::prelude::Timer>| {
131131
let output: () = ::bevy::time::prelude::Timer::unpause(&mut _self)
132132
.into();
133133
output
@@ -143,7 +143,7 @@ impl ::bevy::app::Plugin for BevyTimeScriptingPlugin {
143143
)
144144
.overwrite_script_function(
145145
"reset",
146-
|_self: Mut<bevy::time::prelude::Timer>| {
146+
|mut _self: Mut<bevy::time::prelude::Timer>| {
147147
let output: () = ::bevy::time::prelude::Timer::reset(&mut _self)
148148
.into();
149149
output
@@ -291,14 +291,14 @@ impl ::bevy::app::Plugin for BevyTimeScriptingPlugin {
291291
)
292292
.overwrite_script_function(
293293
"pause",
294-
|_self: Mut<bevy::time::Stopwatch>| {
294+
|mut _self: Mut<bevy::time::Stopwatch>| {
295295
let output: () = ::bevy::time::Stopwatch::pause(&mut _self).into();
296296
output
297297
},
298298
)
299299
.overwrite_script_function(
300300
"unpause",
301-
|_self: Mut<bevy::time::Stopwatch>| {
301+
|mut _self: Mut<bevy::time::Stopwatch>| {
302302
let output: () = ::bevy::time::Stopwatch::unpause(&mut _self).into();
303303
output
304304
},
@@ -312,7 +312,7 @@ impl ::bevy::app::Plugin for BevyTimeScriptingPlugin {
312312
)
313313
.overwrite_script_function(
314314
"reset",
315-
|_self: Mut<bevy::time::Stopwatch>| {
315+
|mut _self: Mut<bevy::time::Stopwatch>| {
316316
let output: () = ::bevy::time::Stopwatch::reset(&mut _self).into();
317317
output
318318
},

crates/bevy_mod_scripting_functions/src/bevy_bindings/bevy_transform.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ impl ::bevy::app::Plugin for BevyTransformScriptingPlugin {
172172
)
173173
.overwrite_script_function(
174174
"rotate_x",
175-
|_self: Mut<bevy::transform::components::Transform>, angle: f32| {
175+
|mut _self: Mut<bevy::transform::components::Transform>, angle: f32| {
176176
let output: () = ::bevy::transform::components::Transform::rotate_x(
177177
&mut _self,
178178
angle,
@@ -183,7 +183,7 @@ impl ::bevy::app::Plugin for BevyTransformScriptingPlugin {
183183
)
184184
.overwrite_script_function(
185185
"rotate_y",
186-
|_self: Mut<bevy::transform::components::Transform>, angle: f32| {
186+
|mut _self: Mut<bevy::transform::components::Transform>, angle: f32| {
187187
let output: () = ::bevy::transform::components::Transform::rotate_y(
188188
&mut _self,
189189
angle,
@@ -194,7 +194,7 @@ impl ::bevy::app::Plugin for BevyTransformScriptingPlugin {
194194
)
195195
.overwrite_script_function(
196196
"rotate_z",
197-
|_self: Mut<bevy::transform::components::Transform>, angle: f32| {
197+
|mut _self: Mut<bevy::transform::components::Transform>, angle: f32| {
198198
let output: () = ::bevy::transform::components::Transform::rotate_z(
199199
&mut _self,
200200
angle,
@@ -205,7 +205,7 @@ impl ::bevy::app::Plugin for BevyTransformScriptingPlugin {
205205
)
206206
.overwrite_script_function(
207207
"rotate_local_x",
208-
|_self: Mut<bevy::transform::components::Transform>, angle: f32| {
208+
|mut _self: Mut<bevy::transform::components::Transform>, angle: f32| {
209209
let output: () = ::bevy::transform::components::Transform::rotate_local_x(
210210
&mut _self,
211211
angle,
@@ -216,7 +216,7 @@ impl ::bevy::app::Plugin for BevyTransformScriptingPlugin {
216216
)
217217
.overwrite_script_function(
218218
"rotate_local_y",
219-
|_self: Mut<bevy::transform::components::Transform>, angle: f32| {
219+
|mut _self: Mut<bevy::transform::components::Transform>, angle: f32| {
220220
let output: () = ::bevy::transform::components::Transform::rotate_local_y(
221221
&mut _self,
222222
angle,
@@ -227,7 +227,7 @@ impl ::bevy::app::Plugin for BevyTransformScriptingPlugin {
227227
)
228228
.overwrite_script_function(
229229
"rotate_local_z",
230-
|_self: Mut<bevy::transform::components::Transform>, angle: f32| {
230+
|mut _self: Mut<bevy::transform::components::Transform>, angle: f32| {
231231
let output: () = ::bevy::transform::components::Transform::rotate_local_z(
232232
&mut _self,
233233
angle,

0 commit comments

Comments
 (0)