Open 3D Engine AzCore API Reference
24.09
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
|
A handler class that can connect to an Event. More...
#include <Event.h>
Public Types | |
using | Callback = AZStd::function< void(Params...)> |
Public Member Functions | |
AZ_CLASS_ALLOCATOR (EventHandler< Params... >, AZ::SystemAllocator) | |
EventHandler (std::nullptr_t) | |
EventHandler (Callback callback) | |
EventHandler (const EventHandler &rhs) | |
EventHandler (EventHandler &&rhs) | |
EventHandler & | operator= (const EventHandler &rhs) |
EventHandler & | operator= (EventHandler &&rhs) |
void | Connect (Event< Params... > &event) |
void | Disconnect () |
Disconnects the handler from its connected event, does nothing if the event is not connected. | |
bool | IsConnected () const |
Friends | |
class | Event< Params... > |
A handler class that can connect to an Event.
void AZ::EventHandler< Params >::Connect | ( | Event< Params... > & | event | ) |
Connects the handler to the provided event.
event | the Event to connect to |
bool AZ::EventHandler< Params >::IsConnected |
Returns true if this handler is connected to an event.