Mod:Lighthouse Papyrus Extender/Array

Array Functions
{| style="width:100%;"
 * valign="top" style="width: 85%;" |

CreateCustomSizeArrayFloat

 * Creates a float array of size  and fills it with
 * Allows you to bypass the 128 element limit that base Papyrus has
 * Max  before the game crashes is unknown; but arrays were able to be read and written to even if   was in the millions

float[] Function CreateCustomSizeArrayFloat(int arrSize, float arrFill) global native

CreateCustomSizeArrayInt

 * Creates an integer array of size  and fills it with

int[] Function CreateCustomSizeArrayInt(int arrSize, int arrFill) global native

CreateCustomSizeArrayString

 * Creates a String array of size  and fills it with

String[] Function CreateCustomSizeArrayString(int arrSize, String arrFill) global native

ResizeIntArray

 * Will increase or reduce the size of the integer array  and fill the new elements with   if the size was increased

int[] Function ResizeIntArray(int[] arrayToResize, int arrSize, int arrFill) global native

SortArrayFloat

 * Sorts the float array  depending on the value of
 * Negative  is equivalent to the last position of the array
 * Sorting includes  and

float[] Function SortArrayFloat(float[] arrayToSort, bool sortDescending, int startIndex, int endIndex) global native

SortArrayInt

 * Sorts the int array  depending on the value of

int[] Function SortArrayInt(int[] arrayToSort, bool sortDescending, int startIndex, int endIndex) global native

SortArrayString

 * Sorts the String array  alphabetically depending on the value of

string[] Function SortArrayString(string[] arrayToSort, bool sortDescending, int startIndex, int endIndex) global native


 * valign="top" style="width: 15%;"|


 * }