CE DS Index
Index data structure
Example
// Create database of weapon items
var _weapons = ce_ds_index_create();
// Add items
var _w_knife = ce_ds_map_create_from_array([
"name", "Knife",
"attack", 2
]);
ce_ds_index_add(_weapons, _w_knife);
var _w_rusty_knife = ce_ds_map_create_from_array([
"name", "Rusty Knife",
"attack", 1
]);
ce_ds_index_add(_weapons, _w_rusty_knife);
// Find weapons with attack greater than 1
var _found = ce_ds_index_find(_weapons, "attack", 1, ce_real_compare,
CE_ECompare.Greater);
Installation
Using Catalyst, the open-source package manager for GameMaker Studio 2:
catalyst require slagtand-org/ce-ds-index
Related
This library is a part of project CE. For more information, please visit the project's repository: https://github.com/slagtand-org/ce