Add in/equality operators for CPlayerSlot and CEntityIndex.

This commit is contained in:
Nick Hastings authored and Nicholas Hastings committed 2023-09-27 16:54:58 +00:00
1 parent 93421303a0
commit fba263ab37
1 file changed
+6
+6
View File
@@ -122,6 +122,9 @@ struct CPlayerSlot
{
return _slot;
}
bool operator==( const CPlayerSlot &other ) const { return other._slot == _slot; }
bool operator!=( const CPlayerSlot &other ) const { return other._slot != _slot; }
private:
int _slot;
@@ -140,6 +143,9 @@ struct CEntityIndex
}
int _index;
bool operator==( const CEntityIndex &other ) const { return other._index == _index; }
bool operator!=( const CEntityIndex &other ) const { return other._index != _index; }
};
//-----------------------------------------------------------------------------