NWNX:EE  8193.36.12
Data

Function Groups

 Array At
 Returns the element at the index.
 
 Array Contains
 Checks if array contains the element.
 
 Array Find
 Get the index at which the element is located.
 
 Array Insert
 Inserts the element at the index, where size > index >= 0.
 
 Array Pushback
 Pushes an element to the back of the collection.
 
 Array Set
 Sets the element at the index, where size > index >= 0.
 

Files

file  nwnx_data.nss
 
file  nwnx_data.nss
 

Functions

void Array_Clear (string tag, object obj=OBJECT_INVALID)
 Clears the entire array, such that size==0. More...
 
void Array_Copy (string tag, string otherTag, object obj=OBJECT_INVALID)
 Copies the array of name otherTag over the array of name tag. More...
 
void Array_Erase (string tag, int index, object obj=OBJECT_INVALID)
 Erases the element at index, and shuffles any elements from index size-1 to index + 1 left. More...
 
void Array_Resize (string tag, int size, object obj=OBJECT_INVALID)
 Resizes the array. If the array is shrinking, it chops off elements at the ned. More...
 
void Array_Shuffle (string tag, object obj=OBJECT_INVALID)
 Reorders the array such each possible permutation of elements has equal probability of appearance. More...
 
int Array_Size (string tag, object obj=OBJECT_INVALID)
 Returns the size of the array. More...
 
void Array_SortAscending (string tag, int type=TYPE_STRING, object obj=OBJECT_INVALID)
 Sorts the collection based on descending order. More...
 
void Array_SortDescending (string tag, int type=TYPE_STRING, object obj=OBJECT_INVALID)
 Sorts the collection based on descending order. More...
 
void NWNX_Data_Array_Clear (int type, object obj, string tag)
 Clears the entire array, such that size==0. More...
 
void NWNX_Data_Array_Copy (int type, object obj, string tag, string otherTag)
 Copies the array of name otherTag over the array of name tag. More...
 
void NWNX_Data_Array_Erase (int type, object obj, string tag, int index)
 Erases the element at index, and shuffles any elements from index size-1 to index + 1 left. More...
 
void NWNX_Data_Array_Resize (int type, object obj, string tag, int size)
 Resizes the array. If the array is shrinking, it chops off elements at the ned. More...
 
void NWNX_Data_Array_Shuffle (int type, object obj, string tag)
 Reorders the array such each possible permutation of elements has equal probability of appearance. More...
 
int NWNX_Data_Array_Size (int type, object obj, string tag)
 Returns the size of the array. More...
 
void NWNX_Data_Array_SortAscending (int type, object obj, string tag)
 Sorts the collection based on descending order. More...
 
void NWNX_Data_Array_SortDescending (int type, object obj, string tag)
 Sorts the collection based on descending order. More...
 

Variables

const int INVALID_INDEX = -1
 
const int TYPE_FLOAT = 0
 
const int TYPE_INTEGER = 1
 
const int TYPE_OBJECT = 2
 
const int TYPE_STRING = 3
 
const int NWNX_DATA_INVALID_INDEX = INVALID_INDEX
 
const int NWNX_DATA_TYPE_FLOAT = TYPE_FLOAT
 
const int NWNX_DATA_TYPE_INTEGER = TYPE_INTEGER
 
const int NWNX_DATA_TYPE_OBJECT = TYPE_OBJECT
 
const int NWNX_DATA_TYPE_STRING = TYPE_STRING
 

Function Documentation

◆ Array_Clear()

void Array_Clear ( string  tag,
object  obj = OBJECT_INVALID 
)

Clears the entire array, such that size==0.

Definition at line 232 of file inc_array.nss.

◆ Array_Copy()

void Array_Copy ( string  tag,
string  otherTag,
object  obj = OBJECT_INVALID 
)

Copies the array of name otherTag over the array of name tag.

Definition at line 274 of file inc_array.nss.

◆ Array_Erase()

void Array_Erase ( string  tag,
int  index,
object  obj = OBJECT_INVALID 
)

Erases the element at index, and shuffles any elements from index size-1 to index + 1 left.

Definition at line 281 of file inc_array.nss.

◆ Array_Resize()

void Array_Resize ( string  tag,
int  size,
object  obj = OBJECT_INVALID 
)

Resizes the array. If the array is shrinking, it chops off elements at the ned.

Definition at line 407 of file inc_array.nss.

◆ Array_Shuffle()

void Array_Shuffle ( string  tag,
object  obj = OBJECT_INVALID 
)

Reorders the array such each possible permutation of elements has equal probability of appearance.

Definition at line 414 of file inc_array.nss.

◆ Array_Size()

int Array_Size ( string  tag,
object  obj = OBJECT_INVALID 
)

Returns the size of the array.

Definition at line 424 of file inc_array.nss.

◆ Array_SortAscending()

void Array_SortAscending ( string  tag,
int  type = TYPE_STRING,
object  obj = OBJECT_INVALID 
)

Sorts the collection based on descending order.

Definition at line 458 of file inc_array.nss.

◆ Array_SortDescending()

void Array_SortDescending ( string  tag,
int  type = TYPE_STRING,
object  obj = OBJECT_INVALID 
)

Sorts the collection based on descending order.

Definition at line 463 of file inc_array.nss.

◆ NWNX_Data_Array_Clear()

void NWNX_Data_Array_Clear ( int  type,
object  obj,
string  tag 
)

Clears the entire array, such that size==0.

Definition at line 154 of file nwnx_data.nss.

◆ NWNX_Data_Array_Copy()

void NWNX_Data_Array_Copy ( int  type,
object  obj,
string  tag,
string  otherTag 
)

Copies the array of name otherTag over the array of name tag.

Definition at line 188 of file nwnx_data.nss.

◆ NWNX_Data_Array_Erase()

void NWNX_Data_Array_Erase ( int  type,
object  obj,
string  tag,
int  index 
)

Erases the element at index, and shuffles any elements from index size-1 to index + 1 left.

Definition at line 195 of file nwnx_data.nss.

◆ NWNX_Data_Array_Resize()

void NWNX_Data_Array_Resize ( int  type,
object  obj,
string  tag,
int  size 
)

Resizes the array. If the array is shrinking, it chops off elements at the ned.

Definition at line 284 of file nwnx_data.nss.

◆ NWNX_Data_Array_Shuffle()

void NWNX_Data_Array_Shuffle ( int  type,
object  obj,
string  tag 
)

Reorders the array such each possible permutation of elements has equal probability of appearance.

Definition at line 291 of file nwnx_data.nss.

◆ NWNX_Data_Array_Size()

int NWNX_Data_Array_Size ( int  type,
object  obj,
string  tag 
)

Returns the size of the array.

Definition at line 298 of file nwnx_data.nss.

◆ NWNX_Data_Array_SortAscending()

void NWNX_Data_Array_SortAscending ( int  type,
object  obj,
string  tag 
)

Sorts the collection based on descending order.

Definition at line 314 of file nwnx_data.nss.

◆ NWNX_Data_Array_SortDescending()

void NWNX_Data_Array_SortDescending ( int  type,
object  obj,
string  tag 
)

Sorts the collection based on descending order.

Definition at line 320 of file nwnx_data.nss.

Variable Documentation

◆ INVALID_INDEX

const int INVALID_INDEX = -1

Definition at line 6 of file inc_array.nss.

◆ TYPE_FLOAT

const int TYPE_FLOAT = 0

Definition at line 7 of file inc_array.nss.

◆ TYPE_INTEGER

const int TYPE_INTEGER = 1

Definition at line 8 of file inc_array.nss.

◆ TYPE_OBJECT

const int TYPE_OBJECT = 2

Definition at line 9 of file inc_array.nss.

◆ TYPE_STRING

const int TYPE_STRING = 3

Definition at line 10 of file inc_array.nss.

◆ NWNX_DATA_INVALID_INDEX

const int NWNX_DATA_INVALID_INDEX = INVALID_INDEX

Definition at line 11 of file nwnx_data.nss.

◆ NWNX_DATA_TYPE_FLOAT

const int NWNX_DATA_TYPE_FLOAT = TYPE_FLOAT

Definition at line 12 of file nwnx_data.nss.

◆ NWNX_DATA_TYPE_INTEGER

const int NWNX_DATA_TYPE_INTEGER = TYPE_INTEGER

Definition at line 13 of file nwnx_data.nss.

◆ NWNX_DATA_TYPE_OBJECT

const int NWNX_DATA_TYPE_OBJECT = TYPE_OBJECT

Definition at line 14 of file nwnx_data.nss.

◆ NWNX_DATA_TYPE_STRING

const int NWNX_DATA_TYPE_STRING = TYPE_STRING

Definition at line 15 of file nwnx_data.nss.