aboutsummaryrefslogtreecommitdiff
path: root/src/objects.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/objects.hh')
-rw-r--r--src/objects.hh8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/objects.hh b/src/objects.hh
index 61a0185..eec0565 100644
--- a/src/objects.hh
+++ b/src/objects.hh
@@ -52,6 +52,14 @@ struct ObjectType {
return this->TypeID == TYPEID_CREATURE_CONTAINER;
}
+ bool operator==(const ObjectType &Other) const {
+ return this->TypeID == Other.TypeID;
+ }
+
+ bool operator!=(const ObjectType &Other) const {
+ return this->TypeID != Other.TypeID;
+ }
+
// DATA
// =========================================================================
int TypeID;