DinkyECS is now controlling the game and can handle multiple enemies easily. Next is to clean this up so it's not just one gross pile of code in the gui.

This commit is contained in:
Zed A. Shaw 2024-10-16 15:01:53 -04:00
parent 86c98c43c2
commit 33327154ad
9 changed files with 195 additions and 149 deletions

View file

@ -87,6 +87,12 @@ namespace DinkyECS {
system<CompA, CompB>(cb);
};
}
};
template<typename CompA>
std::function<void()> runner(std::function<void(const Entity&, CompA&)> cb) {
return [&]{
system<CompA>(cb);
};
}
};
}