add event target

This commit is contained in:
chatlanin
2025-01-30 23:10:34 +03:00
parent a998115414
commit 5155fdbd49
11 changed files with 31 additions and 22 deletions

View File

@@ -22,10 +22,10 @@ namespace VE
virtual void render() {};
virtual void on_event(event e) {};
void set_event_fn(const event_fn<event&>& fn) { execute = fn; };
void set_event_fn(const event_fn<event>& fn) { execute = fn; };
protected:
event_fn<event&> execute;
event_fn<event> execute;
};
}