@turbowarp/types
    Preparing search index...

    Interface Blocks

    interface Blocks {
        _blocks: Record<string, VM.Block>;
        forceNoGlow: boolean;
        runtime: Runtime;
        duplicate(): VM.Blocks;
        emitProjectChanged(): void;
        getBlock(id: string): VM.Block | undefined;
        getBranch(id: string, branchNum?: number): string | null;
        getFields(block: VM.Block): Record<string, Field> | null;
        getInputs(block: VM.Block): Record<string, Input> | null;
        getMutation(
            block: VM.Block,
        ): ProcedureCallMutation | ProcedurePrototypeMutation | null;
        getNextBlock(id: string): string | null;
        getOpcode(block: VM.Block): string | null;
        getProcedureDefinition(procedureCode: string): string | null;
        getProcedureParamNamesAndIds(procedureCode: string): [string[], string[]];
        getProcedureParamNamesIdsAndDefaults(
            procedureCode: string,
        ): [string[], string[], unknown[]];
        getScripts(): string[];
        getTopLevelScript(id: string): string | null;
        resetCache(): void;
        toXML(): string;
    }
    Index

    Properties

    _blocks: Record<string, VM.Block>
    forceNoGlow: boolean
    runtime: Runtime

    Methods

    • Parameters

      • id: string
      • OptionalbranchNum: number

      Returns string | null

    • Parameters

      • id: string

      Returns string | null

    • Parameters

      • procedureCode: string

      Returns string | null

    • Parameters

      • procedureCode: string

      Returns [string[], string[]]

    • Parameters

      • procedureCode: string

      Returns [string[], string[], unknown[]]

    • Parameters

      • id: string

      Returns string | null