AutoMovie API
    Preparing search index...

    Interface IAutoMovieShotDefinition<Context>

    The source-authored half of a shot registration, accepted by the engine's defineShot helper.

    defineShot reads scene, contract and build into a new record under its authoritative id, without calling the builder or validating the values. Property access can still invoke author-supplied accessors; registration does not sandbox module side effects. compileDefinedShot owns registration and returned-program admission.

    interface IAutoMovieShotDefinition<Context = undefined> {
        contract: IAutoMovieDefinedShotContract;
        scene: string;
        build(context: Context): IAutoMovieShotProgram;
    }

    Type Parameters

    • Context = undefined

    Hierarchy (View Summary)

    Index

    Required participants, states, events, coverage and review evidence; its beat must be non-blank, and the program must carry that beat and its durationSeconds on both blocking and performance.

    scene: string

    Non-blank staged-scene id; the program's stage.scene.id must equal it.

    • Deterministic code that returns the typed engine program synchronously.

      defineShot stores it unexecuted. After registration-id admission, compileDefinedShot calls it once with the caller's context as a method of the returned registration, so a builder must not rely on the original definition as its this. A throw becomes builder-failed at $shot.build; production source build refuses returned thenables rather than awaiting them.

      Parameters

      Returns IAutoMovieShotProgram