feat: darkened
This commit is contained in:
parent
3c2bf6d6a9
commit
b8683ed0a9
21
common/traits/darkened.trait.js
Normal file
21
common/traits/darkened.trait.js
Normal 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;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user