См. определение в файле JsonObject.c строка 85
86 {
88 int i;
89
90 string jsn = "";
91 jsn += "{";
92
93
95 {
97 {
98 jsn += ",";
99 }
100
102 string value_str =
m_Strings.GetElement(i);
103
104 jsn +=
"\""+
name+
"\":\""+value_str+
"\"";
105 }
106
107
108 for ( i = 0; i <
m_Ints.Count(); ++i )
109 {
111 {
112 jsn += ",";
113 }
114
116 int value_int =
m_Ints.GetElement(i);
117
118 jsn +=
"\""+
name+
"\":"+value_int;
119 }
120
121
122 for ( i = 0; i <
m_Floats.Count(); ++i )
123 {
125 {
126 jsn += ",";
127 }
128
130 float value_flt =
m_Floats.GetElement(i);
131
132 jsn +=
"\""+
name+
"\":"+value_flt;
133 }
134
135
136 for ( i = 0; i <
m_Bools.Count(); ++i )
137 {
139 {
140 jsn += ",";
141 }
142
144
146 {
147 jsn +=
"\""+
name+
"\":true";
148 }
149 else
150 {
151 jsn +=
"\""+
name+
"\":false";
152 }
153 }
154
155
157 {
159 {
160 jsn += ",";
161 }
162
165
166 jsn +=
"\""+
name+
"\":{\"x\":"+value_vct.
x+
",\"y\":"+value_vct.
y+
"}";
167 }
168
169 jsn += "}";
170
171 return jsn;
172 }
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
ref map< string, string > m_Strings
ref map< string, float > m_Floats
ref map< string, int > m_Ints
ref map< string, ref Vector2 > m_Vectors2
ref map< string, bool > m_Bools
proto native int Length()
Returns length of string.
Перекрестные ссылки string::Length(), m_Bools, m_Floats, m_Ints, m_Strings, m_Vectors2, name, Vector2::x и Vector2::y.