mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2025-09-20 04:26:03 +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:
@ -285,22 +285,6 @@ bool CEntityKeyValues::IsEmpty() const
|
|||||||
return false;
|
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()
|
void CEntityKeyValues::ReleaseAllComplexKeys()
|
||||||
{
|
{
|
||||||
EntityComplexKeyListElem_t* pListElem = m_pComplexKeys;
|
EntityComplexKeyListElem_t* pListElem = m_pComplexKeys;
|
||||||
|
@ -116,9 +116,6 @@ public:
|
|||||||
|
|
||||||
bool IsEmpty() const;
|
bool IsEmpty() const;
|
||||||
|
|
||||||
bool ValuesHasBadNames() const;
|
|
||||||
bool AttributesHasBadNames() const;
|
|
||||||
|
|
||||||
bool HasValue( const EntityKeyId_t &id ) const { bool bIsAttribute; return ( GetKeyValue( id, &bIsAttribute ) && !bIsAttribute ); }
|
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 ); }
|
bool HasAttribute( const EntityKeyId_t &id ) const { bool bIsAttribute; return ( GetKeyValue( id, &bIsAttribute ) && bIsAttribute ); }
|
||||||
|
|
||||||
|
File diff suppressed because it is too large
Load Diff
1229
tier1/keyvalues3.cpp
1229
tier1/keyvalues3.cpp
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user