UNPKG

@manuth/woltlab-compiler

Version:

A compiler for generating WoltLab-Package `.tar` Archives and other WoltLab-Package Components

43 lines 1.19 kB
import { EmojiInstructionCompiler } from "../../../Compilation/PackageSystem/Instructions/EmojiInstructionCompiler.js"; import { Emoji } from "../../../Customization/Presentation/Emoji.js"; import { NamedDeleteInstruction } from "../NamedDeleteInstruction.js"; /** * Represents an instruction which provides emojis. */ export class EmojiInstruction extends NamedDeleteInstruction { /** * Initializes a new instance of the {@link EmojiInstruction `EmojiInstruction`} class. * * @param options * The options of the emoji-instruction. */ constructor(options) { super(options); /** * The emojis provided by the instruction. */ this.emojis = []; for (let emoji of options.Emojis) { this.Emojis.push(new 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(this); } } //# sourceMappingURL=EmojiInstruction.js.map