14 lines
229 B
C
14 lines
229 B
C
|
#pragma once
|
||
|
|
||
|
class CBaseHandle {
|
||
|
public:
|
||
|
inline bool IsValid() const {
|
||
|
return m_Index != INVALID_EHANDLE_INDEX;
|
||
|
}
|
||
|
|
||
|
inline int GetEntryIndex() const {
|
||
|
return m_Index & ENT_ENTRY_MASK;
|
||
|
}
|
||
|
|
||
|
unsigned long m_Index;
|
||
|
};
|