asge::event::SystemEvent
#include <Events.hpp>Private Attributes
Public Member Functions
#
SystemEvent()=default#
template<_internal::IsSystemEvent EventT> SystemEvent(EventT &&inEvent) noexcept#
template<_internal::IsSystemEvent EventT> EventT const * TryGet() const noexceptRetrieves a pointer to the specific event type.
Template Parameters
EventT | The event type to extract. |
Returns
Pointer to EventT, or nullptr if type mismatch.
#
template<_internal::IsSystemEvent EventT> EventT const & Get() constUnsafe accessor: returns the stored event, throws if EventT doesn't match.
Template Parameters
EventT | The event type to extract. |
#
bool IsUnknown() const noexceptTrue if this SystemEvent holds no recognized event.
Static Public Member Functions
#
static SystemEvent const & GetUnknown() noexceptShared instance of the unknown/no-op event.