NWNX:EE  8193.36.12
nwnx_data.nss File Reference
#include "inc_array"

Go to the source code of this file.

Functions

string NWNX_Data_Array_At_Str (object obj, string tag, int index)
 
float NWNX_Data_Array_At_Flt (object obj, string tag, int index)
 
int NWNX_Data_Array_At_Int (object obj, string tag, int index)
 
object NWNX_Data_Array_At_Obj (object obj, string tag, int index)
 
void NWNX_Data_Array_Clear (int type, object obj, string tag)
 Clears the entire array, such that size==0. More...
 
int NWNX_Data_Array_Contains_Flt (object obj, string tag, float element)
 
int NWNX_Data_Array_Contains_Int (object obj, string tag, int element)
 
int NWNX_Data_Array_Contains_Obj (object obj, string tag, object element)
 
int NWNX_Data_Array_Contains_Str (object obj, string tag, string element)
 
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...
 
int NWNX_Data_Array_Find_Flt (object obj, string tag, float element)
 
int NWNX_Data_Array_Find_Int (object obj, string tag, int element)
 
int NWNX_Data_Array_Find_Obj (object obj, string tag, object element)
 
int NWNX_Data_Array_Find_Str (object obj, string tag, string element)
 
void NWNX_Data_Array_Insert_Flt (object obj, string tag, int index, float element)
 
void NWNX_Data_Array_Insert_Int (object obj, string tag, int index, int element)
 
void NWNX_Data_Array_Insert_Obj (object obj, string tag, int index, object element)
 
void NWNX_Data_Array_Insert_Str (object obj, string tag, int index, string element)
 
void NWNX_Data_Array_PushBack_Flt (object obj, string tag, float element)
 
void NWNX_Data_Array_PushBack_Int (object obj, string tag, int element)
 
void NWNX_Data_Array_PushBack_Obj (object obj, string tag, object element)
 
void NWNX_Data_Array_PushBack_Str (object obj, string tag, string element)
 
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...
 
void NWNX_Data_Array_Set_Flt (object obj, string tag, int index, float element)
 
void NWNX_Data_Array_Set_Int (object obj, string tag, int index, int element)
 
void NWNX_Data_Array_Set_Obj (object obj, string tag, int index, object element)
 
void NWNX_Data_Array_Set_Str (object obj, string tag, int index, string element)
 
void NWNX_Data_Array_Sort (object obj, string tag, string direction)
 

Variables

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

◆ NWNX_Data_Array_Sort()

void NWNX_Data_Array_Sort ( object  obj,
string  tag,
string  direction 
)

Definition at line 308 of file nwnx_data.nss.