From 1176c65ce9528de677b077b0f752e6e88fe91fbf Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Sat, 12 Feb 2022 08:50:54 -0600 Subject: [PATCH] Add another conversion. --- src/map.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/map.rs b/src/map.rs index 3a05e6c..8eefc23 100644 --- a/src/map.rs +++ b/src/map.rs @@ -28,6 +28,12 @@ pub struct Area(pub AABB); #[derive(Component, Clone, Default, Deref, DerefMut)] pub struct Map(pub MapgenMap); +impl From for Map { + fn from(v: MapgenMap) -> Self { + Self(v) + } +} + #[derive(Component, Clone, Debug, Default, Reflect)] #[reflect(Component)] pub struct MapObstruction;