diff options
| author | aura <nw@moneybot.cc> | 2026-02-17 23:42:09 +0100 |
|---|---|---|
| committer | aura <nw@moneybot.cc> | 2026-02-17 23:42:09 +0100 |
| commit | 5e2eb7d67ae933b7566f1944d0bb7744da03d586 (patch) | |
| tree | 054acff1113270a9cd07933df760f3768c1b6853 /sourcemod/scripting/include/gamechaos/arrays.inc | |
| parent | 341db13a008dc12bb22ceb50452d93d01476308c (diff) | |
move source stuff to its own folder
Diffstat (limited to 'sourcemod/scripting/include/gamechaos/arrays.inc')
| -rw-r--r-- | sourcemod/scripting/include/gamechaos/arrays.inc | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/sourcemod/scripting/include/gamechaos/arrays.inc b/sourcemod/scripting/include/gamechaos/arrays.inc deleted file mode 100644 index eba62bb..0000000 --- a/sourcemod/scripting/include/gamechaos/arrays.inc +++ /dev/null @@ -1,52 +0,0 @@ - -#if defined _gamechaos_stocks_arrays_included - #endinput -#endif -#define _gamechaos_stocks_arrays_included - -#define GC_ARRAYS_VERSION 0x01_00_00 -#define GC_ARRAYS_VERSION_STRING "1.0.0" - -/** - * Copies an array into an arraylist. - * - * @param array Arraylist Handle. - * @param index Index in the arraylist. - * @param values Array to copy. - * @param size Size of the array to copy. - * @param offset Arraylist offset to set. - * @return Number of cells copied. - * @error Invalid Handle or invalid index. - */ -stock int GCSetArrayArrayIndexOffset(ArrayList array, int index, const any[] values, int size, int offset) -{ - int cells; - for (int i; i < size; i++) - { - array.Set(index, values[i], offset + i); - cells++; - } - return cells; -} - -/** - * Copies an arraylist's specified cells to an array. - * - * @param array Arraylist Handle. - * @param index Index in the arraylist. - * @param result Array to copy to. - * @param size Size of the array to copy to. - * @param offset Arraylist offset. - * @return Number of cells copied. - * @error Invalid Handle or invalid index. - */ -stock int GCCopyArrayArrayIndex(const ArrayList array, int index, any[] result, int size, int offset) -{ - int cells; - for (int i = offset; i < (size + offset); i++) - { - result[i] = array.Get(index, i); - cells++; - } - return cells; -}
\ No newline at end of file |
