1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2025-09-19 20:16:10 +08:00
This commit is contained in:
Nick Hastings
2023-10-15 23:03:31 -04:00
3 changed files with 40 additions and 19 deletions

View File

@ -108,25 +108,6 @@ struct bbox_t
Vector maxs; Vector maxs;
}; };
class CEntityIndex
{
public:
CEntityIndex( int index )
{
_index = index;
}
int Get() const
{
return _index;
}
int _index;
bool operator==( const CEntityIndex &other ) const { return other._index == _index; }
bool operator!=( const CEntityIndex &other ) const { return other._index != _index; }
};
class CPlayerUserId class CPlayerUserId
{ {
public: public:

View File

@ -23,6 +23,26 @@ struct ChangeAccessorFieldPathIndex_t
typedef uint32 SpawnGroupHandle_t; typedef uint32 SpawnGroupHandle_t;
typedef CUtlStringToken WorldGroupId_t; typedef CUtlStringToken WorldGroupId_t;
class CEntityIndex
{
public:
CEntityIndex( int index )
{
_index = index;
}
int Get() const
{
return _index;
}
bool operator==( const CEntityIndex &other ) const { return other._index == _index; }
bool operator!=( const CEntityIndex &other ) const { return other._index != _index; }
private:
int _index;
};
enum EntityFlags_t : uint32 enum EntityFlags_t : uint32
{ {
EF_IS_INVALID_EHANDLE = 0x1, EF_IS_INVALID_EHANDLE = 0x1,
@ -54,6 +74,16 @@ public:
return handle; return handle;
} }
inline const char *GetClassname() const
{
return m_designerName.String();
}
inline CEntityIndex GetEntityIndex() const
{
return m_EHandle.GetEntryIndex();
}
public: public:
CEntityInstance* m_pInstance; // 0x0 CEntityInstance* m_pInstance; // 0x0
private: private:

View File

@ -20,6 +20,16 @@ public:
return m_pEntity->GetRefEHandle(); return m_pEntity->GetRefEHandle();
} }
inline const char *GetClassname() const
{
return m_pEntity->GetClassname();
}
inline CEntityIndex GetEntityIndex() const
{
return m_pEntity->GetEntityIndex();
}
CUtlSymbolLarge m_iszPrivateVScripts; // 0x8 CUtlSymbolLarge m_iszPrivateVScripts; // 0x8
CEntityIdentity* m_pEntity; // 0x10 CEntityIdentity* m_pEntity; // 0x10
private: private: