Skip to content

@modoki/engine / index / DispatchOptions

Interface: DispatchOptions

Options for dispatching an action — the target is given as a GUID and resolved to an entity here so callers (applyBindings) don't need world access. A caller that already resolved the entity (applyBindings builds a guid→entity map once) can pass target to skip the O(n) scan.

Actions

params?

optional params?: Record<string, unknown>


payload?

optional payload?: UIActionPayload


target?

optional target?: Entity

Pre-resolved target entity. If set, the targetGuid scan is skipped.


targetGuid?

optional targetGuid?: string

Built with Modoki.