import { lang } from "./lang.js"; class element { #id; #pictures; #mesh; #name; #description; #params; #links; #thumbnail; constructor(id) { if (typeof(id) !== "number") { throw "ID must be number."; } this.#id = id; this.#pictures = new Set(); this.#params = new Map(); this.#links = new Map(); this.#name = undefined; this.#mesh = undefined; this.#thumbnail = undefined; } get id() { return this.#id; } set name(content) { if (typeof(content) !== "string") { throw "Name must be string."; } this.#name = content; } get name() { return this.#name; } get mesh() { return this.#mesh; } set mesh(content) { if (typeof(content) !== "string") { throw "Mesh URL must be string."; } this.#mesh = content; } set thumbnail(content) { if (typeof(content) !== "string") { throw "Thumbnail URL must be string."; } } get thumbnail() { return this.#thumbnail; } get links() { return this.#links; } get params() { return this.#params; } get pictures() { return this.#pictures; } } export { element };