4 ms·
> There is no ~~spoon~~ entity. What was our entity like? A structure with pointers (IDs) to different components. Now, let's treat it as just another component
by Kinrany 5y ago
> There is no ~~spoon~~ entity. What was our entity like? A structure with pointers (IDs) to different components. Now, let's treat it as just another component! The whole ECS becomes simpler.
To me this is the most interesting part. Game logic needs components with references to other entities and components anyway. And if there's some way of identifying components, you no longer need entities to have identities.
And you can still apply all the optimizations as long as you treat some components as "entity" components. But only when you want to exchange simplicity for performance.