1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2026-10-10 20:03:08 +08:00

Update CEntityKeyValues

This commit is contained in:
GAMMACASE
2024-10-07 01:33:33 +03:00
parent 9be8cba344
commit f8b8fe219b
4 changed files with 6 additions and 4 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ class CConcreteEntityList
{
CEntityIdentity* m_pHead;
CEntityIdentity* m_pTail;
uint64 unk;
int m_nCount;
};
public:
CEntityIdentity* m_pIdentityChunks[MAX_ENTITY_LISTS];
+1 -1
View File
@@ -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
+3 -1
View File
@@ -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
+1 -1
View File
@@ -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; }