C# Class EventDispatcher, NanoGUI

Used to connect publishers and subscriptions in a game. All thats needed for subscribers is the key their waiting for publishing from, as well as the handler they want to run when a publish is triggered. A Publishers will need a key for what subscibers should subscribe to, and a gameObject that is associated with the publish.
Afficher le fichier Open project: hxflyer/NanoGUI Class Usage Examples

Méthodes publiques

Свойство Type Description
id string

Protected Properties

Свойство Type Description
_dispatchList List
_listenList List

Méthodes publiques

Méthode Description
EventDispatcher ( ) : System.Collections
addEventListner ( string eventType, CallBack, function ) : void
dispatchEvent ( GuiEvent, e ) : void
removeEventListner ( string eventType, CallBack, function ) : void
sendEvents ( ) : void

Method Details

EventDispatcher() public méthode

public EventDispatcher ( ) : System.Collections
Résultat System.Collections

addEventListner() public méthode

public addEventListner ( string eventType, CallBack, function ) : void
eventType string
function CallBack,
Résultat void

dispatchEvent() public méthode

public dispatchEvent ( GuiEvent, e ) : void
e GuiEvent,
Résultat void

removeEventListner() public méthode

public removeEventListner ( string eventType, CallBack, function ) : void
eventType string
function CallBack,
Résultat void

sendEvents() public static méthode

public static sendEvents ( ) : void
Résultat void

Property Details

_dispatchList protected_oe static_oe property

protected static List _dispatchList
Résultat List

_listenList protected_oe property

protected List _listenList
Résultat List

id public_oe property

public string id
Résultat string