Add another conversion.
This commit is contained in:
parent
701cac5568
commit
1176c65ce9
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user