use vek::*; use crate::util::DHashSet; pub struct Plot { kind: PlotKind, root_tile: Vec2, tiles: DHashSet>, } impl Plot { pub fn find_bounds(&self) -> Aabr { self.tiles .iter() .fold(Aabr::new_empty(self.root_tile), |b, t| b.expanded_to_contain_point(*t)) } } pub enum PlotKind { Field, House, }