Moved files

This commit is contained in:
2023-01-25 12:03:07 +01:00
parent 8c5c9b4ec6
commit f1591bc9f1
21 changed files with 0 additions and 2 deletions
+19
View File
@@ -0,0 +1,19 @@
use bevy::reflect::{FromReflect, Reflect};
use super::Precision;
#[derive(Reflect, FromReflect, Default, Copy, Clone, Debug)]
pub struct Length(pub Precision);
impl From<i16> for Length {
fn from(i: i16) -> Self {
Self(Precision::from(i))
}
}
impl From<f32> for Length {
fn from(i: f32) -> Self {
#[allow(clippy::useless_conversion)]
Self(Precision::from(i))
}
}