aboutsummaryrefslogtreecommitdiff
path: root/src/objects.hh
diff options
context:
space:
mode:
authorfusion32 <marcopuzziello@gmail.com>2025-05-26 01:44:13 -0300
committerfusion32 <marcopuzziello@gmail.com>2025-05-26 01:44:13 -0300
commitfbb392953c5af29b6a0924590c24a05befb72e56 (patch)
treed999d2cdb92824f1dbbb93111164696fba607328 /src/objects.hh
parentc2f41059c71a0c7bfc0b64a7f53334d3bfd0ee76 (diff)
downloadgame-fbb392953c5af29b6a0924590c24a05befb72e56.tar.gz
game-fbb392953c5af29b6a0924590c24a05befb72e56.zip
more object functions
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;