13 lines
336 B
Haxe
Executable File
13 lines
336 B
Haxe
Executable File
package haxework.dispath;
|
|
|
|
import haxe.ds.ObjectMap;
|
|
|
|
interface IDispatcher<L:{}> {
|
|
|
|
private var listeners(null, null):ObjectMap<L, Bool>;
|
|
|
|
public function addListener(listener:L):Void;
|
|
public function removeListener(listener:L):Bool;
|
|
public function removeAllListeners():Void;
|
|
public function dispatch(caller:L->Void):Void;
|
|
} |