blog games developers documentation portfolio gallery

Documentation:

Access ArrayList members

The following functions can be called on ArrayList objects when you have the OrbCreationExtensions included in your project and have put the line "using OrbcreationExtensions;" at the top of your script.

Hashtable GetHashtable(int index)


Retrieve Hashtable property by index. Returns null if the index doesn't exist or if the object is not a Hashtable.

ArrayList GetArrayList(int index)


Retrieve ArrayList property by index. Returns null if the index doesn't exist or if the object is not an ArrayList.

ArrayList GetArrayList(int index, bool wrap)


Retrieve ArrayList property by index. Returns null if the index doesn't exist.
If wrap is true, and the property is not of type ArrayList, A new ArrayList is created and the property is added as the first value. Returns null otherwise.

string GetString(int index)


Retrieve string property by index. Returns null if the index doesn't exist or if the object is not a string.

float GetFloat(int index, float defaultValue = 0f)


Retrieve float property by index. Returns defaultValue if the index doesn't exist.
If the object is of type string, the float conversion of the string will be returned. Returns defaultValue if the conversion fails. If the value is of type int, it will be casted to float and returned. Returns defaultValue otherwise.





follow us