1
0
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:
Nick Hastings
2023-05-16 14:22:24 -04:00
committed by Nicholas Hastings
parent 93421303a0
commit fba263ab37

View File

@ -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; }
};
//-----------------------------------------------------------------------------