mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2026-10-10 20:03:08 +08:00
Update CEntityKeyValues
This commit is contained in:
@@ -9,7 +9,7 @@ class CConcreteEntityList
|
||||
{
|
||||
CEntityIdentity* m_pHead;
|
||||
CEntityIdentity* m_pTail;
|
||||
uint64 unk;
|
||||
int m_nCount;
|
||||
};
|
||||
public:
|
||||
CEntityIdentity* m_pIdentityChunks[MAX_ENTITY_LISTS];
|
||||
|
||||
@@ -194,7 +194,7 @@ private:
|
||||
int16 m_nQueuedForSpawnCount;
|
||||
bool m_bAllowLogging;
|
||||
EntityKVAllocatorType_t m_eAllocatorType;
|
||||
CUtlLeanVector<EntityIOConnectionDescFat_t> m_connectionDescs;
|
||||
CUtlLeanVector<EntityIOConnectionDescFat_t, int> m_connectionDescs;
|
||||
};
|
||||
|
||||
inline CEntityKeyValues::Iterator_t CEntityKeyValues::First() const
|
||||
|
||||
@@ -229,7 +229,9 @@ private:
|
||||
CEntityHandle m_hEnt;
|
||||
CEntityInstance* m_pEnt;
|
||||
const CEntityKeyValues* m_pKeyValues;
|
||||
bool m_Unk1;
|
||||
|
||||
// AMNOTE: Seems to be checked along side m_pKeyValues before its usage
|
||||
bool m_bEntityKeyValuesInitialized;
|
||||
};
|
||||
|
||||
struct DestructionInfo_t
|
||||
|
||||
@@ -363,7 +363,7 @@ public:
|
||||
};
|
||||
Iterator_t First() const { const T* base = this->Base(); return Iterator_t( base, &base[ this->m_nCount ] ); }
|
||||
Iterator_t Next( const Iterator_t &it ) const { return Iterator_t( it.elem + 1, it.end ); }
|
||||
bool IsValidIterator( const Iterator_t &it ) const { return it.elem != it.end; }
|
||||
bool IsValidIterator( const Iterator_t &it ) const { return it.elem && it.elem != it.end; }
|
||||
T& operator[]( const Iterator_t &it ) { return *const_cast<T*>(it.elem); }
|
||||
const T& operator[]( const Iterator_t &it ) const { return *it.elem; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user