diff --git a/src/map.rs b/src/map.rs index afb9d9b..3a05e6c 100644 --- a/src/map.rs +++ b/src/map.rs @@ -40,6 +40,12 @@ pub struct Portal; #[reflect(Component)] pub struct SpawnColliderPerTile(pub bool); +impl From for SpawnColliderPerTile { + fn from(v: bool) -> Self { + Self(v) + } +} + #[derive(Component, Clone, Debug, Deref, DerefMut, Reflect)] #[reflect(Component)] pub struct SpawnColliders(pub bool); @@ -50,6 +56,12 @@ impl Default for SpawnColliders { } } +impl From for SpawnColliders { + fn from(v: bool) -> Self { + Self(v) + } +} + #[derive(Component, Clone, Debug, Deref, DerefMut, Reflect)] #[reflect(Component)] pub struct SpawnPortals(pub bool);