|
Potato Engine
|
A wrapper that carries response delegate information. More...
#include <EventDelegate.hpp>
Public Member Functions | |
| template<typename BindingClass> | |
| EventDelegate (BindingClass *obj, void(BindingClass::*method)(CallbackArgs...)) | |
| Constructs delegate with class method binding. | |
| EventDelegate (void(*func)(CallbackArgs...)) | |
| Constructs bare delegate. | |
| bool | Fire (CallbackArgs... args) const |
| Fires event and forwards arguments to callback. | |
| void * | GetInstance () const |
| Gets binded object. | |
A wrapper that carries response delegate information.
Used to subscribe to events in a binding struct/method
| CallbackArgs... | arguments to pass when notifying the callback function |
Definition at line 12 of file EventDelegate.hpp.
|
inline |
Constructs delegate with class method binding.
| BindingClass | Class for binding |
| obj | object to bind to |
| method | callback with additional arguments |
Definition at line 31 of file EventDelegate.hpp.
|
inline |
Constructs bare delegate.
| func | callback with additional arguments |
Definition at line 43 of file EventDelegate.hpp.
|
inline |
Fires event and forwards arguments to callback.
Definition at line 51 of file EventDelegate.hpp.
|
inline |