← API Reference Class

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 noexcept

Retrieves 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() const

Unsafe accessor: returns the stored event, throws if EventT doesn't match.

Template Parameters
EventT

The event type to extract.

#bool IsUnknown() const noexcept

True if this SystemEvent holds no recognized event.

Static Public Member Functions

#static SystemEvent const & GetUnknown() noexcept

Shared instance of the unknown/no-op event.