some improvements i think

This commit is contained in:
2026-01-14 20:15:49 +02:00
parent 6604c67ec5
commit 49adb21b81
14 changed files with 420 additions and 69 deletions

View File

@@ -2,6 +2,7 @@
#define TIER2_JSON_H
#include "tier0/platform.h"
#include "tier1/utlstring.h"
class IJSONObject;
class IJSONArray;
@@ -27,9 +28,9 @@ abstract_class IJSONArray
{
public:
virtual uint32_t GetCount() = 0;
virtual IJSONObject *GetParameter( uint32_t i ) = 0;
virtual IJSONValue *GetParameter( uint32_t i ) = 0;
virtual void SetArray( uint32_t uCount, IJSONValue *pValue ) = 0;
virtual void SetArray( uint32_t uCount, IJSONValue **ppValues ) = 0;
virtual void CopyTo( IJSONArray *pObject ) = 0;
virtual void Free() = 0;
@@ -77,7 +78,8 @@ public:
virtual IJSONValue *CreateValue( ) = 0;
virtual void FreeValue( IJSONValue *pValue ) = 0;
virtual IJSONObject *ReadString( const char *szString ) = 0;
virtual IJSONValue *ReadString( const char *szString ) = 0;
virtual CUtlString WriteString( IJSONValue *pValue ) = 0;
};
IJSONManager *JSONManager();