|
using | event_type = T |
|
using | callback_fn = std::function<void(event_type&)> |
|
|
| Listener (callback_fn fn, EventPriority priority=EventPriority::Normal, std::weak_ptr< mod::Mod > mod=mod::NativeMod::current()) |
|
void | call (Event &event) override |
|
constexpr ListenerId | getId () const |
|
constexpr EventPriority | getPriority () const |
|
constexpr bool | operator== (ListenerBase const &other) const noexcept |
|
constexpr std::strong_ordering | operator<=> (ListenerBase const &other) const noexcept |
|
|
static std::shared_ptr< Listener > | create (callback_fn fn, EventPriority priority=EventPriority::Normal, std::weak_ptr< mod::Mod > mod=mod::NativeMod::current()) |
|
◆ call()
template<std::derived_from<
Event > T>
The documentation for this class was generated from the following file: