# Functions
Bind will cause the function fn to be called whenever the event ev is triggered on the given event handler.
EnterLoop triggers Enter events at the specified rate until the returned cancel is called.
GlobalBind will cause the function fn to be called whenever the event ev is triggered on the given event handler.
NewBus returns an empty event bus with an assigned caller map.
NewCallerMap creates a caller map.
RegisterEvent returns a unique ID to associate an event with.
TriggerForCallerOn calls TriggerForCaller with a strongly typed event.
TriggerOn calls Trigger with a strongly typed event.
# Constants
Global is the CallerID associated with global bindings.
ResponseNone or 0, is returned by events that don't want the event bus to do anything with the event after they have been evaluated.
ResponseUnbindThisBinding unbinds the one binding that returns it.
ResponseUnbindThisCaller unbinds all of a caller's bindings when returned from any binding.
# Variables
DefaultBus is a global Bus.
DefaultCallerMap is a global CallerMap.
Enter: the beginning of every logical frame.
# Structs
A Binding, returned from calls to Bind, references the details of a binding and where that binding is stored within a handler.
A Bus stores bindables to be triggered by events.
A CallerMap tracks CallerID mappings to Entities.
EnterPayload is the payload sent down to Enter bindings.
A EventID represents an event associated with a given payload type.
# Type aliases
A Bindable is a strongly typed callback function to be executed on Trigger.
A BindID is a unique identifier for a binding within a bus.
A CallerID is a caller ID that Callers use to bind themselves to receive callback signals when given events are triggered.
A GlobalBindable is a bindable that is not bound to a specific caller.
UnsafeBindable defines the underlying signature of all bindings.
An UnsafeEventID is a non-typed eventID.