summaryrefslogtreecommitdiff
path: root/src/routers/vault/types/LegacyAccount.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/routers/vault/types/LegacyAccount.js')
-rw-r--r--src/routers/vault/types/LegacyAccount.js21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/routers/vault/types/LegacyAccount.js b/src/routers/vault/types/LegacyAccount.js
new file mode 100644
index 0000000..747e6df
--- /dev/null
+++ b/src/routers/vault/types/LegacyAccount.js
@@ -0,0 +1,21 @@
+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());
+ }
+}