diff --git a/src/js/stendhal/data/enum/Enum.ts b/src/js/stendhal/data/enum/Enum.ts deleted file mode 100644 index d28ca392e9..0000000000 --- a/src/js/stendhal/data/enum/Enum.ts +++ /dev/null @@ -1,34 +0,0 @@ -/*************************************************************************** - * Copyright © 2024 - Faiumoni e. V. * - *************************************************************************** - *************************************************************************** - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU Affero General Public License as * - * published by the Free Software Foundation; either version 3 of the * - * License, or (at your option) any later version. * - * * - ***************************************************************************/ - -import { AbstractEnum } from "./AbstractEnum"; - - -/** - * Represents a string enumeration type. - */ -export class Enum extends AbstractEnum { - - /** String enumeration type must have a value. */ - override readonly value!: string; - - - /** - * Creates a new string enumeration. - * - * @param value {string} - * String value representation of this instance. - */ - constructor(value: string) { - super(value); - } -} diff --git a/src/js/stendhal/data/enum/SoundLayer.ts b/src/js/stendhal/data/enum/SoundLayer.ts index 74ad16eb5d..138db35491 100644 --- a/src/js/stendhal/data/enum/SoundLayer.ts +++ b/src/js/stendhal/data/enum/SoundLayer.ts @@ -10,7 +10,7 @@ * * ***************************************************************************/ -import { Enum } from "../enum/Enum"; +import { AbstractEnum } from "../enum/AbstractEnum"; /** @@ -18,7 +18,7 @@ import { Enum } from "../enum/Enum"; * * NOTE: string names should match `games.stendhal.common.constants.SoundLayer` */ -export class SoundLayer extends Enum { +export class SoundLayer extends AbstractEnum { /** Reference to layers. */ private static readonly layers: SoundLayer[] = []; @@ -29,6 +29,9 @@ export class SoundLayer extends Enum { static readonly SFX = new SoundLayer("sfx"); static readonly GUI = new SoundLayer("gui"); + /** Value is required. */ + override readonly value!: string; + private constructor(value: string) { super(value);