Closed seanohue closed 8 months ago
Looks good. You should also update the documentation for Account
:
...
/**
* Representation of a player's account
*
* @property {string} username
* @property {Array<string>} characters List of character names in this account
* @property {string} password Hashed password
* @property {boolean} banned Whether this account is banned or not
* @extends EventEmitter
* @mixes Metadatable
*/
class Account extends Metadatable(EventEmitter) {
...
This way it can use the getMeta/setMeta API and fires the metadata change events.