From 08e6c4779a523294e1b7b19d9f57d3220b980233 Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Mon, 7 Jun 2021 12:43:20 -0500 Subject: [PATCH] Use colliders for portals, and other cleanup. --- src/map.rs | 35 +++++++++++++++++++++-------------- src/navigation.rs | 3 +-- 2 files changed, 22 insertions(+), 16 deletions(-) diff --git a/src/map.rs b/src/map.rs index ff3fa07..e226580 100644 --- a/src/map.rs +++ b/src/map.rs @@ -22,9 +22,9 @@ impl From for Coordinates { #[derive(Clone, Debug, Default, Deref, DerefMut)] pub struct Areas(pub Vec); -#[derive(Clone, Debug, Default, Deref, DerefMut, Reflect)] +#[derive(Clone, Debug, Default, Reflect)] #[reflect(Component)] -pub struct Portal(Vec<(i32, i32)>); +pub struct Portal; #[derive(Clone, Default)] pub struct Map { @@ -218,18 +218,16 @@ fn add_map_colliders(mut commands: Commands, maps: Query<(Entity, &Map), Added