blob: b893c3f2c29b3333aca16d4e854837d4a07bd013 (
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 a Legacy game char
*/
module.exports = class LegacyChar extends Char {
/** char id of the target evol char (ported) */
revoltId = null;
/** reference to the EvolChar */
revoltChar = null;
/**
* serialize for sending over the network
* @param {*} key
*/
toJSON (key) {
return Object.assign({
revoltId: this.revoltId,
}, super.toJSON());
}
}
|