summaryrefslogtreecommitdiff
path: root/src/routers/vault/types/EvolAccount.js
blob: 6db03bf41c5f837e038a808c03d66417fe27b18f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
const GameAccount = require("./GameAccount.js");

/**
 * represents an Evol game account
 */
module.exports = class EvolAccount extends GameAccount {
    /** account id of the source legacy account (ported) */
    legacyId = null;
    /** reference to the LegacyAccount */
    legacyAccount = null;

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