PC Stable Documentation
 
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Loading...
Searching...
No Matches
JsonObject Class Reference

Private Member Functions

void JsonObject ()
 
void ~JsonObject ()
 
void Clear ()
 
void AddString (string name, string value)
 
void AddInt (string name, int value)
 
void AddFloat (string name, float value)
 
void AddBool (string name, bool value)
 
void AddVector2 (string name, float x, float y)
 
string GetJson ()
 

Private Attributes

ref map< string, stringm_Strings
 
ref map< string, intm_Ints
 
ref map< string, floatm_Floats
 
ref map< string, boolm_Bools
 
ref map< string, ref Vector2m_Vectors2
 

Constructor & Destructor Documentation

◆ JsonObject()

void JsonObject ( )
inlineprivate

◆ ~JsonObject()

void ~JsonObject ( )
inlineprivate

References Clear().

Member Function Documentation

◆ AddBool()

void AddBool ( string  name,
bool  value 
)
inlineprivate

References m_Bools, and name.

◆ AddFloat()

void AddFloat ( string  name,
float  value 
)
inlineprivate

References m_Floats, and name.

◆ AddInt()

void AddInt ( string  name,
int  value 
)
inlineprivate

References m_Ints, and name.

◆ AddString()

void AddString ( string  name,
string  value 
)
inlineprivate

◆ AddVector2()

void AddVector2 ( string  name,
float  x,
float  y 
)
inlineprivate

References m_Vectors2, name, x, and y.

◆ Clear()

void Clear ( )
inlineprivate

References m_Bools, m_Floats, m_Ints, m_Strings, and m_Vectors2.

Referenced by ~JsonObject().

◆ GetJson()

string GetJson ( )
inlineprivate

Field Documentation

◆ m_Bools

ref map<string, bool> m_Bools
private

Referenced by AddBool(), Clear(), GetJson(), and JsonObject().

◆ m_Floats

ref map<string, float> m_Floats
private

Referenced by AddFloat(), Clear(), GetJson(), and JsonObject().

◆ m_Ints

ref map<string, int> m_Ints
private

Referenced by AddInt(), Clear(), GetJson(), and JsonObject().

◆ m_Strings

ref map<string, string> m_Strings
private

Referenced by AddString(), Clear(), GetJson(), and JsonObject().

◆ m_Vectors2

ref map<string, ref Vector2> m_Vectors2
private

Referenced by AddVector2(), Clear(), GetJson(), and JsonObject().


The documentation for this class was generated from the following file: