News for hackers. Stuff that matters.
Re:Flecs – A fast entity component system for C and C++ by a-nikolaev on Tuesday April 04, 2023 @08:17AM (#35438382)
A collection (e.g. an array or a hash map) that stores things. Maybe more than one collection like that, different for each type of entity: monsters, items, etc. (Separate code paths to handle these different types of things.)

Keeping indexes/keys for references, and loops over these collections can do a lot without any upfront complexity of an entity system.

There are no comments on this comment yet.