summaryrefslogblamecommitdiff
path: root/src/routers/vault/types/LegacyAccount.js
blob: 747e6df43982e65231998c311541c6978d317a84 (plain) (tree)




















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

/**
 * represents a Legacy game account
 */
module.exports = class LegacyAccount extends GameAccount {
    /** account id of the target evol account (ported) */
    revoltId = null;
    /** reference to the EvolAccount of the target evol account */
    revoltAccount = null;

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