Author: pAXton
Author Website: http://www.devteampaxton.com

Requirements: No addons required

Version: 0.1

Short description: Create Hashmaps for large amounts of data

Date: 2017-02-11 23:19


Comments: (0)
Rating:



 





HashMap for Arma 3

by
pAxton


Description:
Functions to create and use hashmaps within Arma 3 scripting


Features:
create, get and put functions


Installation / Usage:
How To Install:
1- Place the hashMap folder in the mission root directory.
2- In the init.sqf or initPlayerLocal.sqf or initServer.sqf depending on who is using the functions
paste this line - [] call compileFinal preprocessFileLineNumbers "hashMap\hashMap_init.sqf";

For usage instructions and information of how to use pAxton's HashMap please also refer to the included documentation and/or example mission.

See Example init.sqf in Examples folder
Allow Maps are stored in missionNamespace right now
all functions need to be use call not spawn

functions to use
function name: hash_create
params:
0: String - Global Name to use for Map
1: Number - Size of array - Make array size as close as possible to how many elements it will hold for better performance
returns:
true when completed

function name: hash_put
params:
0: String - Global name of Map
1: String - this is the key - Name of item, if using number or UID put quotes around it
2: Anything - Value you want associated with the key
returns:
true when completed

function name: has_get
params:
0: String - Global Name of Map
1: String - Key
returns:
value from key

notes:
Duplicate keys will override previous value
Collisions with hash values are handled inside the hash_get function


Changelog:
v0.1
- first release




Enable javascript to be able to download from Armaholic please!



Tags: Hashmap