"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const Action_1 = require("./Action");
const ActionGroup_1 = require("./ActionGroup");
const IScriptGenerationContext_1 = require("./IScriptGenerationContext");
class TestIdleAction extends Action_1.default {
    get typeTitle() {
        return "Idle";
    }
    get title() {
        return this.typeTitle;
    }
    get ticks() {
        return this.getArgumentAsNumber("ticks");
    }
    validate() {
        this.validateArgumentIsType("ticks", "number");
        return true;
    }
    getScriptRequirements(options) {
        return {
            needsTest: true,
        };
    }
    getCommandRequirements(options) {
        return {};
    }
    addCommandLines(lines, indent, optons) { }
    addScriptLines(lines, options, context, placement) {
        if (placement === IScriptGenerationContext_1.ScriptGenerationPlacement.inSequence) {
            ActionGroup_1.default.addLine(lines, context.indent, "await " + this.getScriptTest() + ".idle(" + this.ticks + ");");
        }
    }
}
exports.default = TestIdleAction;

//# sourceMappingURL=../maps/actions/TestIdleAction.js.map
