Rename AreaTag to Area.

This commit is contained in:
Nolan Darilek 2021-07-19 11:30:27 -05:00
parent fedd8b69e0
commit 9a2495d9de

View File

@ -24,7 +24,7 @@ impl From<mapgen::geometry::Point> for Coordinates {
#[derive(Clone, Debug, Default, Reflect)] #[derive(Clone, Debug, Default, Reflect)]
#[reflect(Component)] #[reflect(Component)]
pub struct AreaTag; pub struct Area;
#[derive(Clone, Debug, Default, Reflect)] #[derive(Clone, Debug, Default, Reflect)]
#[reflect(Component)] #[reflect(Component)]
@ -347,7 +347,7 @@ fn spawn_colliders(
pos_wrt_parent: position, pos_wrt_parent: position,
}) })
.insert(shape.compute_aabb(&position)) .insert(shape.compute_aabb(&position))
.insert(AreaTag); .insert(Area);
} }
} }
} }
@ -437,7 +437,7 @@ fn spawn_portal_colliders(
fn area_description( fn area_description(
mut events: EventReader<IntersectionEvent>, mut events: EventReader<IntersectionEvent>,
areas: Query<&AreaTag>, areas: Query<&Area>,
players: Query<&Player>, players: Query<&Player>,
names: Query<&Name>, names: Query<&Name>,
config: Res<MapConfig>, config: Res<MapConfig>,