/src/script/goto.ts
import { ScriptInstruction, InstructionStatus, InstructionPromise } from './';

export class GotoInstruction implements ScriptInstruction {
    label: string

    constructor(label: string) {
        this.label = label;
    }

    execute(): InstructionPromise {
        return Promise.resolve({ status: InstructionStatus.Goto, label: this.label });
    }
}