22 ms·
It's called entity-component systems in games. Note that OOP was designed for simulations but games, the only kind of simulation people like using, don't use OO
by astrange 6y ago
It's called entity-component systems in games. Note that OOP was designed for simulations but games, the only kind of simulation people like using, don't use OOP.
- astrobe_ 6y agoI think the more accurate references is "Parallel arrays", aka "Structure of Arrays" (SoA) [1] The amusing thing is that SoA is something you could see in old languages that didn't have data structures, or the code of newbies that don't know data structures. [1] https://en.wikipedia.org/wiki/Parallel_array https://en.wikipedia.org/wiki/Parallel_array
- scambier 6y agoIt's "Entity Component System". The "system" is part of the pattern name.
- BlueTemplar 6y agoPlenty of games use OOP (C++ !). And ECS is just relational OOP.