Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
JsonObject Class Reference

Private Member Functions

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

Private Attributes

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

Detailed Description

Definition at line 1 of file jsonobject.c.

Constructor & Destructor Documentation

◆ JsonObject()

void JsonObject ( )
inlineprivate

Definition at line 9 of file jsonobject.c.

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

◆ ~JsonObject()

void ~JsonObject ( )
inlineprivate

Definition at line 18 of file jsonobject.c.

References Clear().

Member Function Documentation

◆ AddBool()

void AddBool ( string name,
bool value )
inlineprivate

Definition at line 74 of file jsonobject.c.

References m_Bools, and name.

◆ AddFloat()

void AddFloat ( string name,
float value )
inlineprivate

Definition at line 69 of file jsonobject.c.

References m_Floats, and name.

◆ AddInt()

void AddInt ( string name,
int value )
inlineprivate

Definition at line 64 of file jsonobject.c.

References m_Ints, and name.

◆ AddString()

void AddString ( string name,
string value )
inlineprivate

Definition at line 32 of file jsonobject.c.

References string::Length(), m_Strings, name, and string::Split().

◆ AddVector2()

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

Definition at line 79 of file jsonobject.c.

References m_Vectors2, name, x, and y.

◆ Clear()

void Clear ( )
inlineprivate

Definition at line 23 of file jsonobject.c.

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

Referenced by ~JsonObject().

◆ GetJson()

string GetJson ( )
inlineprivate

Definition at line 85 of file jsonobject.c.

References string::Length(), m_Bools, m_Floats, m_Ints, m_Strings, m_Vectors2, name, Vector2::x, and Vector2::y.

Field Documentation

◆ m_Bools

ref map<string, bool> m_Bools
private

Definition at line 6 of file jsonobject.c.

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

◆ m_Floats

ref map<string, float> m_Floats
private

Definition at line 5 of file jsonobject.c.

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

◆ m_Ints

ref map<string, int> m_Ints
private

Definition at line 4 of file jsonobject.c.

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

◆ m_Strings

ref map<string, string> m_Strings
private

Definition at line 3 of file jsonobject.c.

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

◆ m_Vectors2

ref map<string, ref Vector2> m_Vectors2
private

Definition at line 7 of file jsonobject.c.

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


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