summaryrefslogblamecommitdiff
path: root/src/routers/vault/types/EvolChar.js
blob: b6cf5a5c38a30bb2d462e89d6e819eeb63c5608c (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                                     

                                            










                                             
const Char = require("./Char.js");

/**
 * represents an Evol game char
 */
module.exports = class EvolChar extends Char {
    /** char id of the source legacy char (ported) */
    legacyId = null;
    /** reference to the LegacyChar */
    legacyChar = null;
    /** evol gender (different than tmwa) */
    gender = "U";

    /**
     * serialize for sending over the network
     * @param {*} key
     */
    toJSON (key) {
        return Object.assign({
            legacyId: this.legacyId,
        }, super.toJSON());
    }
}