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/smlib/dynarrays.inc | |
| parent | 341db13a008dc12bb22ceb50452d93d01476308c (diff) | |
move source stuff to its own folder
Diffstat (limited to 'sourcemod/scripting/include/smlib/dynarrays.inc')
| -rw-r--r-- | sourcemod/scripting/include/smlib/dynarrays.inc | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/sourcemod/scripting/include/smlib/dynarrays.inc b/sourcemod/scripting/include/smlib/dynarrays.inc deleted file mode 100644 index 35a8951..0000000 --- a/sourcemod/scripting/include/smlib/dynarrays.inc +++ /dev/null @@ -1,24 +0,0 @@ -#if defined _smlib_dynarray_included - #endinput -#endif -#define _smlib_dynarray_included - -#include <sourcemod> - -/** - * Retrieves a cell value from an array. - * This is a wrapper around the Sourcemod Function GetArrayCell, - * but it casts the result as bool - * - * @param array Array Handle. - * @param index Index in the array. - * @param block Optionally specify which block to read from - * (useful if the blocksize > 0). - * @param asChar Optionally read as a byte instead of a cell. - * @return Value read. - * @error Invalid Handle, invalid index, or invalid block. - */ -stock bool DynArray_GetBool(ArrayList array, int index, int block=0, bool asChar=false) -{ - return array.Get(index, block, asChar) != 0; -} |
