class CEntityHandle
{
public:
	constexpr CEntityHandle( ) noexcept
		: m_uHandle( INVALID_EHANDLE )
	{
	}

	constexpr CEntityHandle( const CEntityHandle& hOther ) noexcept
		: m_uHandle( hOther.m_uHandle )
	{
	}

	constexpr bool IsValid( ) const noexcept
	{
		return m_uHandle != INVALID_EHANDLE;
	}

	constexpr int GetEntryIndex( ) const noexcept
	{
		return static_cast< int >( static_cast< std::uint16_t >( m_uHandle ) & 0x7FFF );
	}

private:
	std::uint32_t m_uHandle;
};

#endif // CS2_CHEAT_CENTITYHANDLE_HPP
