Switching to hardcoded callback functions. Selection tools are working with callbacks

This commit is contained in:
Yousef Khadadeh 2026-03-02 16:36:34 +03:00
parent 109fd96b67
commit eac8610456
17 changed files with 486 additions and 429 deletions

View file

@ -18,9 +18,13 @@ template <typename... Args> class CallbackManager {
for(auto& f : funcs)
(*f)(a...);
}
~CallbackManager() {
void clear() {
for(Callback* c : funcs)
delete c;
funcs.clear();
}
~CallbackManager() {
clear();
}
private:
std::vector<Callback*> funcs;