IEvent#
- class carb.events.IEvent#
Bases:
pybind11_object
Event.
Event has an Event type, a sender id and a payload. Payload is a dictionary like item with arbitrary data.
Methods
__init__
(*args, **kwargs)consume
(self)Consume event to stop it propagating to other listeners down the line.
Attributes
payload
sender
type
- __init__(*args, **kwargs)#
- consume(self: carb.events._events.IEvent) None #
Consume event to stop it propagating to other listeners down the line.