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 )
102 string value_str =
m_Strings.GetElement(i);
104 jsn +=
"\""+
name+
"\":\""+value_str+
"\"";
108 for ( i = 0; i <
m_Ints.Count(); ++i )
116 int value_int =
m_Ints.GetElement(i);
118 jsn +=
"\""+
name+
"\":"+value_int;
122 for ( i = 0; i <
m_Floats.Count(); ++i )
130 float value_flt =
m_Floats.GetElement(i);
132 jsn +=
"\""+
name+
"\":"+value_flt;
136 for ( i = 0; i <
m_Bools.Count(); ++i )
147 jsn +=
"\""+
name+
"\":true";
151 jsn +=
"\""+
name+
"\":false";
166 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'.