|
G1R AngelScript
Scripting reference for the Gothic 1 Remake
|
Public Member Functions | |
Functions | |
| void | Copy (TArray< T > SourceArray, int SourceIndex, int Count, int TargetIndex=0) |
| const T & | opIndex (int Index) const |
| TArray< T > & | opAssign (TArray< T > Other) |
| bool | opEquals (TArray< T > Other) const |
| void | Add (const T &in Value) |
| void | Append (TArray< T > Other) |
| void | Shuffle () |
| void | Swap (int FirstIndexToSwap, int SecondIndexToSwap) |
| Swap the element at index FirstIndexToSwap with the element at index SecondIndexToSwap. | |
| void | AddMultiple (const T &in Value, int Copies) |
| void | MoveAssignFrom (TArray< T > &OtherArray) |
| Perform a move-assign from the passed in array into this array. The passed in array will be emptied in the process as its memory is moved over. | |
| bool | IsValidIndex (int Index) const |
| const T & | Last (int IndexFromEnd=0) const |
| T & | Last (int IndexFromEnd=0) |
| void | Insert (const T &in Value, int Index=0) |
| bool | AddUnique (const T &in Value) |
| Will first do a check if the object already is in the array. Returns 'True' if the object is added. | |
| void | Empty (int ReservedSize=0) |
| void | Reset (int ReservedSize=0) |
| void | Reserve (int ReservedSize=0) |
| void | SetNum (int NewNum=0) |
| T & | opIndex (int Index) |
| void | SetNumZeroed (int NewNum=0) |
| int | FindIndex (const T &in Value) const |
| Find the first index that contains an element with the given value. If no element matches the value, it will return -1. | |
| bool | Contains (const T &in Value) const |
| int | RemoveSingle (const T &in Value) |
| int | Remove (const T &in Value) |
| int | RemoveSingleSwap (const T &in Value) |
| int | RemoveSwap (const T &in Value) |
| void | RemoveAt (int Index) |
| void | RemoveAtSwap (int Index) |
| void | Sort (bool bDescendingOrder=false) |
| int | Num () const |
| int | Max () const |
| int64 | GetAllocatedSize () const |
| bool | IsEmpty () const |
| int | GetSlack () const |
| void | Shrink () |
| TArrayIterator< T > | Iterator () |
| TArrayConstIterator< T > | Iterator () const |
Public Attributes | |
Variables | |
| const int | Slack |
| const int64 | AllocatedSize |
| void Add | ( | const T &in | Value | ) |
| void AddMultiple | ( | const T &in | Value, |
| int | Copies ) |
| bool AddUnique | ( | const T &in | Value | ) |
Will first do a check if the object already is in the array. Returns 'True' if the object is added.
| bool Contains | ( | const T &in | Value | ) | const |
| void Empty | ( | int | ReservedSize = 0 | ) |
| int FindIndex | ( | const T &in | Value | ) | const |
Find the first index that contains an element with the given value. If no element matches the value, it will return -1.
| int64 GetAllocatedSize | ( | ) | const |
| int GetSlack | ( | ) | const |
| void Insert | ( | const T &in | Value, |
| int | Index = 0 ) |
| bool IsEmpty | ( | ) | const |
| bool IsValidIndex | ( | int | Index | ) | const |
| TArrayIterator< T > Iterator | ( | ) |
| TArrayConstIterator< T > Iterator | ( | ) | const |
| T & Last | ( | int | IndexFromEnd = 0 | ) |
| const T & Last | ( | int | IndexFromEnd = 0 | ) | const |
| int Max | ( | ) | const |
Perform a move-assign from the passed in array into this array. The passed in array will be emptied in the process as its memory is moved over.
| int Num | ( | ) | const |
| T & opIndex | ( | int | Index | ) |
| const T & opIndex | ( | int | Index | ) | const |
| int Remove | ( | const T &in | Value | ) |
| void RemoveAt | ( | int | Index | ) |
| void RemoveAtSwap | ( | int | Index | ) |
| int RemoveSingle | ( | const T &in | Value | ) |
| int RemoveSingleSwap | ( | const T &in | Value | ) |
| int RemoveSwap | ( | const T &in | Value | ) |
| void Reserve | ( | int | ReservedSize = 0 | ) |
| void Reset | ( | int | ReservedSize = 0 | ) |
| void SetNum | ( | int | NewNum = 0 | ) |
| void SetNumZeroed | ( | int | NewNum = 0 | ) |
| void Shrink | ( | ) |
| void Shuffle | ( | ) |
| void Sort | ( | bool | bDescendingOrder = false | ) |
| void Swap | ( | int | FirstIndexToSwap, |
| int | SecondIndexToSwap ) |
Swap the element at index FirstIndexToSwap with the element at index SecondIndexToSwap.
| const int64 AllocatedSize |
| const int Slack |