@@ -13,13 +13,8 @@ use bevy_script_api::{
1313 remote = "bevy::ecs::entity::Entity" ,
1414 functions[ r#"
1515
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;
2318
2419"# ,
2520 r#"
@@ -78,8 +73,13 @@ use bevy_script_api::{
7873"# ,
7974 r#"
8075
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;
8383
8484"# ,
8585 r#"
@@ -144,18 +144,6 @@ struct OnReplace {}
144144 remote = "bevy::ecs::component::ComponentId" ,
145145 functions[ r#"
146146
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-
159147 #[lua(
160148 as_trait = "std::cmp::PartialEq",
161149 kind = "MetaFunction",
@@ -180,6 +168,18 @@ struct OnReplace {}
180168 #[lua(kind = "Method")]
181169 fn index(self) -> usize;
182170
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+
183183"# ,
184184 r#"
185185#[lua(kind="MetaMethod", metamethod="ToString")]
@@ -198,6 +198,17 @@ struct ComponentId();
198198 #[lua(as_trait = "std::cmp::Eq", kind = "Method")]
199199 fn assert_receiver_is_total_eq(&self) -> ();
200200
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+
201212"# ,
202213 r#"
203214
@@ -239,17 +250,6 @@ struct ComponentId();
239250 this_run: bevy::ecs::component::Tick,
240251 ) -> bool;
241252
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-
253253"# ,
254254 r#"
255255#[lua(kind="MetaMethod", metamethod="ToString")]
@@ -342,6 +342,12 @@ struct ComponentTicks {}
342342 remote = "bevy::ecs::identifier::Identifier" ,
343343 functions[ r#"
344344
345+ #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))]
346+ fn clone(&self) -> bevy::ecs::identifier::Identifier;
347+
348+ "# ,
349+ r#"
350+
345351 #[lua(
346352 as_trait = "std::cmp::PartialEq",
347353 kind = "MetaFunction",
@@ -381,12 +387,6 @@ struct ComponentTicks {}
381387 #[lua(kind = "Function", output(proxy))]
382388 fn from_bits(value: u64) -> bevy::ecs::identifier::Identifier;
383389
384- "# ,
385- r#"
386-
387- #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))]
388- fn clone(&self) -> bevy::ecs::identifier::Identifier;
389-
390390"# ,
391391 r#"
392392#[lua(kind="MetaMethod", metamethod="ToString")]
0 commit comments