mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2025-09-19 20:16:10 +08:00
Add in/equality operators for CPlayerSlot and CEntityIndex.
This commit is contained in:

committed by
Nicholas Hastings

parent
93421303a0
commit
fba263ab37
@ -123,6 +123,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