A callback function passed to SparseMap.forEach
A map that references values using unsigned integers. Uses a packed array in conjunction with a key-value index for fast lookup, add/remove operations, and iteration. SparseMap is used frequently in Harmony since entities (including schema and game objects) are represented as unsigned integers.
SparseMap is faster than ES Maps in all cases. It is slower than sparse arrays for read/write operations, but faster to iterate.
Generated using TypeDoc
A high-performance map that references values using unsigned integers.