|
G1R AngelScript
Scripting reference for the Gothic 1 Remake
|
Functions | |
Utilities|Array | |
| void | FilterArray (TArray< AActor > TargetArray, TSubclassOf< AActor > FilterClass, TArray< AActor > &FilteredArray) |
| Filter an array based on a Class derived from Actor. | |
Utilities|Array|Sort | |
| void | SortFloatArray (TArray< float > &TargetArray, bool bStableSort=false, EArraySortOrder SortOrder=EArraySortOrder ::Ascending) |
| Sorts an array of doubles. | |
| void | SortInt64Array (TArray< int64 > &TargetArray, bool bStableSort=false, EArraySortOrder SortOrder=EArraySortOrder ::Ascending) |
| Sorts an array of 64-bit integers. | |
| void | SortIntArray (TArray< int > &TargetArray, bool bStableSort=false, EArraySortOrder SortOrder=EArraySortOrder ::Ascending) |
| Sorts an array of integers. | |
| void | SortNameArray (TArray< FName > &TargetArray, bool bStableSort=false, bool bLexicalSort=true, EArraySortOrder SortOrder=EArraySortOrder ::Ascending) |
| Sorts an array of FNames. | |
| void | SortStringArray (TArray< FString > &TargetArray, bool bStableSort=false, EArraySortOrder SortOrder=EArraySortOrder ::Ascending) |
| Sorts an array of strings alphabetically. | |
| void | SortByteArray (TArray< uint8 > &TargetArray, bool bStableSort=false, EArraySortOrder SortOrder=EArraySortOrder ::Ascending) |
| Sorts an array of bytes. | |
| void FilterArray | ( | TArray< AActor > | TargetArray, |
| TSubclassOf< AActor > | FilterClass, | ||
| TArray< AActor > & | FilteredArray ) |
Filter an array based on a Class derived from Actor.
| TargetArray | The array to filter from * |
| FilterClass | The Actor sub-class type that acts as the filter, only objects derived from it will be returned. * |
| void SortByteArray | ( | TArray< uint8 > & | TargetArray, |
| bool | bStableSort = false, | ||
| EArraySortOrder | SortOrder = EArraySortOrder :: Ascending ) |
Sorts an array of bytes.
| TargetArray | The array to sort. |
| bStableSort | If a stable sort should be used. This preserves the order of identical elements, but is slower. |
| SortOrder | If the array should be sorted in ascending or descending order. |
| void SortFloatArray | ( | TArray< float > & | TargetArray, |
| bool | bStableSort = false, | ||
| EArraySortOrder | SortOrder = EArraySortOrder :: Ascending ) |
Sorts an array of doubles.
| TargetArray | The array to sort. |
| bStableSort | If a stable sort should be used. This preserves the order of identical elements, but is slower. |
| SortOrder | If the array should be sorted in ascending or descending order. |
| void SortInt64Array | ( | TArray< int64 > & | TargetArray, |
| bool | bStableSort = false, | ||
| EArraySortOrder | SortOrder = EArraySortOrder :: Ascending ) |
Sorts an array of 64-bit integers.
| TargetArray | The array to sort. |
| bStableSort | If a stable sort should be used. This preserves the order of identical elements, but is slower. |
| SortOrder | If the array should be sorted in ascending or descending order. |
| void SortIntArray | ( | TArray< int > & | TargetArray, |
| bool | bStableSort = false, | ||
| EArraySortOrder | SortOrder = EArraySortOrder :: Ascending ) |
Sorts an array of integers.
| TargetArray | The array to sort. |
| bStableSort | If a stable sort should be used. This preserves the order of identical elements, but is slower. |
| SortOrder | If the array should be sorted in ascending or descending order. |
| void SortNameArray | ( | TArray< FName > & | TargetArray, |
| bool | bStableSort = false, | ||
| bool | bLexicalSort = true, | ||
| EArraySortOrder | SortOrder = EArraySortOrder :: Ascending ) |
Sorts an array of FNames.
| TargetArray | The array to sort. |
| bStableSort | If a stable sort should be used. This preserves the order of identical elements, but is slower. |
| bLexicalSort | If the names should be sorted based on the string value of the name rather than the comparison index. This is slower when enabled. |
| SortOrder | If the array should be sorted in ascending or descending order. |
| void SortStringArray | ( | TArray< FString > & | TargetArray, |
| bool | bStableSort = false, | ||
| EArraySortOrder | SortOrder = EArraySortOrder :: Ascending ) |
Sorts an array of strings alphabetically.
| TargetArray | The array to sort. |
| bStableSort | If a stable sort should be used. This preserves the order of identical elements, but is slower. |
| SortOrder | If the array should be sorted in ascending or descending order. |