Skip to content

Commit 1899ffa

Browse files
chore(codegen): update bevy bindings (#181)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 9b29247 commit 1899ffa

File tree

8 files changed

+2640
-2640
lines changed

8 files changed

+2640
-2640
lines changed

crates/bevy_mod_scripting_functions/src/bevy_bindings/bevy_core.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ impl ::bevy::app::Plugin for BevyCoreScriptingPlugin {
1414
fn build(&self, app: &mut ::bevy::prelude::App) {
1515
let mut world = app.world_mut();
1616
NamespaceBuilder::<::bevy::core::prelude::Name>::new(world)
17-
.overwrite_script_function(
17+
.register(
1818
"eq",
1919
|
2020
_self: Ref<bevy::core::prelude::Name>,
@@ -27,7 +27,7 @@ impl ::bevy::app::Plugin for BevyCoreScriptingPlugin {
2727
output
2828
},
2929
)
30-
.overwrite_script_function(
30+
.register(
3131
"clone",
3232
|_self: Ref<bevy::core::prelude::Name>| {
3333
let output: Val<bevy::core::prelude::Name> = <bevy::core::prelude::Name as std::clone::Clone>::clone(

crates/bevy_mod_scripting_functions/src/bevy_bindings/bevy_ecs.rs

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ impl ::bevy::app::Plugin for BevyEcsScriptingPlugin {
1313
fn build(&self, app: &mut ::bevy::prelude::App) {
1414
let mut world = app.world_mut();
1515
NamespaceBuilder::<::bevy::ecs::entity::Entity>::new(world)
16-
.overwrite_script_function(
16+
.register(
1717
"clone",
1818
|_self: Ref<bevy::ecs::entity::Entity>| {
1919
let output: Val<bevy::ecs::entity::Entity> = <bevy::ecs::entity::Entity as std::clone::Clone>::clone(
@@ -23,7 +23,7 @@ impl ::bevy::app::Plugin for BevyEcsScriptingPlugin {
2323
output
2424
},
2525
)
26-
.overwrite_script_function(
26+
.register(
2727
"eq",
2828
|
2929
_self: Ref<bevy::ecs::entity::Entity>,
@@ -36,7 +36,7 @@ impl ::bevy::app::Plugin for BevyEcsScriptingPlugin {
3636
output
3737
},
3838
)
39-
.overwrite_script_function(
39+
.register(
4040
"from_raw",
4141
|index: u32| {
4242
let output: Val<bevy::ecs::entity::Entity> = bevy::ecs::entity::Entity::from_raw(
@@ -46,7 +46,7 @@ impl ::bevy::app::Plugin for BevyEcsScriptingPlugin {
4646
output
4747
},
4848
)
49-
.overwrite_script_function(
49+
.register(
5050
"to_bits",
5151
|_self: Val<bevy::ecs::entity::Entity>| {
5252
let output: u64 = bevy::ecs::entity::Entity::to_bits(
@@ -56,7 +56,7 @@ impl ::bevy::app::Plugin for BevyEcsScriptingPlugin {
5656
output
5757
},
5858
)
59-
.overwrite_script_function(
59+
.register(
6060
"from_bits",
6161
|bits: u64| {
6262
let output: Val<bevy::ecs::entity::Entity> = bevy::ecs::entity::Entity::from_bits(
@@ -66,7 +66,7 @@ impl ::bevy::app::Plugin for BevyEcsScriptingPlugin {
6666
output
6767
},
6868
)
69-
.overwrite_script_function(
69+
.register(
7070
"index",
7171
|_self: Val<bevy::ecs::entity::Entity>| {
7272
let output: u32 = bevy::ecs::entity::Entity::index(
@@ -76,7 +76,7 @@ impl ::bevy::app::Plugin for BevyEcsScriptingPlugin {
7676
output
7777
},
7878
)
79-
.overwrite_script_function(
79+
.register(
8080
"generation",
8181
|_self: Val<bevy::ecs::entity::Entity>| {
8282
let output: u32 = bevy::ecs::entity::Entity::generation(
@@ -91,7 +91,7 @@ impl ::bevy::app::Plugin for BevyEcsScriptingPlugin {
9191
NamespaceBuilder::<::bevy::ecs::world::OnRemove>::new(world);
9292
NamespaceBuilder::<::bevy::ecs::world::OnReplace>::new(world);
9393
NamespaceBuilder::<::bevy::ecs::component::ComponentId>::new(world)
94-
.overwrite_script_function(
94+
.register(
9595
"eq",
9696
|
9797
_self: Ref<bevy::ecs::component::ComponentId>,
@@ -104,7 +104,7 @@ impl ::bevy::app::Plugin for BevyEcsScriptingPlugin {
104104
output
105105
},
106106
)
107-
.overwrite_script_function(
107+
.register(
108108
"clone",
109109
|_self: Ref<bevy::ecs::component::ComponentId>| {
110110
let output: Val<bevy::ecs::component::ComponentId> = <bevy::ecs::component::ComponentId as std::clone::Clone>::clone(
@@ -114,7 +114,7 @@ impl ::bevy::app::Plugin for BevyEcsScriptingPlugin {
114114
output
115115
},
116116
)
117-
.overwrite_script_function(
117+
.register(
118118
"assert_receiver_is_total_eq",
119119
|_self: Ref<bevy::ecs::component::ComponentId>| {
120120
let output: () = <bevy::ecs::component::ComponentId as std::cmp::Eq>::assert_receiver_is_total_eq(
@@ -124,7 +124,7 @@ impl ::bevy::app::Plugin for BevyEcsScriptingPlugin {
124124
output
125125
},
126126
)
127-
.overwrite_script_function(
127+
.register(
128128
"new",
129129
|index: usize| {
130130
let output: Val<bevy::ecs::component::ComponentId> = bevy::ecs::component::ComponentId::new(
@@ -134,7 +134,7 @@ impl ::bevy::app::Plugin for BevyEcsScriptingPlugin {
134134
output
135135
},
136136
)
137-
.overwrite_script_function(
137+
.register(
138138
"index",
139139
|_self: Val<bevy::ecs::component::ComponentId>| {
140140
let output: usize = bevy::ecs::component::ComponentId::index(
@@ -145,7 +145,7 @@ impl ::bevy::app::Plugin for BevyEcsScriptingPlugin {
145145
},
146146
);
147147
NamespaceBuilder::<::bevy::ecs::component::Tick>::new(world)
148-
.overwrite_script_function(
148+
.register(
149149
"new",
150150
|tick: u32| {
151151
let output: Val<bevy::ecs::component::Tick> = bevy::ecs::component::Tick::new(
@@ -155,23 +155,23 @@ impl ::bevy::app::Plugin for BevyEcsScriptingPlugin {
155155
output
156156
},
157157
)
158-
.overwrite_script_function(
158+
.register(
159159
"get",
160160
|_self: Val<bevy::ecs::component::Tick>| {
161161
let output: u32 = bevy::ecs::component::Tick::get(_self.into_inner())
162162
.into();
163163
output
164164
},
165165
)
166-
.overwrite_script_function(
166+
.register(
167167
"set",
168168
|mut _self: Mut<bevy::ecs::component::Tick>, tick: u32| {
169169
let output: () = bevy::ecs::component::Tick::set(&mut _self, tick)
170170
.into();
171171
output
172172
},
173173
)
174-
.overwrite_script_function(
174+
.register(
175175
"is_newer_than",
176176
|
177177
_self: Val<bevy::ecs::component::Tick>,
@@ -187,7 +187,7 @@ impl ::bevy::app::Plugin for BevyEcsScriptingPlugin {
187187
output
188188
},
189189
)
190-
.overwrite_script_function(
190+
.register(
191191
"eq",
192192
|
193193
_self: Ref<bevy::ecs::component::Tick>,
@@ -200,7 +200,7 @@ impl ::bevy::app::Plugin for BevyEcsScriptingPlugin {
200200
output
201201
},
202202
)
203-
.overwrite_script_function(
203+
.register(
204204
"assert_receiver_is_total_eq",
205205
|_self: Ref<bevy::ecs::component::Tick>| {
206206
let output: () = <bevy::ecs::component::Tick as std::cmp::Eq>::assert_receiver_is_total_eq(
@@ -210,7 +210,7 @@ impl ::bevy::app::Plugin for BevyEcsScriptingPlugin {
210210
output
211211
},
212212
)
213-
.overwrite_script_function(
213+
.register(
214214
"clone",
215215
|_self: Ref<bevy::ecs::component::Tick>| {
216216
let output: Val<bevy::ecs::component::Tick> = <bevy::ecs::component::Tick as std::clone::Clone>::clone(
@@ -221,7 +221,7 @@ impl ::bevy::app::Plugin for BevyEcsScriptingPlugin {
221221
},
222222
);
223223
NamespaceBuilder::<::bevy::ecs::component::ComponentTicks>::new(world)
224-
.overwrite_script_function(
224+
.register(
225225
"is_added",
226226
|
227227
_self: Ref<bevy::ecs::component::ComponentTicks>,
@@ -237,7 +237,7 @@ impl ::bevy::app::Plugin for BevyEcsScriptingPlugin {
237237
output
238238
},
239239
)
240-
.overwrite_script_function(
240+
.register(
241241
"is_changed",
242242
|
243243
_self: Ref<bevy::ecs::component::ComponentTicks>,
@@ -253,7 +253,7 @@ impl ::bevy::app::Plugin for BevyEcsScriptingPlugin {
253253
output
254254
},
255255
)
256-
.overwrite_script_function(
256+
.register(
257257
"new",
258258
|change_tick: Val<bevy::ecs::component::Tick>| {
259259
let output: Val<bevy::ecs::component::ComponentTicks> = bevy::ecs::component::ComponentTicks::new(
@@ -263,7 +263,7 @@ impl ::bevy::app::Plugin for BevyEcsScriptingPlugin {
263263
output
264264
},
265265
)
266-
.overwrite_script_function(
266+
.register(
267267
"set_changed",
268268
|
269269
mut _self: Mut<bevy::ecs::component::ComponentTicks>,
@@ -277,7 +277,7 @@ impl ::bevy::app::Plugin for BevyEcsScriptingPlugin {
277277
output
278278
},
279279
)
280-
.overwrite_script_function(
280+
.register(
281281
"clone",
282282
|_self: Ref<bevy::ecs::component::ComponentTicks>| {
283283
let output: Val<bevy::ecs::component::ComponentTicks> = <bevy::ecs::component::ComponentTicks as std::clone::Clone>::clone(
@@ -288,7 +288,7 @@ impl ::bevy::app::Plugin for BevyEcsScriptingPlugin {
288288
},
289289
);
290290
NamespaceBuilder::<::bevy::ecs::identifier::Identifier>::new(world)
291-
.overwrite_script_function(
291+
.register(
292292
"clone",
293293
|_self: Ref<bevy::ecs::identifier::Identifier>| {
294294
let output: Val<bevy::ecs::identifier::Identifier> = <bevy::ecs::identifier::Identifier as std::clone::Clone>::clone(
@@ -298,7 +298,7 @@ impl ::bevy::app::Plugin for BevyEcsScriptingPlugin {
298298
output
299299
},
300300
)
301-
.overwrite_script_function(
301+
.register(
302302
"low",
303303
|_self: Val<bevy::ecs::identifier::Identifier>| {
304304
let output: u32 = bevy::ecs::identifier::Identifier::low(
@@ -308,7 +308,7 @@ impl ::bevy::app::Plugin for BevyEcsScriptingPlugin {
308308
output
309309
},
310310
)
311-
.overwrite_script_function(
311+
.register(
312312
"masked_high",
313313
|_self: Val<bevy::ecs::identifier::Identifier>| {
314314
let output: u32 = bevy::ecs::identifier::Identifier::masked_high(
@@ -318,7 +318,7 @@ impl ::bevy::app::Plugin for BevyEcsScriptingPlugin {
318318
output
319319
},
320320
)
321-
.overwrite_script_function(
321+
.register(
322322
"to_bits",
323323
|_self: Val<bevy::ecs::identifier::Identifier>| {
324324
let output: u64 = bevy::ecs::identifier::Identifier::to_bits(
@@ -328,7 +328,7 @@ impl ::bevy::app::Plugin for BevyEcsScriptingPlugin {
328328
output
329329
},
330330
)
331-
.overwrite_script_function(
331+
.register(
332332
"from_bits",
333333
|value: u64| {
334334
let output: Val<bevy::ecs::identifier::Identifier> = bevy::ecs::identifier::Identifier::from_bits(
@@ -338,7 +338,7 @@ impl ::bevy::app::Plugin for BevyEcsScriptingPlugin {
338338
output
339339
},
340340
)
341-
.overwrite_script_function(
341+
.register(
342342
"eq",
343343
|
344344
_self: Ref<bevy::ecs::identifier::Identifier>,
@@ -352,7 +352,7 @@ impl ::bevy::app::Plugin for BevyEcsScriptingPlugin {
352352
},
353353
);
354354
NamespaceBuilder::<::bevy::ecs::entity::EntityHash>::new(world)
355-
.overwrite_script_function(
355+
.register(
356356
"clone",
357357
|_self: Ref<bevy::ecs::entity::EntityHash>| {
358358
let output: Val<bevy::ecs::entity::EntityHash> = <bevy::ecs::entity::EntityHash as std::clone::Clone>::clone(
@@ -365,7 +365,7 @@ impl ::bevy::app::Plugin for BevyEcsScriptingPlugin {
365365
NamespaceBuilder::<
366366
::bevy::ecs::removal_detection::RemovedComponentEntity,
367367
>::new(world)
368-
.overwrite_script_function(
368+
.register(
369369
"clone",
370370
|_self: Ref<bevy::ecs::removal_detection::RemovedComponentEntity>| {
371371
let output: Val<

crates/bevy_mod_scripting_functions/src/bevy_bindings/bevy_hierarchy.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ impl ::bevy::app::Plugin for BevyHierarchyScriptingPlugin {
1515
fn build(&self, app: &mut ::bevy::prelude::App) {
1616
let mut world = app.world_mut();
1717
NamespaceBuilder::<::bevy::hierarchy::prelude::Children>::new(world)
18-
.overwrite_script_function(
18+
.register(
1919
"swap",
2020
|
2121
mut _self: Mut<bevy::hierarchy::prelude::Children>,
@@ -32,7 +32,7 @@ impl ::bevy::app::Plugin for BevyHierarchyScriptingPlugin {
3232
},
3333
);
3434
NamespaceBuilder::<::bevy::hierarchy::prelude::Parent>::new(world)
35-
.overwrite_script_function(
35+
.register(
3636
"assert_receiver_is_total_eq",
3737
|_self: Ref<bevy::hierarchy::prelude::Parent>| {
3838
let output: () = <bevy::hierarchy::prelude::Parent as std::cmp::Eq>::assert_receiver_is_total_eq(
@@ -42,7 +42,7 @@ impl ::bevy::app::Plugin for BevyHierarchyScriptingPlugin {
4242
output
4343
},
4444
)
45-
.overwrite_script_function(
45+
.register(
4646
"eq",
4747
|
4848
_self: Ref<bevy::hierarchy::prelude::Parent>,
@@ -56,7 +56,7 @@ impl ::bevy::app::Plugin for BevyHierarchyScriptingPlugin {
5656
},
5757
);
5858
NamespaceBuilder::<::bevy::hierarchy::HierarchyEvent>::new(world)
59-
.overwrite_script_function(
59+
.register(
6060
"eq",
6161
|
6262
_self: Ref<bevy::hierarchy::HierarchyEvent>,
@@ -69,7 +69,7 @@ impl ::bevy::app::Plugin for BevyHierarchyScriptingPlugin {
6969
output
7070
},
7171
)
72-
.overwrite_script_function(
72+
.register(
7373
"clone",
7474
|_self: Ref<bevy::hierarchy::HierarchyEvent>| {
7575
let output: Val<bevy::hierarchy::HierarchyEvent> = <bevy::hierarchy::HierarchyEvent as std::clone::Clone>::clone(
@@ -79,7 +79,7 @@ impl ::bevy::app::Plugin for BevyHierarchyScriptingPlugin {
7979
output
8080
},
8181
)
82-
.overwrite_script_function(
82+
.register(
8383
"assert_receiver_is_total_eq",
8484
|_self: Ref<bevy::hierarchy::HierarchyEvent>| {
8585
let output: () = <bevy::hierarchy::HierarchyEvent as std::cmp::Eq>::assert_receiver_is_total_eq(

0 commit comments

Comments
 (0)