The frontend/UI server, written in JS using the MarkoJS library
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
const {query} = require("../client")
class Character { /** * @param {string} id * @param {string[]} nicks * @param {string} author * @param {string} name * @param {string} shortName * @param {string} description */ constructor(id, nicks, author, name, shortName, description) { this.id = id this.nicks = nicks this.nick = this.nicks[0] || null this.author = author this.name = name this.shortName = shortName this.description = description }
/** * Create a character object from data. */ static fromData(data) { return new Character(data.id, data.nicks, data.author, data.name, data.shortName, data.description) } }
module.exports = { Character }
|