diff options
Diffstat (limited to 'src/routers/vault/types/EvolAccount.js')
-rw-r--r-- | src/routers/vault/types/EvolAccount.js | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/routers/vault/types/EvolAccount.js b/src/routers/vault/types/EvolAccount.js new file mode 100644 index 0000000..6db03bf --- /dev/null +++ b/src/routers/vault/types/EvolAccount.js @@ -0,0 +1,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()); + } +} |