4
* Defines an interface by which events can be dispatched. This can be used
5
* instead of direct reference to BaseGameDriver objects as it reduces
6
* coupling and eases class management.
8
* Refer to BaseGameDriver for the function documentation.
10
interface EventDispatcher
12
public function addEventListener( evt : String, listener : Dynamic -> Void, ?priority : Int, ?weak : Bool = true ) : Void;
13
public function removeEventListener( evt : String, listener : Dynamic -> Void ) : Void;
14
public function postEvent( evt : BaseEvent ) : Void;
15
public function queueEvent( evt : BaseEvent ) : Void;
16
public function dispatchEvent( evt : BaseEvent ) : Void;