1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2025-09-19 12:06:07 +08:00

Update KeyValues3Context & its allocation lifecycle (#289)

Co-authored-by: GAMMACASE <31375974+GAMMACASE@users.noreply.github.com>
Co-authored-by: Nyano <dison2233@126.com>
This commit is contained in:
Vladimir
2025-01-01 22:36:06 +03:00
committed by GitHub
parent 769c1ef1b7
commit f3b44f206d
4 changed files with 1535 additions and 888 deletions

View File

@ -285,22 +285,6 @@ bool CEntityKeyValues::IsEmpty() const
return false;
}
bool CEntityKeyValues::ValuesHasBadNames() const
{
if ( !m_pAllocator )
return false;
return m_pValues->TableHasBadNames();
}
bool CEntityKeyValues::AttributesHasBadNames() const
{
if ( !m_pAllocator )
return false;
return m_pAttributes->TableHasBadNames();
}
void CEntityKeyValues::ReleaseAllComplexKeys()
{
EntityComplexKeyListElem_t* pListElem = m_pComplexKeys;

View File

@ -116,9 +116,6 @@ public:
bool IsEmpty() const;
bool ValuesHasBadNames() const;
bool AttributesHasBadNames() const;
bool HasValue( const EntityKeyId_t &id ) const { bool bIsAttribute; return ( GetKeyValue( id, &bIsAttribute ) && !bIsAttribute ); }
bool HasAttribute( const EntityKeyId_t &id ) const { bool bIsAttribute; return ( GetKeyValue( id, &bIsAttribute ) && bIsAttribute ); }

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff