Method AddListener
AddListener<T>(WorldEvent, WorldSimulationEvent<T>)
Adds a callback to be triggered when the given world event is dispatched
Declaration
public void AddListener<T>(WorldEvent worldEvent, WorldSimulationEvent<T> cb)
Parameters
Type | Name | Description |
---|---|---|
WorldEvent | worldEvent | The world event that triggers the listner |
WorldSimulationEvent<T> | cb | The callback to invoke when the worldEvent is dispatched |
Type Parameters
Name | Description |
---|---|
T | The expected data to be passed into the listner |
Implements
AddListener<T>(String, WorldSimulationEvent<T>)
Adds a callback to be triggered when the given world event is dispatched
Declaration
public void AddListener<T>(string worldEvent, WorldSimulationEvent<T> cb)
Parameters
Type | Name | Description |
---|---|---|
System.String | worldEvent | The world event that triggers the listner |
WorldSimulationEvent<T> | cb | The callback to invoke when the worldEvent is dispatched |
Type Parameters
Name | Description |
---|---|
T | The expected data to be passed into the listner |