Method DispatchEvent
DispatchEvent<T>(WorldEvent, T)
Dispatches an event and invokes all listeners associated with the given event and the given type of data received in the callback
Declaration
public void DispatchEvent<T>(WorldEvent worldEvent, T eventData)
Parameters
Type | Name | Description |
---|---|---|
WorldEvent | worldEvent | The triggered event |
T | eventData | The data associated with the event |
Type Parameters
Name | Description |
---|---|
T | The expected data to be passed into the listner |
Implements
DispatchEvent<T>(String, T)
Dispatches an event and invokes all listeners associated with the given event and the given type of data received in the callback
Declaration
public void DispatchEvent<T>(string worldEvent, T eventData)
Parameters
Type | Name | Description |
---|---|---|
System.String | worldEvent | The triggered event |
T | eventData | The data associated with the event |
Type Parameters
Name | Description |
---|---|
T | The expected data to be passed into the listner |