35 lines
995 B
Plaintext
35 lines
995 B
Plaintext
#include "..\script_component.hpp"
|
|
|
|
/*
|
|
* Function: ramdb_db_fnc_hashSetBulk
|
|
* Author: Creedcoder, J.Schmidt
|
|
* Edit: 07.15.2024
|
|
*
|
|
* [Description]
|
|
* Set fields and values in hash stored at key from DB.
|
|
*
|
|
* Arguments:
|
|
* 0: Fields and Values to store in hash [<ARRAY|STRING|NUMBER|BOOL>] (default: [])
|
|
*
|
|
* Return Value:
|
|
* N/A
|
|
*
|
|
* Examples:
|
|
* [["loadout", [getUnitLoadout player], "position", [getPosASLVisual player]]] call ramdb_db_fnc_hashSetBulk (Server or Singleplayer Only)
|
|
* [["loadout", [getUnitLoadout player], "position", [getPosASLVisual player]]] remoteExecCall ["ramdb_db_fnc_hashSetBulk", 2, false] (Multiplayer Only)
|
|
*
|
|
* Public: Yes
|
|
*/
|
|
|
|
params [["_data", [], [[]]]];
|
|
|
|
#ifdef __A3__DEBUG__
|
|
diag_log text format ["ArmaRAMDb: 'ramdb_db_fnc_hashSetBulk' Data: %1", _data];
|
|
#endif
|
|
|
|
if (_data isEqualTo []) exitWith {
|
|
diag_log text format ["ArmaRAMDb: 'ramdb_db_fnc_hashSetBulk' Invalid Input for Data '%1'", _data];
|
|
};
|
|
|
|
"ArmaRAMDb" callExtension ["hset", _data];
|