mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Add basic NPC interaction and fix NPC chat spamming
This commit is contained in:
committed by
Joshua Barretto
parent
7553983110
commit
23b1df3cdd
@ -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() }
|
||||
|
Reference in New Issue
Block a user