diff --git a/src/world/zone.rs b/src/world/zone.rs index f5d0119..693692e 100644 --- a/src/world/zone.rs +++ b/src/world/zone.rs @@ -1,3 +1,4 @@ +use std::cmp::PartialEq; use std::collections::HashSet; use std::convert::TryFrom; use std::error::Error; @@ -29,6 +30,16 @@ impl Zone { } } +impl PartialEq for Zone { + fn eq(&self, other: &Self) -> bool { + self.id == other.id + && self.parent == other.parent + && self.name == other.name + && self.users_visible == other.users_visible + && self.areas == other.areas + } +} + impl Area for Zone { fn id(&self) -> Id { self.id