"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const GroupAction_1 = require("./GroupAction");
const IScriptGenerationContext_1 = require("./IScriptGenerationContext");
class RandomizeGroupAction extends GroupAction_1.default {
    get typeTitle() {
        return "Randomize";
    }
    get typeId() {
        return "randomize";
    }
    get title() {
        return this.typeTitle;
    }
    validate() {
        return true;
    }
    getScriptRequirements(options) {
        return {
            needsTest: true,
        };
    }
    getCommandRequirements(options) {
        return {};
    }
    addCommandLines(lines, indent, optons) { }
    addScriptLines(lines, options, context, placement) {
        if (placement === IScriptGenerationContext_1.ScriptGenerationPlacement.blockStart) {
            let functionLine = "export function " + this.group.name + "() {";
            lines.push(functionLine);
        }
        else if (placement === IScriptGenerationContext_1.ScriptGenerationPlacement.blockEnd) {
            lines.push("}");
        }
    }
}
exports.default = RandomizeGroupAction;

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