Files
haxework/haxework/dispath/IDispatcher.hx
2013-09-11 15:51:22 +02:00

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;
}