Add another conversion.

This commit is contained in:
Nolan Darilek 2022-02-12 08:50:54 -06:00
parent 701cac5568
commit 1176c65ce9

View File

@ -28,6 +28,12 @@ pub struct Area(pub AABB);
#[derive(Component, Clone, Default, Deref, DerefMut)] #[derive(Component, Clone, Default, Deref, DerefMut)]
pub struct Map(pub MapgenMap); pub struct Map(pub MapgenMap);
impl From<MapgenMap> for Map {
fn from(v: MapgenMap) -> Self {
Self(v)
}
}
#[derive(Component, Clone, Debug, Default, Reflect)] #[derive(Component, Clone, Debug, Default, Reflect)]
#[reflect(Component)] #[reflect(Component)]
pub struct MapObstruction; pub struct MapObstruction;