On
string
required
Event name. Use
UgCore.Enums.Events values for core events.fun(...)
required
Called with the event arguments.
integer
Pass to
Off to remove the handler.ug-core:* events are dropped unless ug-core triggered them. Dropped events log at Debug.
Once
On, but the handler runs at most once. A dropped spoofed event does not use it up.
Off
boolean
false for unknown or already removed ids.Emit
string
required
MUST start with your resource name, such as
my-shop:Purchased. Raises otherwise.