Add basic NPC interaction and fix NPC chat spamming

This commit is contained in:
James Melkonian
2021-01-31 20:29:50 +00:00
committed by Joshua Barretto
parent 7553983110
commit 23b1df3cdd
23 changed files with 1166 additions and 918 deletions

View File

@ -32,8 +32,9 @@ impl<T> FromIterator<T> for Path<T> {
}
}
#[allow(clippy::len_without_is_empty)] // TODO: Pending review in #587
impl<T> Path<T> {
pub fn is_empty(&self) -> bool { self.nodes.is_empty() }
pub fn len(&self) -> usize { self.nodes.len() }
pub fn iter(&self) -> impl Iterator<Item = &T> { self.nodes.iter() }