UNPKG

woltlab-compiler

Version:

A compiler for WoltLab-Package Archives and WoltLab-Package Components

43 lines 1.31 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const EmojiInstructionCompiler_1 = require("../../../Compilation/PackageSystem/Instructions/EmojiInstructionCompiler"); const Emoji_1 = require("../../../Customization/Presentation/Emoji"); const NamedDeleteInstruction_1 = require("../NamedDeleteInstruction"); /** * Represents an instruction which provides emojis. */ class EmojiInstruction extends NamedDeleteInstruction_1.NamedDeleteInstruction { /** * Initializes a new instance of the `EmojiInstruction` class. */ constructor(options) { super(options); /** * The emojis provided by the instruction. */ this.emojis = []; for (let emoji of options.Emojis) { this.Emojis.push(new Emoji_1.Emoji(emoji)); } } /** * @inheritdoc */ get Type() { return "smiley"; } /** * Gets the emojis provided by the instruction. */ get Emojis() { return this.emojis; } /** * @inheritdoc */ get Compiler() { return new EmojiInstructionCompiler_1.EmojiInstructionCompiler(this); } } exports.EmojiInstruction = EmojiInstruction; //# sourceMappingURL=EmojiInstruction.js.map