11use crate as bevy_reflect;
2- use crate :: { std_traits :: ReflectDefault , ReflectDeserialize , ReflectSerialize } ;
2+ use crate :: prelude :: ReflectDefault ;
33use bevy_reflect_derive:: { impl_reflect, impl_reflect_value} ;
44use glam:: * ;
55
66impl_reflect ! (
7- #[ reflect( Debug , Hash , PartialEq , Default , Deserialize , Serialize ) ]
7+ #[ reflect( Debug , Hash , PartialEq , Default ) ]
88 #[ type_path = "glam" ]
99 struct IVec2 {
1010 x: i32 ,
1111 y: i32 ,
1212 }
1313) ;
1414impl_reflect ! (
15- #[ reflect( Debug , Hash , PartialEq , Default , Deserialize , Serialize ) ]
15+ #[ reflect( Debug , Hash , PartialEq , Default ) ]
1616 #[ type_path = "glam" ]
1717 struct IVec3 {
1818 x: i32 ,
@@ -21,7 +21,7 @@ impl_reflect!(
2121 }
2222) ;
2323impl_reflect ! (
24- #[ reflect( Debug , Hash , PartialEq , Default , Deserialize , Serialize ) ]
24+ #[ reflect( Debug , Hash , PartialEq , Default ) ]
2525 #[ type_path = "glam" ]
2626 struct IVec4 {
2727 x: i32 ,
@@ -32,7 +32,7 @@ impl_reflect!(
3232) ;
3333
3434impl_reflect ! (
35- #[ reflect( Debug , Hash , PartialEq , Default , Deserialize , Serialize ) ]
35+ #[ reflect( Debug , Hash , PartialEq , Default ) ]
3636 #[ type_path = "glam" ]
3737 struct I64Vec2 {
3838 x: i64 ,
@@ -41,7 +41,7 @@ impl_reflect!(
4141) ;
4242
4343impl_reflect ! (
44- #[ reflect( Debug , Hash , PartialEq , Default , Deserialize , Serialize ) ]
44+ #[ reflect( Debug , Hash , PartialEq , Default ) ]
4545 #[ type_path = "glam" ]
4646 struct I64Vec3 {
4747 x: i64 ,
@@ -51,7 +51,7 @@ impl_reflect!(
5151) ;
5252
5353impl_reflect ! (
54- #[ reflect( Debug , Hash , PartialEq , Default , Deserialize , Serialize ) ]
54+ #[ reflect( Debug , Hash , PartialEq , Default ) ]
5555 #[ type_path = "glam" ]
5656 struct I64Vec4 {
5757 x: i64 ,
@@ -62,15 +62,15 @@ impl_reflect!(
6262) ;
6363
6464impl_reflect ! (
65- #[ reflect( Debug , Hash , PartialEq , Default , Deserialize , Serialize ) ]
65+ #[ reflect( Debug , Hash , PartialEq , Default ) ]
6666 #[ type_path = "glam" ]
6767 struct UVec2 {
6868 x: u32 ,
6969 y: u32 ,
7070 }
7171) ;
7272impl_reflect ! (
73- #[ reflect( Debug , Hash , PartialEq , Default , Deserialize , Serialize ) ]
73+ #[ reflect( Debug , Hash , PartialEq , Default ) ]
7474 #[ type_path = "glam" ]
7575 struct UVec3 {
7676 x: u32 ,
@@ -79,7 +79,7 @@ impl_reflect!(
7979 }
8080) ;
8181impl_reflect ! (
82- #[ reflect( Debug , Hash , PartialEq , Default , Deserialize , Serialize ) ]
82+ #[ reflect( Debug , Hash , PartialEq , Default ) ]
8383 #[ type_path = "glam" ]
8484 struct UVec4 {
8585 x: u32 ,
@@ -90,15 +90,15 @@ impl_reflect!(
9090) ;
9191
9292impl_reflect ! (
93- #[ reflect( Debug , Hash , PartialEq , Default , Deserialize , Serialize ) ]
93+ #[ reflect( Debug , Hash , PartialEq , Default ) ]
9494 #[ type_path = "glam" ]
9595 struct U64Vec2 {
9696 x: u64 ,
9797 y: u64 ,
9898 }
9999) ;
100100impl_reflect ! (
101- #[ reflect( Debug , Hash , PartialEq , Default , Deserialize , Serialize ) ]
101+ #[ reflect( Debug , Hash , PartialEq , Default ) ]
102102 #[ type_path = "glam" ]
103103 struct U64Vec3 {
104104 x: u64 ,
@@ -107,7 +107,7 @@ impl_reflect!(
107107 }
108108) ;
109109impl_reflect ! (
110- #[ reflect( Debug , Hash , PartialEq , Default , Deserialize , Serialize ) ]
110+ #[ reflect( Debug , Hash , PartialEq , Default ) ]
111111 #[ type_path = "glam" ]
112112 struct U64Vec4 {
113113 x: u64 ,
@@ -118,15 +118,15 @@ impl_reflect!(
118118) ;
119119
120120impl_reflect ! (
121- #[ reflect( Debug , PartialEq , Default , Deserialize , Serialize ) ]
121+ #[ reflect( Debug , PartialEq , Default ) ]
122122 #[ type_path = "glam" ]
123123 struct Vec2 {
124124 x: f32 ,
125125 y: f32 ,
126126 }
127127) ;
128128impl_reflect ! (
129- #[ reflect( Debug , PartialEq , Default , Deserialize , Serialize ) ]
129+ #[ reflect( Debug , PartialEq , Default ) ]
130130 #[ type_path = "glam" ]
131131 struct Vec3 {
132132 x: f32 ,
@@ -135,7 +135,7 @@ impl_reflect!(
135135 }
136136) ;
137137impl_reflect ! (
138- #[ reflect( Debug , PartialEq , Default , Deserialize , Serialize ) ]
138+ #[ reflect( Debug , PartialEq , Default ) ]
139139 #[ type_path = "glam" ]
140140 struct Vec3A {
141141 x: f32 ,
@@ -144,7 +144,7 @@ impl_reflect!(
144144 }
145145) ;
146146impl_reflect ! (
147- #[ reflect( Debug , PartialEq , Default , Deserialize , Serialize ) ]
147+ #[ reflect( Debug , PartialEq , Default ) ]
148148 #[ type_path = "glam" ]
149149 struct Vec4 {
150150 x: f32 ,
@@ -155,15 +155,15 @@ impl_reflect!(
155155) ;
156156
157157impl_reflect ! (
158- #[ reflect( Debug , PartialEq , Default , Deserialize , Serialize ) ]
158+ #[ reflect( Debug , PartialEq , Default ) ]
159159 #[ type_path = "glam" ]
160160 struct BVec2 {
161161 x: bool ,
162162 y: bool ,
163163 }
164164) ;
165165impl_reflect ! (
166- #[ reflect( Debug , PartialEq , Default , Deserialize , Serialize ) ]
166+ #[ reflect( Debug , PartialEq , Default ) ]
167167 #[ type_path = "glam" ]
168168 struct BVec3 {
169169 x: bool ,
@@ -172,7 +172,7 @@ impl_reflect!(
172172 }
173173) ;
174174impl_reflect ! (
175- #[ reflect( Debug , PartialEq , Default , Deserialize , Serialize ) ]
175+ #[ reflect( Debug , PartialEq , Default ) ]
176176 #[ type_path = "glam" ]
177177 struct BVec4 {
178178 x: bool ,
@@ -183,15 +183,15 @@ impl_reflect!(
183183) ;
184184
185185impl_reflect ! (
186- #[ reflect( Debug , PartialEq , Default , Deserialize , Serialize ) ]
186+ #[ reflect( Debug , PartialEq , Default ) ]
187187 #[ type_path = "glam" ]
188188 struct DVec2 {
189189 x: f64 ,
190190 y: f64 ,
191191 }
192192) ;
193193impl_reflect ! (
194- #[ reflect( Debug , PartialEq , Default , Deserialize , Serialize ) ]
194+ #[ reflect( Debug , PartialEq , Default ) ]
195195 #[ type_path = "glam" ]
196196 struct DVec3 {
197197 x: f64 ,
@@ -200,7 +200,7 @@ impl_reflect!(
200200 }
201201) ;
202202impl_reflect ! (
203- #[ reflect( Debug , PartialEq , Default , Deserialize , Serialize ) ]
203+ #[ reflect( Debug , PartialEq , Default ) ]
204204 #[ type_path = "glam" ]
205205 struct DVec4 {
206206 x: f64 ,
@@ -211,15 +211,15 @@ impl_reflect!(
211211) ;
212212
213213impl_reflect ! (
214- #[ reflect( Debug , PartialEq , Default , Deserialize , Serialize ) ]
214+ #[ reflect( Debug , PartialEq , Default ) ]
215215 #[ type_path = "glam" ]
216216 struct Mat2 {
217217 x_axis: Vec2 ,
218218 y_axis: Vec2 ,
219219 }
220220) ;
221221impl_reflect ! (
222- #[ reflect( Debug , PartialEq , Default , Deserialize , Serialize ) ]
222+ #[ reflect( Debug , PartialEq , Default ) ]
223223 #[ type_path = "glam" ]
224224 struct Mat3 {
225225 x_axis: Vec3 ,
@@ -228,7 +228,7 @@ impl_reflect!(
228228 }
229229) ;
230230impl_reflect ! (
231- #[ reflect( Debug , PartialEq , Default , Deserialize , Serialize ) ]
231+ #[ reflect( Debug , PartialEq , Default ) ]
232232 #[ type_path = "glam" ]
233233 struct Mat3A {
234234 x_axis: Vec3A ,
@@ -237,7 +237,7 @@ impl_reflect!(
237237 }
238238) ;
239239impl_reflect ! (
240- #[ reflect( Debug , PartialEq , Default , Deserialize , Serialize ) ]
240+ #[ reflect( Debug , PartialEq , Default ) ]
241241 #[ type_path = "glam" ]
242242 struct Mat4 {
243243 x_axis: Vec4 ,
@@ -248,15 +248,15 @@ impl_reflect!(
248248) ;
249249
250250impl_reflect ! (
251- #[ reflect( Debug , PartialEq , Default , Deserialize , Serialize ) ]
251+ #[ reflect( Debug , PartialEq , Default ) ]
252252 #[ type_path = "glam" ]
253253 struct DMat2 {
254254 x_axis: DVec2 ,
255255 y_axis: DVec2 ,
256256 }
257257) ;
258258impl_reflect ! (
259- #[ reflect( Debug , PartialEq , Default , Deserialize , Serialize ) ]
259+ #[ reflect( Debug , PartialEq , Default ) ]
260260 #[ type_path = "glam" ]
261261 struct DMat3 {
262262 x_axis: DVec3 ,
@@ -265,7 +265,7 @@ impl_reflect!(
265265 }
266266) ;
267267impl_reflect ! (
268- #[ reflect( Debug , PartialEq , Default , Deserialize , Serialize ) ]
268+ #[ reflect( Debug , PartialEq , Default ) ]
269269 #[ type_path = "glam" ]
270270 struct DMat4 {
271271 x_axis: DVec4 ,
@@ -276,15 +276,15 @@ impl_reflect!(
276276) ;
277277
278278impl_reflect ! (
279- #[ reflect( Debug , PartialEq , Default , Deserialize , Serialize ) ]
279+ #[ reflect( Debug , PartialEq , Default ) ]
280280 #[ type_path = "glam" ]
281281 struct Affine2 {
282282 matrix2: Mat2 ,
283283 translation: Vec2 ,
284284 }
285285) ;
286286impl_reflect ! (
287- #[ reflect( Debug , PartialEq , Default , Deserialize , Serialize ) ]
287+ #[ reflect( Debug , PartialEq , Default ) ]
288288 #[ type_path = "glam" ]
289289 struct Affine3A {
290290 matrix3: Mat3A ,
@@ -293,15 +293,15 @@ impl_reflect!(
293293) ;
294294
295295impl_reflect ! (
296- #[ reflect( Debug , PartialEq , Default , Deserialize , Serialize ) ]
296+ #[ reflect( Debug , PartialEq , Default ) ]
297297 #[ type_path = "glam" ]
298298 struct DAffine2 {
299299 matrix2: DMat2 ,
300300 translation: DVec2 ,
301301 }
302302) ;
303303impl_reflect ! (
304- #[ reflect( Debug , PartialEq , Default , Deserialize , Serialize ) ]
304+ #[ reflect( Debug , PartialEq , Default ) ]
305305 #[ type_path = "glam" ]
306306 struct DAffine3 {
307307 matrix3: DMat3 ,
@@ -310,7 +310,7 @@ impl_reflect!(
310310) ;
311311
312312impl_reflect ! (
313- #[ reflect( Debug , PartialEq , Default , Deserialize , Serialize ) ]
313+ #[ reflect( Debug , PartialEq , Default ) ]
314314 #[ type_path = "glam" ]
315315 struct Quat {
316316 x: f32 ,
@@ -320,7 +320,7 @@ impl_reflect!(
320320 }
321321) ;
322322impl_reflect ! (
323- #[ reflect( Debug , PartialEq , Default , Deserialize , Serialize ) ]
323+ #[ reflect( Debug , PartialEq , Default ) ]
324324 #[ type_path = "glam" ]
325325 struct DQuat {
326326 x: f64 ,
@@ -330,6 +330,6 @@ impl_reflect!(
330330 }
331331) ;
332332
333- impl_reflect_value ! ( :: glam:: EulerRot ( Debug , Default , Deserialize , Serialize ) ) ;
334- impl_reflect_value ! ( :: glam:: BVec3A ( Debug , Default , Deserialize , Serialize ) ) ;
335- impl_reflect_value ! ( :: glam:: BVec4A ( Debug , Default , Deserialize , Serialize ) ) ;
333+ impl_reflect_value ! ( :: glam:: EulerRot ( Debug , Default ) ) ;
334+ impl_reflect_value ! ( :: glam:: BVec3A ( Debug , Default ) ) ;
335+ impl_reflect_value ! ( :: glam:: BVec4A ( Debug , Default ) ) ;
0 commit comments