@manuth/woltlab-compiler
Version:
A compiler for generating WoltLab-Package `.tar` Archives and other WoltLab-Package Components
107 lines • 2.61 kB
JavaScript
/**
* Represents an emoji.
*/
export class Emoji {
/**
* Initializes a new instance of the {@link Emoji `Emoji`} class.
*
* @param options
* The options of the emoji.
*/
constructor(options) {
/**
* The aliases of the emoji.
*/
this.aliases = [];
/**
* A value indicating at which position the emoji is displayed.
*/
this.showOrder = null;
/**
* The filename relative to the root of WoltLab Suite Core of the high-resolution emoji.
*/
this.highResFileName = null;
this.Name = options.Name;
this.DisplayName = options.DisplayName;
if ((options.Aliases !== null) &&
(options.Aliases !== undefined)) {
this.Aliases.push(...options.Aliases);
}
if ((options.ShowOrder !== null) &&
(options.ShowOrder !== undefined)) {
this.ShowOrder = options.ShowOrder;
}
this.FileName = options.FileName;
if ((options.HighResFileName !== null) &&
(options.HighResFileName !== undefined)) {
this.HighResFileName = options.HighResFileName;
}
}
/**
* Gets or sets the name of the emoji.
*/
get Name() {
return this.name;
}
/**
* @inheritdoc
*/
set Name(value) {
this.name = value;
}
/**
* Gets or sets the human-readable name of the emoji.
*/
get DisplayName() {
return this.displayName;
}
/**
* @inheritdoc
*/
set DisplayName(value) {
this.displayName = value;
}
/**
* Gets the aliases of the emoji.
*/
get Aliases() {
return this.aliases;
}
/**
* Gets or sets a value indicating at which position the emoji is displayed.
*/
get ShowOrder() {
return this.showOrder;
}
/**
* @inheritdoc
*/
set ShowOrder(value) {
this.showOrder = value;
}
/**
* Gets or sets the filename relative to the root of WoltLab Suite Core of the emoji.
*/
get FileName() {
return this.fileName;
}
/**
* @inheritdoc
*/
set FileName(value) {
this.fileName = value;
}
/**
* Gets or sets the filename relative to the root of WoltLab Suite Core of the high-resolution emoji.
*/
get HighResFileName() {
return this.highResFileName;
}
/**
* @inheritdoc
*/
set HighResFileName(value) {
this.highResFileName = value;
}
}
//# sourceMappingURL=Emoji.js.map