woltlab-compiler
Version:
A compiler for WoltLab-Package Archives and WoltLab-Package Components
44 lines • 1.32 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const GroupOptionInstructionCompiler_1 = require("../../../Compilation/PackageSystem/Instructions/GroupOptionInstructionCompiler");
const GroupCategory_1 = require("../../../Options/Groups/GroupCategory");
const OptionInstruction_1 = require("./OptionInstruction");
/**
* Represents an instruction which provides options for groups.
*/
class GroupOptionInstruction extends OptionInstruction_1.OptionInstruction {
/**
* Initializes a new instance of the `GroupOptionInstruction` class.
*/
constructor(options) {
super(options, (node, opts) => {
return new GroupCategory_1.GroupCategory(node, opts);
});
}
/**
* @inheritdoc
*/
get Type() {
return "userGroupOption";
}
/**
* @inheritdoc
*/
get RootCategory() {
return "wcf.acp.group";
}
/**
* @inheritdoc
*/
get OptionCategory() {
return "option";
}
/**
* @inheritdoc
*/
get Compiler() {
return new GroupOptionInstructionCompiler_1.GroupOptionInstructionCompiler(this);
}
}
exports.GroupOptionInstruction = GroupOptionInstruction;
//# sourceMappingURL=GroupOptionInstruction.js.map