Hacker News new | ask | show | jobs
by fenomas 2679 days ago
In my ECS I do this by storing the actual data in a dense array, alongside a hash that maps entity IDs to array indexes.

If you want to see the (javascript) innards: https://github.com/andyhall/ent-comp