add new impl event manager

This commit is contained in:
2025-03-06 09:12:22 +03:00
parent a28903f67d
commit 25b228d588
3 changed files with 13 additions and 5 deletions

View File

@@ -10,7 +10,10 @@
void update() override;\
void on_event(VE::event e) override
#define VE_CONNECT(DEF_CLASS) VE::event_manager::instance().connect(std::bind(&DEF_CLASS::on_event, this, std::placeholders::_1));
// #define VE_CONNECT(DEF_NAME, DEF_CLASS) VE::event_manager::instance().connect(DEF_NAME, std::bind(&DEF_CLASS::on_event, this, std::placeholders::_1));
#define VE_CONNECT(DEF_CLASS) VE::event_manager::instance().connect(this, &DEF_CLASS::on_event);
#define VE_EMIT(e) VE::event_manager::instance().emit(e)
#define VE_PUSH_FONT(def_font, def_size)\