LeviLamina
Loading...
Searching...
No Matches
ll::event::MultiListener< Ts > Class Template Reference
+ Inheritance diagram for ll::event::MultiListener< Ts >:

Public Types

using callback_fn = std::function<void(Event&)>
 

Public Member Functions

template<class Callable >
 MultiListener (Callable const &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 Public Member Functions

template<class Callable >
static std::shared_ptr< MultiListenercreate (Callable const &fn, EventPriority priority=EventPriority::Normal, std::weak_ptr< mod::Mod > mod=mod::NativeMod::current())
 

Public Attributes

std::weak_ptr< mod::ModmodPtr
 

Member Function Documentation

◆ call()

template<class... Ts>
void ll::event::MultiListener< Ts >::call ( Event & event)
inlineoverridevirtual

The documentation for this class was generated from the following file: