mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2026-10-12 02:58:00 +08:00
Add in/equality operators for CPlayerSlot and CEntityIndex.
This commit is contained in:
1 parent
93421303a0
commit
fba263ab37
1 file changed
+6
@@ -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; }
|
||||
};
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
Reference in new issue
Block a user