The Array object allows to store object references into an array and manipulate it.
Functions
| Delete | Deletes the objects and sets the items to null. |
|---|---|
| DeleteAll | Deletes all object instances and sets the items to null. |
| DeleteAndRemove | Deletes objects, then removes the items. |
| DeleteAndRemoveClones | Deletes all clones, then removes items. |
| DeleteAndRemoveFound | Finds items, then deletes objects and removes the items. |
| DeleteClones | Deletes all clones and sets the items to null. |
| DeleteFound | Finds the specified item, delete it and sets the item to null. |
| DeleteLast | Deletes the last object and sets the item to null. |
| FastFind | Finds an item faster than Array.Find. |
| FastIndex | Retrieves the index of the specified item to insert. |
| FastInsert | Retrieves the correct index of the new item before inserting it. |
| Find | Finds the specified item. |
| Get | Retrieves the object instance of the item. |
| GetCompareMode | Retrieves the compare mode. |
| GetCount | Retrieves the number of items. |
| GetFirst | Retrieves the first item of the array. |
| GetLast | Retrieves the last item of the array. |
| GetRandom | Retrieves one item randomly. |
| GetType | Retrieves the object type ID of the specified item. |
| Insert | Inserts a new item and sets the value to obj. |
| LoadFile | Loads in memory an array from a File object. |
| LoadPath | Loads in memory an array file. |
| LoadResource | Loads in memory an array from the resources. |
| Move | Moves one or several items. |
| Random | Sorts the array randomly. |
| Remove | Removes the items from the list without deleting objects. |
| RemoveAll | Removes all the items wihtout deleting objects. |
| RemoveClones | Removes all clones without deleting objects. |
| RemoveFound | Finds the specified item and removes it from the list. |
| RemoveLast | Removes the last item without deleting the object. |
| SaveFile | Saves the array in a File object. |
| SavePath | Saves the array in a file. |
| Set | Changes the object instance of the item. |
| SetCompareMode | Changes the compare mode. |
| SetCount | Changes the number of items without deleting objects. |
| Sort | Sorts the items. |
| Swap | Swaps two items. |
Events
| OnCompare | Is called when two items must be compared. |
|---|---|
| OnDelete | Is called when an item was deleted. |
| OnLoad | Is called for each item when an array file is loading. |
| OnNew | Is called when a new item was inserted. |
| OnSave | Is called for each item when the array is saving. |
Constants
The Array object has no constants.