AutoMovie API
    Preparing search index...

    Variable selectInstancePrototypeConst

    selectInstancePrototype: <
        Choice extends
            Pick<IAutoMovieCompiledInstancePrototype, "id" | "model" | "weight">,
    >(
        instanceSet: IAutoMovieSelectInstancePrototype.IInstanceSet<Choice>,
        slot: number,
        explicit: string | undefined,
    ) =>
        | Choice
        | Pick<IAutoMovieCompiledInstancePrototype, "id" | "model" | "weight"> = ...

    The prototype one instance slot draws, or the explicit one it names.

    A set with a prototype table draws from it, and a compiled table already starts with the base model's default, counted once. A set without a table draws its base model under the id default. An explicit member names its choice outright, and naming one the table lacks refuses. Otherwise the slot's seeded sample, drawn under the prototype salt, is spent across the weights in table order: every choice but the last is tested, and the last is what remains, which is both the weighted answer and the answer when a float residue leaves the sample a hair above the final weight.

    The instance member regenerator and the structural subject diff both draw through here, so a diff counts a prototype change exactly where a regenerated member changes prototype. The choice returned is the table's own entry, so a caller holding a compiled table reads that entry's tiers. An explicitly empty table throws; only an absent table creates the default.

    Type Declaration