1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2024-12-23 01:59:43 +08:00

Update KeyValues class definition (#240)

This commit is contained in:
Jakub 2024-05-15 13:59:35 +01:00 committed by GitHub
parent 82b2b5336e
commit 5e238727e6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 0 deletions

View File

@ -25,6 +25,7 @@
#include "utlvector.h"
#include "Color.h"
class IKeyValuesSystem;
class IBaseFileSystem;
class CUtlBuffer;
class Color;
@ -276,10 +277,15 @@ private:
char m_iDataType;
char m_bHasEscapeSequences; // true, if while parsing this KeyValue, Escape Sequences are used (default false)
char unused[2];
IKeyValuesSystem* m_pKeyValuesSystem;
bool m_bHasCustomKeyvalueSystem;
KeyValues *m_pPeer; // pointer to next key in list
KeyValues *m_pSub; // pointer to Start of a new sub key list
KeyValues *m_pChain;// Search here if it's not in our list
void* m_pExpressionGetSymbolProc;
};
enum KeyValuesUnpackDestinationTypes_t

View File

@ -301,6 +301,10 @@ void KeyValues::Init()
// for future proof
memset( unused, 0, sizeof(unused) );
m_pKeyValuesSystem = NULL;
m_bHasCustomKeyvalueSystem = false;
m_pExpressionGetSymbolProc = NULL;
}
//-----------------------------------------------------------------------------