UNPKG

@woosh/meep-engine

Version:

Pure JavaScript game engine. Fully featured and production ready.

35 lines (27 loc) 754 B
import { assert } from "../../core/assert.js"; import ObservedValue from '../../core/model/ObservedValue.js'; /** * @class */ export class Notification { /** * * @param {string} title * @param {string} description * @param {string} image URL to image * @param {string[]} classList * @constructor */ constructor({ title = "", description = "", image = "", classList = [] }) { assert.isArray(classList, 'classList'); this.title = title; this.description = description; this.image = new ObservedValue(image); this.classList = classList; } } /** * @readonly * @type {boolean} */ Notification.prototype.isNotification = true;