ecspresso
    Preparing search index...
    • Send a named event to an entity's state machine. Checks the current state's on handlers for a matching event.

      Parameters

      • ecs: StateMachineWorld

        ECS instance (structural typing)

      • entityId: number

        Entity to send event to

      • eventName: string

        Event name to match against on handlers

      Returns boolean

      true if a transition occurred, false otherwise