NWNX:EE  8193.36.12
inc_array.nss File Reference

Go to the source code of this file.

Functions

string Array_At_Str (string tag, int index, object obj=OBJECT_INVALID)
 
float Array_At_Flt (string tag, int index, object obj=OBJECT_INVALID)
 
int Array_At_Int (string tag, int index, object obj=OBJECT_INVALID)
 
object Array_At_Obj (string tag, int index, object obj=OBJECT_INVALID)
 
void Array_Clear (string tag, object obj=OBJECT_INVALID)
 Clears the entire array, such that size==0. More...
 
int Array_Contains_Flt (string tag, float element, object obj=OBJECT_INVALID)
 
int Array_Contains_Int (string tag, int element, object obj=OBJECT_INVALID)
 
int Array_Contains_Obj (string tag, object element, object obj=OBJECT_INVALID)
 
int Array_Contains_Str (string tag, string element, object obj=OBJECT_INVALID)
 
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...
 
int Array_Find_Flt (string tag, float element, object obj=OBJECT_INVALID)
 
int Array_Find_Int (string tag, int element, object obj=OBJECT_INVALID)
 
int Array_Find_Obj (string tag, object element, object obj=OBJECT_INVALID)
 
int Array_Find_Str (string tag, string element, object obj=OBJECT_INVALID)
 
void Array_Insert_Flt (string tag, int index, float element, object obj=OBJECT_INVALID)
 
void Array_Insert_Int (string tag, int index, int element, object obj=OBJECT_INVALID)
 
void Array_Insert_Obj (string tag, int index, object element, object obj=OBJECT_INVALID)
 
void Array_Insert_Str (string tag, int index, string element, object obj=OBJECT_INVALID)
 
void Array_PushBack_Flt (string tag, float element, object obj=OBJECT_INVALID)
 
void Array_PushBack_Int (string tag, int element, object obj=OBJECT_INVALID)
 
void Array_PushBack_Obj (string tag, object element, object obj=OBJECT_INVALID)
 
void Array_PushBack_Str (string tag, string element, object obj=OBJECT_INVALID)
 
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 Array_Set_Flt (string tag, int index, float element, object obj=OBJECT_INVALID)
 
void Array_Set_Int (string tag, int index, int element, object obj=OBJECT_INVALID)
 
void Array_Set_Obj (string tag, int index, object element, object obj=OBJECT_INVALID)
 
void Array_Set_Str (string tag, int index, string element, object obj=OBJECT_INVALID)
 
string GetTableName (string tag, object obj=OBJECT_INVALID, int bare=FALSE)
 
string GetTableCreateString (string tag, object obj=OBJECT_INVALID)
 
int TableExists (string tag, object obj=OBJECT_INVALID)
 
void ExecuteStatement (string statement, object obj=OBJECT_INVALID)
 
void CreateArrayTable (string tag, object obj=OBJECT_INVALID)
 
int GetRowCount (string tag, object obj=OBJECT_INVALID)
 
void Array_Sort (string tag, string dir="ASC", int type=TYPE_STRING, object obj=OBJECT_INVALID)
 
void Array_Debug_Dump (string tag, string title="xxx", object obj=OBJECT_INVALID)
 

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
 

Function Documentation

◆ GetTableName()

string GetTableName ( string  tag,
object  obj = OBJECT_INVALID,
int  bare = FALSE 
)

Definition at line 126 of file inc_array.nss.

◆ GetTableCreateString()

string GetTableCreateString ( string  tag,
object  obj = OBJECT_INVALID 
)

Definition at line 148 of file inc_array.nss.

◆ TableExists()

int TableExists ( string  tag,
object  obj = OBJECT_INVALID 
)

Definition at line 154 of file inc_array.nss.

◆ ExecuteStatement()

void ExecuteStatement ( string  statement,
object  obj = OBJECT_INVALID 
)

Definition at line 161 of file inc_array.nss.

◆ CreateArrayTable()

void CreateArrayTable ( string  tag,
object  obj = OBJECT_INVALID 
)

Definition at line 170 of file inc_array.nss.

◆ GetRowCount()

int GetRowCount ( string  tag,
object  obj = OBJECT_INVALID 
)

Definition at line 176 of file inc_array.nss.

◆ Array_Sort()

void Array_Sort ( string  tag,
string  dir = "ASC",
int  type = TYPE_STRING,
object  obj = OBJECT_INVALID 
)

Definition at line 432 of file inc_array.nss.

◆ Array_Debug_Dump()

void Array_Debug_Dump ( string  tag,
string  title = "xxx",
object  obj = OBJECT_INVALID 
)

Definition at line 498 of file inc_array.nss.