mwg API
    Preparing search index...

    Interface PresentationQueueOptions<Event>

    interface PresentationQueueOptions<Event> {
        play: (event: Event) => number | void;
    }

    Type Parameters

    • Event
    Index
    play: (event: Event) => number | void

    Presents one event - starts a tween, plays a sound, shows a floating number - and returns how many seconds to wait before the next one starts. Return 0 or nothing for an event with no visual duration of its own (a sound cue riding along another animation); several of those in a row drain in the same enqueue/update call rather than costing a frame each.