summaryrefslogtreecommitdiff
path: root/src/routers/vault/types/EvolChar.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/routers/vault/types/EvolChar.js')
-rw-r--r--src/routers/vault/types/EvolChar.js21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/routers/vault/types/EvolChar.js b/src/routers/vault/types/EvolChar.js
new file mode 100644
index 0000000..1107d62
--- /dev/null
+++ b/src/routers/vault/types/EvolChar.js
@@ -0,0 +1,21 @@
+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;
+
+ /**
+ * serialize for sending over the network
+ * @param {*} key
+ */
+ toJSON (key) {
+ return Object.assign({
+ legacyId: this.legacyId,
+ }, super.toJSON());
+ }
+}