Skip to content

Commit

Permalink
Merge pull request #1350 from Fusselwurm/patch-1
Browse files Browse the repository at this point in the history
add CBA_fnc_hashValues
  • Loading branch information
PabstMirror committed Oct 13, 2020
2 parents 1ae8ea0 + 6b6aa6c commit 79c04b6
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
1 change: 1 addition & 0 deletions addons/hashes/CfgFunctions.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ class CfgFunctions {
PATHTO_FNC(hashRem);
PATHTO_FNC(hashSet);
PATHTO_FNC(hashSize);
PATHTO_FNC(hashValues);
PATHTO_FNC(isHash);
PATHTO_FNC(parseYAML);
PATHTO_FNC(serializeNamespace);
Expand Down
25 changes: 25 additions & 0 deletions addons/hashes/fnc_hashValues.sqf
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#include "script_component.hpp"
#include "script_hashes.hpp"
/* ----------------------------------------------------------------------------
Function: CBA_fnc_hashValues
Description:
Returns all values in a Hash.
See <CBA_fnc_hashCreate>.
Parameters:
_hash - Hash to get values for [Array which is a Hash structure]
Returns:
Array of all values [Array]
Author:
Fusselwurm
---------------------------------------------------------------------------- */
SCRIPT(hashValues);

// -----------------------------------------------------------------------------
params [["_hash", [[], []], [[]]]];

+(_hash select HASH_VALUES)

0 comments on commit 79c04b6

Please sign in to comment.