mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2024-12-23 01:59:43 +08:00
Add CEntityKeyValues IO accessors (#216)
This commit is contained in:
parent
2adc0ac795
commit
01fe5d997b
@ -187,6 +187,14 @@ void CEntityKeyValues::AddConnectionDesc(
|
||||
desc->m_nTimesToFire = nTimesToFire;
|
||||
}
|
||||
|
||||
void CEntityKeyValues::RemoveConnectionDesc( int nDesc )
|
||||
{
|
||||
if (m_nQueuedForSpawnCount > 0)
|
||||
return;
|
||||
|
||||
m_connectionDescs.Remove( nDesc );
|
||||
}
|
||||
|
||||
void CEntityKeyValues::CopyFrom( const CEntityKeyValues* pSrc, bool bRemoveAllKeys, bool bSkipEHandles )
|
||||
{
|
||||
if ( bRemoveAllKeys )
|
||||
|
@ -105,6 +105,11 @@ public:
|
||||
float flDelay,
|
||||
int32 nTimesToFire );
|
||||
|
||||
void RemoveConnectionDesc( int nDesc );
|
||||
|
||||
EntityIOConnectionDescFat_t* GetConnectionDesc( int nDesc ) { return &m_connectionDescs[nDesc]; }
|
||||
int GetNumConnectionDescs() const { return m_connectionDescs.Count(); }
|
||||
|
||||
void CopyFrom( const CEntityKeyValues* pSrc, bool bRemoveAllKeys = false, bool bSkipEHandles = false );
|
||||
void RemoveKeyValue( const EntityKeyId_t &id );
|
||||
void RemoveAllKeys();
|
||||
|
Loading…
Reference in New Issue
Block a user