impl property for euclid types
This commit is contained in:
		
							parent
							
								
									5787bcb2c5
								
							
						
					
					
						commit
						0a348af630
					
				| @ -12,3 +12,4 @@ ron = { git = "https://github.com/ron-rs/ron", rev = "35355ba7eb495f07282162826c | ||||
| glam = { version = "0.8.7", features = ["serde"] } | ||||
| legion = { path = "../bevy_legion" } | ||||
| smallvec = { version = "1.4", features = ["serde"] } | ||||
| euclid = { git = "https://github.com/servo/euclid", rev = "1a8b95d46fa33978f7a6dcbb7a4c0f2a0550a1c9", features = ["serde"]} | ||||
| @ -0,0 +1,24 @@ | ||||
| use crate::impl_property; | ||||
| use euclid::*; | ||||
| use serde::{Deserialize, Serialize}; | ||||
| 
 | ||||
| impl_property!(Length<T, Src> where Self: Send + Sync + Clone + Serialize + for<'de> Deserialize<'de> +'static); | ||||
| impl_property!(Point2D<T, Src> where Self: Send + Sync + Clone + Serialize + for<'de> Deserialize<'de> +'static); | ||||
| impl_property!(Point3D<T, Src> where Self: Send + Sync + Clone + Serialize + for<'de> Deserialize<'de> +'static); | ||||
| impl_property!(Vector2D<T, Src> where Self: Send + Sync + Clone + Serialize + for<'de> Deserialize<'de> +'static); | ||||
| impl_property!(Vector3D<T, Src> where Self: Send + Sync + Clone + Serialize + for<'de> Deserialize<'de> +'static); | ||||
| impl_property!(HomogeneousVector<T, Src> where Self: Send + Sync + Clone + Serialize + for<'de> Deserialize<'de> +'static); | ||||
| impl_property!(Size2D<T, Src> where Self: Send + Sync + Clone + Serialize + for<'de> Deserialize<'de> +'static); | ||||
| impl_property!(Size3D<T, Src> where Self: Send + Sync + Clone + Serialize + for<'de> Deserialize<'de> +'static); | ||||
| impl_property!(Rect<T, Src> where Self: Send + Sync + Clone + Serialize + for<'de> Deserialize<'de> +'static); | ||||
| impl_property!(Box2D<T, Src> where Self: Send + Sync + Clone + Serialize + for<'de> Deserialize<'de> +'static); | ||||
| impl_property!(Box3D<T, Src> where Self: Send + Sync + Clone + Serialize + for<'de> Deserialize<'de> +'static); | ||||
| impl_property!(SideOffsets2D<T, Src> where Self: Send + Sync + Clone + Serialize + for<'de> Deserialize<'de> +'static); | ||||
| impl_property!(Transform2D<T, Src, Dst> where Self: Send + Sync + Clone + Serialize + for<'de> Deserialize<'de> +'static); | ||||
| impl_property!(Transform3D<T, Src, Dst> where Self: Send + Sync + Clone + Serialize + for<'de> Deserialize<'de> +'static); | ||||
| impl_property!(Rotation2D<T, Src, Dst> where Self: Send + Sync + Clone + Serialize + for<'de> Deserialize<'de> +'static); | ||||
| impl_property!(Rotation3D<T, Src, Dst> where Self: Send + Sync + Clone + Serialize + for<'de> Deserialize<'de> +'static); | ||||
| impl_property!(Translation2D<T, Src, Dst> where Self: Send + Sync + Clone + Serialize + for<'de> Deserialize<'de> +'static); | ||||
| impl_property!(Translation3D<T, Src, Dst> where Self: Send + Sync + Clone + Serialize + for<'de> Deserialize<'de> +'static); | ||||
| impl_property!(Scale<T, Src, Dst> where Self: Send + Sync + Clone + Serialize + for<'de> Deserialize<'de> +'static); | ||||
| impl_property!(RigidTransform3D<T, Src, Dst> where Self: Send + Sync + Clone + Serialize + for<'de> Deserialize<'de> +'static); | ||||
| @ -1,3 +1,4 @@ | ||||
| mod impl_property_euclid; | ||||
| mod impl_property_glam; | ||||
| mod impl_property_legion; | ||||
| mod impl_property_smallvec; | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Carter Anderson
						Carter Anderson