blob: 1107d62c8ddf0efe857534b5e17cc2d47b0266b4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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());
}
}
|