@@ -13,7 +13,7 @@ impl ::bevy::app::Plugin for BevyEcsScriptingPlugin {
13
13
fn build ( & self , app : & mut :: bevy:: prelude:: App ) {
14
14
let mut world = app. world_mut ( ) ;
15
15
NamespaceBuilder :: < :: bevy:: ecs:: entity:: Entity > :: new ( world)
16
- . overwrite_script_function (
16
+ . register (
17
17
"clone" ,
18
18
|_self : Ref < bevy:: ecs:: entity:: Entity > | {
19
19
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 {
23
23
output
24
24
} ,
25
25
)
26
- . overwrite_script_function (
26
+ . register (
27
27
"eq" ,
28
28
|
29
29
_self : Ref < bevy:: ecs:: entity:: Entity > ,
@@ -36,7 +36,7 @@ impl ::bevy::app::Plugin for BevyEcsScriptingPlugin {
36
36
output
37
37
} ,
38
38
)
39
- . overwrite_script_function (
39
+ . register (
40
40
"from_raw" ,
41
41
|index : u32 | {
42
42
let output: Val < bevy:: ecs:: entity:: Entity > = bevy:: ecs:: entity:: Entity :: from_raw (
@@ -46,7 +46,7 @@ impl ::bevy::app::Plugin for BevyEcsScriptingPlugin {
46
46
output
47
47
} ,
48
48
)
49
- . overwrite_script_function (
49
+ . register (
50
50
"to_bits" ,
51
51
|_self : Val < bevy:: ecs:: entity:: Entity > | {
52
52
let output: u64 = bevy:: ecs:: entity:: Entity :: to_bits (
@@ -56,7 +56,7 @@ impl ::bevy::app::Plugin for BevyEcsScriptingPlugin {
56
56
output
57
57
} ,
58
58
)
59
- . overwrite_script_function (
59
+ . register (
60
60
"from_bits" ,
61
61
|bits : u64 | {
62
62
let output: Val < bevy:: ecs:: entity:: Entity > = bevy:: ecs:: entity:: Entity :: from_bits (
@@ -66,7 +66,7 @@ impl ::bevy::app::Plugin for BevyEcsScriptingPlugin {
66
66
output
67
67
} ,
68
68
)
69
- . overwrite_script_function (
69
+ . register (
70
70
"index" ,
71
71
|_self : Val < bevy:: ecs:: entity:: Entity > | {
72
72
let output: u32 = bevy:: ecs:: entity:: Entity :: index (
@@ -76,7 +76,7 @@ impl ::bevy::app::Plugin for BevyEcsScriptingPlugin {
76
76
output
77
77
} ,
78
78
)
79
- . overwrite_script_function (
79
+ . register (
80
80
"generation" ,
81
81
|_self : Val < bevy:: ecs:: entity:: Entity > | {
82
82
let output: u32 = bevy:: ecs:: entity:: Entity :: generation (
@@ -91,7 +91,7 @@ impl ::bevy::app::Plugin for BevyEcsScriptingPlugin {
91
91
NamespaceBuilder :: < :: bevy:: ecs:: world:: OnRemove > :: new ( world) ;
92
92
NamespaceBuilder :: < :: bevy:: ecs:: world:: OnReplace > :: new ( world) ;
93
93
NamespaceBuilder :: < :: bevy:: ecs:: component:: ComponentId > :: new ( world)
94
- . overwrite_script_function (
94
+ . register (
95
95
"eq" ,
96
96
|
97
97
_self : Ref < bevy:: ecs:: component:: ComponentId > ,
@@ -104,7 +104,7 @@ impl ::bevy::app::Plugin for BevyEcsScriptingPlugin {
104
104
output
105
105
} ,
106
106
)
107
- . overwrite_script_function (
107
+ . register (
108
108
"clone" ,
109
109
|_self : Ref < bevy:: ecs:: component:: ComponentId > | {
110
110
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 {
114
114
output
115
115
} ,
116
116
)
117
- . overwrite_script_function (
117
+ . register (
118
118
"assert_receiver_is_total_eq" ,
119
119
|_self : Ref < bevy:: ecs:: component:: ComponentId > | {
120
120
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 {
124
124
output
125
125
} ,
126
126
)
127
- . overwrite_script_function (
127
+ . register (
128
128
"new" ,
129
129
|index : usize | {
130
130
let output: Val < bevy:: ecs:: component:: ComponentId > = bevy:: ecs:: component:: ComponentId :: new (
@@ -134,7 +134,7 @@ impl ::bevy::app::Plugin for BevyEcsScriptingPlugin {
134
134
output
135
135
} ,
136
136
)
137
- . overwrite_script_function (
137
+ . register (
138
138
"index" ,
139
139
|_self : Val < bevy:: ecs:: component:: ComponentId > | {
140
140
let output: usize = bevy:: ecs:: component:: ComponentId :: index (
@@ -145,7 +145,7 @@ impl ::bevy::app::Plugin for BevyEcsScriptingPlugin {
145
145
} ,
146
146
) ;
147
147
NamespaceBuilder :: < :: bevy:: ecs:: component:: Tick > :: new ( world)
148
- . overwrite_script_function (
148
+ . register (
149
149
"new" ,
150
150
|tick : u32 | {
151
151
let output: Val < bevy:: ecs:: component:: Tick > = bevy:: ecs:: component:: Tick :: new (
@@ -155,23 +155,23 @@ impl ::bevy::app::Plugin for BevyEcsScriptingPlugin {
155
155
output
156
156
} ,
157
157
)
158
- . overwrite_script_function (
158
+ . register (
159
159
"get" ,
160
160
|_self : Val < bevy:: ecs:: component:: Tick > | {
161
161
let output: u32 = bevy:: ecs:: component:: Tick :: get ( _self. into_inner ( ) )
162
162
. into ( ) ;
163
163
output
164
164
} ,
165
165
)
166
- . overwrite_script_function (
166
+ . register (
167
167
"set" ,
168
168
|mut _self : Mut < bevy:: ecs:: component:: Tick > , tick : u32 | {
169
169
let output: ( ) = bevy:: ecs:: component:: Tick :: set ( & mut _self, tick)
170
170
. into ( ) ;
171
171
output
172
172
} ,
173
173
)
174
- . overwrite_script_function (
174
+ . register (
175
175
"is_newer_than" ,
176
176
|
177
177
_self : Val < bevy:: ecs:: component:: Tick > ,
@@ -187,7 +187,7 @@ impl ::bevy::app::Plugin for BevyEcsScriptingPlugin {
187
187
output
188
188
} ,
189
189
)
190
- . overwrite_script_function (
190
+ . register (
191
191
"eq" ,
192
192
|
193
193
_self : Ref < bevy:: ecs:: component:: Tick > ,
@@ -200,7 +200,7 @@ impl ::bevy::app::Plugin for BevyEcsScriptingPlugin {
200
200
output
201
201
} ,
202
202
)
203
- . overwrite_script_function (
203
+ . register (
204
204
"assert_receiver_is_total_eq" ,
205
205
|_self : Ref < bevy:: ecs:: component:: Tick > | {
206
206
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 {
210
210
output
211
211
} ,
212
212
)
213
- . overwrite_script_function (
213
+ . register (
214
214
"clone" ,
215
215
|_self : Ref < bevy:: ecs:: component:: Tick > | {
216
216
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 {
221
221
} ,
222
222
) ;
223
223
NamespaceBuilder :: < :: bevy:: ecs:: component:: ComponentTicks > :: new ( world)
224
- . overwrite_script_function (
224
+ . register (
225
225
"is_added" ,
226
226
|
227
227
_self : Ref < bevy:: ecs:: component:: ComponentTicks > ,
@@ -237,7 +237,7 @@ impl ::bevy::app::Plugin for BevyEcsScriptingPlugin {
237
237
output
238
238
} ,
239
239
)
240
- . overwrite_script_function (
240
+ . register (
241
241
"is_changed" ,
242
242
|
243
243
_self : Ref < bevy:: ecs:: component:: ComponentTicks > ,
@@ -253,7 +253,7 @@ impl ::bevy::app::Plugin for BevyEcsScriptingPlugin {
253
253
output
254
254
} ,
255
255
)
256
- . overwrite_script_function (
256
+ . register (
257
257
"new" ,
258
258
|change_tick : Val < bevy:: ecs:: component:: Tick > | {
259
259
let output: Val < bevy:: ecs:: component:: ComponentTicks > = bevy:: ecs:: component:: ComponentTicks :: new (
@@ -263,7 +263,7 @@ impl ::bevy::app::Plugin for BevyEcsScriptingPlugin {
263
263
output
264
264
} ,
265
265
)
266
- . overwrite_script_function (
266
+ . register (
267
267
"set_changed" ,
268
268
|
269
269
mut _self : Mut < bevy:: ecs:: component:: ComponentTicks > ,
@@ -277,7 +277,7 @@ impl ::bevy::app::Plugin for BevyEcsScriptingPlugin {
277
277
output
278
278
} ,
279
279
)
280
- . overwrite_script_function (
280
+ . register (
281
281
"clone" ,
282
282
|_self : Ref < bevy:: ecs:: component:: ComponentTicks > | {
283
283
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 {
288
288
} ,
289
289
) ;
290
290
NamespaceBuilder :: < :: bevy:: ecs:: identifier:: Identifier > :: new ( world)
291
- . overwrite_script_function (
291
+ . register (
292
292
"clone" ,
293
293
|_self : Ref < bevy:: ecs:: identifier:: Identifier > | {
294
294
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 {
298
298
output
299
299
} ,
300
300
)
301
- . overwrite_script_function (
301
+ . register (
302
302
"low" ,
303
303
|_self : Val < bevy:: ecs:: identifier:: Identifier > | {
304
304
let output: u32 = bevy:: ecs:: identifier:: Identifier :: low (
@@ -308,7 +308,7 @@ impl ::bevy::app::Plugin for BevyEcsScriptingPlugin {
308
308
output
309
309
} ,
310
310
)
311
- . overwrite_script_function (
311
+ . register (
312
312
"masked_high" ,
313
313
|_self : Val < bevy:: ecs:: identifier:: Identifier > | {
314
314
let output: u32 = bevy:: ecs:: identifier:: Identifier :: masked_high (
@@ -318,7 +318,7 @@ impl ::bevy::app::Plugin for BevyEcsScriptingPlugin {
318
318
output
319
319
} ,
320
320
)
321
- . overwrite_script_function (
321
+ . register (
322
322
"to_bits" ,
323
323
|_self : Val < bevy:: ecs:: identifier:: Identifier > | {
324
324
let output: u64 = bevy:: ecs:: identifier:: Identifier :: to_bits (
@@ -328,7 +328,7 @@ impl ::bevy::app::Plugin for BevyEcsScriptingPlugin {
328
328
output
329
329
} ,
330
330
)
331
- . overwrite_script_function (
331
+ . register (
332
332
"from_bits" ,
333
333
|value : u64 | {
334
334
let output: Val < bevy:: ecs:: identifier:: Identifier > = bevy:: ecs:: identifier:: Identifier :: from_bits (
@@ -338,7 +338,7 @@ impl ::bevy::app::Plugin for BevyEcsScriptingPlugin {
338
338
output
339
339
} ,
340
340
)
341
- . overwrite_script_function (
341
+ . register (
342
342
"eq" ,
343
343
|
344
344
_self : Ref < bevy:: ecs:: identifier:: Identifier > ,
@@ -352,7 +352,7 @@ impl ::bevy::app::Plugin for BevyEcsScriptingPlugin {
352
352
} ,
353
353
) ;
354
354
NamespaceBuilder :: < :: bevy:: ecs:: entity:: EntityHash > :: new ( world)
355
- . overwrite_script_function (
355
+ . register (
356
356
"clone" ,
357
357
|_self : Ref < bevy:: ecs:: entity:: EntityHash > | {
358
358
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 {
365
365
NamespaceBuilder :: <
366
366
:: bevy:: ecs:: removal_detection:: RemovedComponentEntity ,
367
367
> :: new ( world)
368
- . overwrite_script_function (
368
+ . register (
369
369
"clone" ,
370
370
|_self : Ref < bevy:: ecs:: removal_detection:: RemovedComponentEntity > | {
371
371
let output: Val <
0 commit comments