World:beforeSystemCallback
Callback before World:emit forwards an event to a System.
Callback before World:emit forwards an event to a System.
Returning a truthy value skips the System listener and afterSystemCallback for this event. Nested emits are forbidden inside this callback
skip = world:beforeSystemCallback( system, eventName, ... )Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
system |
System | System that is being called |
eventName |
string | Name of the event being emitted |
... |
any | Parameters passed to World:emit |
Returns
Section titled “Returns”| Name | Type | Description |
|---|---|---|
skip |
boolean? | Truthy to skip the System listener and afterSystemCallback |