pub mod cell_search;
pub mod string_pull;
use alloc::vec::Vec;
use crate::decomp::{CellId, PortalId};
#[derive(Clone, Debug, Default, PartialEq)]
pub struct Corridor {
pub cells: Vec<CellId>,
pub portals: Vec<PortalId>,
}
impl Corridor {
#[inline]
pub fn len(&self) -> usize {
self.cells.len()
}
#[inline]
pub fn is_empty(&self) -> bool {
self.cells.is_empty()
}
#[inline]
pub fn is_trivial(&self) -> bool {
self.cells.len() <= 1
}
}