feat: darkened

This commit is contained in:
cha0s 2019-04-21 05:07:30 -05:00
parent 3c2bf6d6a9
commit b8683ed0a9

View File

@ -0,0 +1,21 @@
import {Trait} from '@avocado/entity';
// Input handling.
export class Darkened extends Trait {
static defaultParams() {
return {
isDarkened: true,
};
}
initialize() {
this._isDarkened = this.params.get('isDarkened');
}
get isDarkened() {
return this._isDarkened;
}
}