struct Athena::EventDispatcher::Callable::EventDispatcher(E)

Overview

Represents a listener that accepts both the AED::Event instance and the AED::EventDispatcherInterface instance. Such as when using [AED::EventDispatcherInterface#listener(event_class,,priority,&)][Athena::EventDispatcher::EventDispatcherInterface#listener(callable,,priority)], or the AED::Event.callable method.

Defined in:

callable.cr

Constructors

Instance methods inherited from struct Athena::EventDispatcher::Callable

event_class : AED::Event.class event_class, name : String name, priority : Int32 priority

Constructor methods inherited from struct Athena::EventDispatcher::Callable

new(event_class : AED::Event.class, name : String | Nil, priority : Int32) new

Constructor Detail

def self.new(callback : E, AED::EventDispatcherInterface -> Nil, priority : Int32 = 0, name : String | Nil = nil, event_class : E.class = E) #

[View source]