C# Класс 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.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
id string

Защищенные свойства (Protected)

Свойство Тип Описание
_dispatchList List
_listenList List

Открытые методы

Метод Описание
EventDispatcher ( ) : System.Collections
addEventListner ( string eventType, CallBack, function ) : void
dispatchEvent ( GuiEvent, e ) : void
removeEventListner ( string eventType, CallBack, function ) : void
sendEvents ( ) : void

Описание методов

EventDispatcher() публичный Метод

public EventDispatcher ( ) : System.Collections
Результат System.Collections

addEventListner() публичный Метод

public addEventListner ( string eventType, CallBack, function ) : void
eventType string
function CallBack,
Результат void

dispatchEvent() публичный Метод

public dispatchEvent ( GuiEvent, e ) : void
e GuiEvent,
Результат void

removeEventListner() публичный Метод

public removeEventListner ( string eventType, CallBack, function ) : void
eventType string
function CallBack,
Результат void

sendEvents() публичный статический Метод

public static sendEvents ( ) : void
Результат void

Описание свойств

_dispatchList защищенное статическое свойство

protected static List _dispatchList
Результат List

_listenList защищенное свойство

protected List _listenList
Результат List

id публичное свойство

public string id
Результат string