@@ -20,21 +20,24 @@ impl ::bevy::app::Plugin for BevyEcsScriptingPlugin {
20
20
let mut world = app. world_mut ( ) ;
21
21
NamespaceBuilder :: < :: bevy:: ecs:: entity:: Entity > :: new ( world)
22
22
. register (
23
- "from_raw " ,
24
- |index : u32 | {
25
- let output: Val < bevy:: ecs:: entity:: Entity > = bevy:: ecs:: entity:: Entity :: from_raw (
26
- index ,
23
+ "clone " ,
24
+ |_self : Ref < bevy :: ecs :: entity :: Entity > | {
25
+ let output: Val < bevy:: ecs:: entity:: Entity > = < bevy:: ecs:: entity:: Entity as std :: clone :: Clone > :: clone (
26
+ & _self ,
27
27
)
28
28
. into ( ) ;
29
29
output
30
30
} ,
31
31
)
32
32
. register (
33
- "to_bits" ,
34
- |_self : Val < bevy:: ecs:: entity:: Entity > | {
35
- let output: u64 = bevy:: ecs:: entity:: Entity :: to_bits (
36
- _self. into_inner ( ) ,
37
- )
33
+ "eq" ,
34
+ |
35
+ _self : Ref < bevy:: ecs:: entity:: Entity > ,
36
+ other : Ref < bevy:: ecs:: entity:: Entity > |
37
+ {
38
+ let output: bool = <bevy:: ecs:: entity:: Entity as std:: cmp:: PartialEq <
39
+ bevy:: ecs:: entity:: Entity ,
40
+ > >:: eq ( & _self, & other)
38
41
. into ( ) ;
39
42
output
40
43
} ,
@@ -50,10 +53,10 @@ impl ::bevy::app::Plugin for BevyEcsScriptingPlugin {
50
53
} ,
51
54
)
52
55
. register (
53
- "index " ,
54
- |_self : Val < bevy :: ecs :: entity :: Entity > | {
55
- let output: u32 = bevy:: ecs:: entity:: Entity :: index (
56
- _self . into_inner ( ) ,
56
+ "from_raw " ,
57
+ |index : u32 | {
58
+ let output: Val < bevy :: ecs :: entity :: Entity > = bevy:: ecs:: entity:: Entity :: from_raw (
59
+ index ,
57
60
)
58
61
. into ( ) ;
59
62
output
@@ -70,24 +73,21 @@ impl ::bevy::app::Plugin for BevyEcsScriptingPlugin {
70
73
} ,
71
74
)
72
75
. register (
73
- "clone " ,
74
- |_self : Ref < bevy:: ecs:: entity:: Entity > | {
75
- let output: Val < bevy :: ecs :: entity :: Entity > = < bevy:: ecs:: entity:: Entity as std :: clone :: Clone > :: clone (
76
- & _self,
76
+ "index " ,
77
+ |_self : Val < bevy:: ecs:: entity:: Entity > | {
78
+ let output: u32 = bevy:: ecs:: entity:: Entity :: index (
79
+ _self. into_inner ( ) ,
77
80
)
78
81
. into ( ) ;
79
82
output
80
83
} ,
81
84
)
82
85
. register (
83
- "eq" ,
84
- |
85
- _self : Ref < bevy:: ecs:: entity:: Entity > ,
86
- other : Ref < bevy:: ecs:: entity:: Entity > |
87
- {
88
- let output: bool = <bevy:: ecs:: entity:: Entity as std:: cmp:: PartialEq <
89
- bevy:: ecs:: entity:: Entity ,
90
- > >:: eq ( & _self, & other)
86
+ "to_bits" ,
87
+ |_self : Val < bevy:: ecs:: entity:: Entity > | {
88
+ let output: u64 = bevy:: ecs:: entity:: Entity :: to_bits (
89
+ _self. into_inner ( ) ,
90
+ )
91
91
. into ( ) ;
92
92
output
93
93
} ,
@@ -107,6 +107,16 @@ impl ::bevy::app::Plugin for BevyEcsScriptingPlugin {
107
107
output
108
108
} ,
109
109
)
110
+ . register (
111
+ "clone" ,
112
+ |_self : Ref < bevy:: ecs:: component:: ComponentId > | {
113
+ let output: Val < bevy:: ecs:: component:: ComponentId > = <bevy:: ecs:: component:: ComponentId as std:: clone:: Clone >:: clone (
114
+ & _self,
115
+ )
116
+ . into ( ) ;
117
+ output
118
+ } ,
119
+ )
110
120
. register (
111
121
"eq" ,
112
122
|
@@ -121,10 +131,10 @@ impl ::bevy::app::Plugin for BevyEcsScriptingPlugin {
121
131
} ,
122
132
)
123
133
. register (
124
- "clone " ,
125
- |_self : Ref < bevy:: ecs:: component:: ComponentId > | {
126
- let output: Val < bevy :: ecs :: component :: ComponentId > = < bevy:: ecs:: component:: ComponentId as std :: clone :: Clone > :: clone (
127
- & _self,
134
+ "index " ,
135
+ |_self : Val < bevy:: ecs:: component:: ComponentId > | {
136
+ let output: usize = bevy:: ecs:: component:: ComponentId :: index (
137
+ _self. into_inner ( ) ,
128
138
)
129
139
. into ( ) ;
130
140
output
@@ -139,22 +149,22 @@ impl ::bevy::app::Plugin for BevyEcsScriptingPlugin {
139
149
. into ( ) ;
140
150
output
141
151
} ,
142
- )
152
+ ) ;
153
+ NamespaceBuilder :: < :: bevy:: ecs:: component:: Tick > :: new ( world)
143
154
. register (
144
- "index " ,
145
- |_self : Val < bevy:: ecs:: component:: ComponentId > | {
146
- let output: usize = bevy:: ecs:: component:: ComponentId :: index (
147
- _self. into_inner ( ) ,
155
+ "assert_receiver_is_total_eq " ,
156
+ |_self : Ref < bevy:: ecs:: component:: Tick > | {
157
+ let output: ( ) = < bevy:: ecs:: component:: Tick as std :: cmp :: Eq > :: assert_receiver_is_total_eq (
158
+ & _self,
148
159
)
149
160
. into ( ) ;
150
161
output
151
162
} ,
152
- ) ;
153
- NamespaceBuilder :: < :: bevy:: ecs:: component:: Tick > :: new ( world)
163
+ )
154
164
. register (
155
- "assert_receiver_is_total_eq " ,
165
+ "clone " ,
156
166
|_self : Ref < bevy:: ecs:: component:: Tick > | {
157
- let output: ( ) = <bevy:: ecs:: component:: Tick as std:: cmp :: Eq >:: assert_receiver_is_total_eq (
167
+ let output: Val < bevy :: ecs :: component :: Tick > = <bevy:: ecs:: component:: Tick as std:: clone :: Clone >:: clone (
158
168
& _self,
159
169
)
160
170
. into ( ) ;
@@ -174,16 +184,6 @@ impl ::bevy::app::Plugin for BevyEcsScriptingPlugin {
174
184
output
175
185
} ,
176
186
)
177
- . register (
178
- "new" ,
179
- |tick : u32 | {
180
- let output: Val < bevy:: ecs:: component:: Tick > = bevy:: ecs:: component:: Tick :: new (
181
- tick,
182
- )
183
- . into ( ) ;
184
- output
185
- } ,
186
- )
187
187
. register (
188
188
"get" ,
189
189
|_self : Val < bevy:: ecs:: component:: Tick > | {
@@ -192,14 +192,6 @@ impl ::bevy::app::Plugin for BevyEcsScriptingPlugin {
192
192
output
193
193
} ,
194
194
)
195
- . register (
196
- "set" ,
197
- |mut _self : Mut < bevy:: ecs:: component:: Tick > , tick : u32 | {
198
- let output: ( ) = bevy:: ecs:: component:: Tick :: set ( & mut _self, tick)
199
- . into ( ) ;
200
- output
201
- } ,
202
- )
203
195
. register (
204
196
"is_newer_than" ,
205
197
|
@@ -217,14 +209,22 @@ impl ::bevy::app::Plugin for BevyEcsScriptingPlugin {
217
209
} ,
218
210
)
219
211
. register (
220
- "clone " ,
221
- |_self : Ref < bevy :: ecs :: component :: Tick > | {
222
- let output: Val < bevy:: ecs:: component:: Tick > = < bevy:: ecs:: component:: Tick as std :: clone :: Clone > :: clone (
223
- & _self ,
212
+ "new " ,
213
+ |tick : u32 | {
214
+ let output: Val < bevy:: ecs:: component:: Tick > = bevy:: ecs:: component:: Tick :: new (
215
+ tick ,
224
216
)
225
217
. into ( ) ;
226
218
output
227
219
} ,
220
+ )
221
+ . register (
222
+ "set" ,
223
+ |mut _self : Mut < bevy:: ecs:: component:: Tick > , tick : u32 | {
224
+ let output: ( ) = bevy:: ecs:: component:: Tick :: set ( & mut _self, tick)
225
+ . into ( ) ;
226
+ output
227
+ } ,
228
228
) ;
229
229
NamespaceBuilder :: < :: bevy:: ecs:: component:: ComponentTicks > :: new ( world)
230
230
. register (
@@ -294,6 +294,16 @@ impl ::bevy::app::Plugin for BevyEcsScriptingPlugin {
294
294
} ,
295
295
) ;
296
296
NamespaceBuilder :: < :: bevy:: ecs:: identifier:: Identifier > :: new ( world)
297
+ . register (
298
+ "clone" ,
299
+ |_self : Ref < bevy:: ecs:: identifier:: Identifier > | {
300
+ let output: Val < bevy:: ecs:: identifier:: Identifier > = <bevy:: ecs:: identifier:: Identifier as std:: clone:: Clone >:: clone (
301
+ & _self,
302
+ )
303
+ . into ( ) ;
304
+ output
305
+ } ,
306
+ )
297
307
. register (
298
308
"eq" ,
299
309
|
@@ -308,10 +318,10 @@ impl ::bevy::app::Plugin for BevyEcsScriptingPlugin {
308
318
} ,
309
319
)
310
320
. register (
311
- "clone " ,
312
- |_self : Ref < bevy :: ecs :: identifier :: Identifier > | {
313
- let output: Val < bevy:: ecs:: identifier:: Identifier > = < bevy:: ecs:: identifier:: Identifier as std :: clone :: Clone > :: clone (
314
- & _self ,
321
+ "from_bits " ,
322
+ |value : u64 | {
323
+ let output: Val < bevy:: ecs:: identifier:: Identifier > = bevy:: ecs:: identifier:: Identifier :: from_bits (
324
+ value ,
315
325
)
316
326
. into ( ) ;
317
327
output
@@ -346,16 +356,6 @@ impl ::bevy::app::Plugin for BevyEcsScriptingPlugin {
346
356
. into ( ) ;
347
357
output
348
358
} ,
349
- )
350
- . register (
351
- "from_bits" ,
352
- |value : u64 | {
353
- let output: Val < bevy:: ecs:: identifier:: Identifier > = bevy:: ecs:: identifier:: Identifier :: from_bits (
354
- value,
355
- )
356
- . into ( ) ;
357
- output
358
- } ,
359
359
) ;
360
360
NamespaceBuilder :: < :: bevy:: ecs:: entity:: EntityHash > :: new ( world)
361
361
. register (
0 commit comments