|
NWNX:EE
8193.36.12
|
|
Go to the documentation of this file.
9 WriteTimestampedLogEntry(msg);
15 string array =
"test";
25 Log(
"Found element AItem3 at index = " + IntToString(foo));
56 Log(
"Start Time: " + IntToString(b.seconds) +
"." + IntToString(b.microseconds));
57 for (i=0; i<1000; i++)
62 Log(
"Loaded 1000: " + IntToString(b.seconds) +
"." + IntToString(b.microseconds));
65 Log(
"Shuffled 1000: " + IntToString(b.seconds) +
"." + IntToString(b.microseconds));
72 Log(
"Delete ~990: " + IntToString(b.seconds) +
"." + IntToString(b.microseconds));
79 string array=
"chicken";
83 object oCreature = CreateObject(OBJECT_TYPE_CREATURE,
"nw_chicken", GetStartingLocation());
84 if (!GetIsObjectValid(oCreature))
86 Log(
"NWNX_Creature test: Failed to create creature");
101 Log(
"Start NWNX_Data test.");
102 string array =
"test2";
111 Log(
"Found element AItem3 at index = " + IntToString(foo));
void NWNX_Data_Array_PushBack_Str(object obj, string tag, string element)
void Array_Debug_Dump(string tag, string title="xxx", object obj=OBJECT_INVALID)
void NWNX_Data_Array_Set_Str(object obj, string tag, int index, string element)
struct NWNX_Time_HighResTimestamp NWNX_Time_GetHighResTimeStamp()
void Array_Shuffle(string tag, object obj=OBJECT_INVALID)
Reorders the array such each possible permutation of elements has equal probability of appearance.
void Array_Set_Str(string tag, int index, string element, object obj=OBJECT_INVALID)
int Array_Find_Str(string tag, string element, object obj=OBJECT_INVALID)
void Array_Clear(string tag, object obj=OBJECT_INVALID)
Clears the entire array, such that size==0.
void NWNX_Data_Array_SortAscending(int type, object obj, string tag)
Sorts the collection based on descending order.
void Array_PushBack_Str(string tag, string element, object obj=OBJECT_INVALID)
A high resolution timestamp.
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.
int NWNX_Data_Array_Find_Str(object obj, string tag, string element)
const int NWNX_DATA_TYPE_STRING
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.
void TestArrayOnChicken()
void Array_SortAscending(string tag, int type=TYPE_STRING, object obj=OBJECT_INVALID)
Sorts the collection based on descending order.
int Array_Contains_Str(string tag, string element, object obj=OBJECT_INVALID)