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:
parent
86c98c43c2
commit
33327154ad
9 changed files with 195 additions and 149 deletions
|
@ -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);
|
||||
};
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue