From fbb392953c5af29b6a0924590c24a05befb72e56 Mon Sep 17 00:00:00 2001 From: fusion32 Date: Mon, 26 May 2025 01:44:13 -0300 Subject: more object functions --- src/objects.hh | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/objects.hh') 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; -- cgit v1.2.3