|
SleakEngine 1.0.0
C++23 multi-backend game engine
|
#include <Delegate.hpp>
Public Types | |
| using | FunctionType = std::function<void(Args...)> |
Public Member Functions | |
| Delegate (FunctionType func) | |
| void | Execute () override |
| std::string | GetID () override |
| void | SetArgs (Args... args) |
| Public Member Functions inherited from Sleak::IDelegate | |
| virtual | ~IDelegate ()=default |
Callable wrapper that stashes its arguments via SetArgs and invokes them later via Execute.
Definition at line 28 of file Delegate.hpp.
| using Sleak::Delegate< Args >::FunctionType = std::function<void(Args...)> |
Definition at line 30 of file Delegate.hpp.
|
inline |
Definition at line 32 of file Delegate.hpp.
|
inlineoverridevirtual |
Implements Sleak::IDelegate.
Definition at line 39 of file Delegate.hpp.
|
inlineoverridevirtual |
Implements Sleak::IDelegate.
Definition at line 45 of file Delegate.hpp.
|
inline |
Definition at line 34 of file Delegate.hpp.