35 value.
Split(
"\"", strgs);
37 if ( strgs.Count() > 1 )
40 int str_count = strgs.Count();
42 for (
int i = 0; i < str_count; ++i )
48 if ( s[length - 1] !=
"\\" )
52 if (i < str_count - 1 )
95 for ( i = 0; i < nStrings; ++i )
103 string value_str =
m_Strings.GetElement(i);
105 jsn +=
"\""+
name+
"\":\""+value_str+
"\"";
109 int nInts =
m_Ints.Count();
110 for ( i = 0; i < nInts; ++i )
118 int value_int =
m_Ints.GetElement(i);
120 jsn +=
"\""+
name+
"\":"+value_int;
125 for ( i = 0; i < nFloats; ++i )
133 float value_flt =
m_Floats.GetElement(i);
135 jsn +=
"\""+
name+
"\":"+value_flt;
140 for ( i = 0; i < nBools; ++i )
151 jsn +=
"\""+
name+
"\":true";
155 jsn +=
"\""+
name+
"\":false";
161 for ( i = 0; i < nVectors2; ++i )
171 jsn +=
"\""+
name+
"\":{\"x\":"+value_vct.
x+
",\"y\":"+value_vct.
y+
"}";
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
void AddVector2(string name, float x, float y)
void AddBool(string name, bool value)
ref map< string, string > m_Strings
ref map< string, float > m_Floats
void AddString(string name, string value)
ref map< string, int > m_Ints
ref map< string, ref Vector2 > m_Vectors2
ref map< string, bool > m_Bools
void AddFloat(string name, float value)
void AddInt(string name, int value)
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
proto native int Length()
Returns length of string.
void Split(string sample, out array< string > output)
Splits string into array of strings separated by 'sample'.