@@ -13,13 +13,8 @@ use bevy_script_api::{
13
13
remote = "bevy::ecs::entity::Entity" ,
14
14
functions[ r#"
15
15
16
- #[lua(
17
- as_trait = "std::cmp::PartialEq",
18
- kind = "MetaFunction",
19
- composite = "eq",
20
- metamethod = "Eq",
21
- )]
22
- fn eq(&self, #[proxy] other: &entity::Entity) -> bool;
16
+ #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))]
17
+ fn clone(&self) -> bevy::ecs::entity::Entity;
23
18
24
19
"# ,
25
20
r#"
@@ -78,8 +73,13 @@ use bevy_script_api::{
78
73
"# ,
79
74
r#"
80
75
81
- #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))]
82
- fn clone(&self) -> bevy::ecs::entity::Entity;
76
+ #[lua(
77
+ as_trait = "std::cmp::PartialEq",
78
+ kind = "MetaFunction",
79
+ composite = "eq",
80
+ metamethod = "Eq",
81
+ )]
82
+ fn eq(&self, #[proxy] other: &entity::Entity) -> bool;
83
83
84
84
"# ,
85
85
r#"
@@ -144,18 +144,6 @@ struct OnReplace {}
144
144
remote = "bevy::ecs::component::ComponentId" ,
145
145
functions[ r#"
146
146
147
- #[lua(as_trait = "std::cmp::Eq", kind = "Method")]
148
- fn assert_receiver_is_total_eq(&self) -> ();
149
-
150
- "# ,
151
- r#"
152
-
153
- #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))]
154
- fn clone(&self) -> bevy::ecs::component::ComponentId;
155
-
156
- "# ,
157
- r#"
158
-
159
147
#[lua(
160
148
as_trait = "std::cmp::PartialEq",
161
149
kind = "MetaFunction",
@@ -180,6 +168,18 @@ struct OnReplace {}
180
168
#[lua(kind = "Method")]
181
169
fn index(self) -> usize;
182
170
171
+ "# ,
172
+ r#"
173
+
174
+ #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))]
175
+ fn clone(&self) -> bevy::ecs::component::ComponentId;
176
+
177
+ "# ,
178
+ r#"
179
+
180
+ #[lua(as_trait = "std::cmp::Eq", kind = "Method")]
181
+ fn assert_receiver_is_total_eq(&self) -> ();
182
+
183
183
"# ,
184
184
r#"
185
185
#[lua(kind="MetaMethod", metamethod="ToString")]
@@ -198,6 +198,17 @@ struct ComponentId();
198
198
#[lua(as_trait = "std::cmp::Eq", kind = "Method")]
199
199
fn assert_receiver_is_total_eq(&self) -> ();
200
200
201
+ "# ,
202
+ r#"
203
+
204
+ #[lua(
205
+ as_trait = "std::cmp::PartialEq",
206
+ kind = "MetaFunction",
207
+ composite = "eq",
208
+ metamethod = "Eq",
209
+ )]
210
+ fn eq(&self, #[proxy] other: &component::Tick) -> bool;
211
+
201
212
"# ,
202
213
r#"
203
214
@@ -239,17 +250,6 @@ struct ComponentId();
239
250
this_run: bevy::ecs::component::Tick,
240
251
) -> bool;
241
252
242
- "# ,
243
- r#"
244
-
245
- #[lua(
246
- as_trait = "std::cmp::PartialEq",
247
- kind = "MetaFunction",
248
- composite = "eq",
249
- metamethod = "Eq",
250
- )]
251
- fn eq(&self, #[proxy] other: &component::Tick) -> bool;
252
-
253
253
"# ,
254
254
r#"
255
255
#[lua(kind="MetaMethod", metamethod="ToString")]
@@ -342,6 +342,12 @@ struct ComponentTicks {}
342
342
remote = "bevy::ecs::identifier::Identifier" ,
343
343
functions[ r#"
344
344
345
+ #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))]
346
+ fn clone(&self) -> bevy::ecs::identifier::Identifier;
347
+
348
+ "# ,
349
+ r#"
350
+
345
351
#[lua(
346
352
as_trait = "std::cmp::PartialEq",
347
353
kind = "MetaFunction",
@@ -381,12 +387,6 @@ struct ComponentTicks {}
381
387
#[lua(kind = "Function", output(proxy))]
382
388
fn from_bits(value: u64) -> bevy::ecs::identifier::Identifier;
383
389
384
- "# ,
385
- r#"
386
-
387
- #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))]
388
- fn clone(&self) -> bevy::ecs::identifier::Identifier;
389
-
390
390
"# ,
391
391
r#"
392
392
#[lua(kind="MetaMethod", metamethod="ToString")]
0 commit comments