diff options
| author | fusion32 <marcopuzziello@gmail.com> | 2025-05-26 01:44:13 -0300 |
|---|---|---|
| committer | fusion32 <marcopuzziello@gmail.com> | 2025-05-26 01:44:13 -0300 |
| commit | fbb392953c5af29b6a0924590c24a05befb72e56 (patch) | |
| tree | d999d2cdb92824f1dbbb93111164696fba607328 /src/objects.hh | |
| parent | c2f41059c71a0c7bfc0b64a7f53334d3bfd0ee76 (diff) | |
| download | game-fbb392953c5af29b6a0924590c24a05befb72e56.tar.gz game-fbb392953c5af29b6a0924590c24a05befb72e56.zip | |
more object functions
Diffstat (limited to 'src/objects.hh')
| -rw-r--r-- | src/objects.hh | 8 |
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; |
