fix: explicit types for minification
This commit is contained in:
parent
d64fc4c1fb
commit
0b66fdbdfd
|
@ -55,6 +55,10 @@ export class Alive extends decorate(Trait) {
|
|||
};
|
||||
}
|
||||
|
||||
static type() {
|
||||
return 'alive';
|
||||
}
|
||||
|
||||
initialize() {
|
||||
this._context = createContext();
|
||||
this._context.add('entity', this.entity);
|
||||
|
|
|
@ -13,6 +13,10 @@ export class Damaging extends Trait {
|
|||
};
|
||||
}
|
||||
|
||||
static type() {
|
||||
return 'damaging';
|
||||
}
|
||||
|
||||
initialize() {
|
||||
this._collidingWith = [];
|
||||
const damageSpecsJSON = this.params.damageSpecs;
|
||||
|
|
|
@ -34,6 +34,10 @@ export class Vulnerable extends Trait {
|
|||
}
|
||||
}
|
||||
|
||||
static type() {
|
||||
return 'vulnerable';
|
||||
}
|
||||
|
||||
initialize() {
|
||||
this.damageId = 0;
|
||||
this._hasAddedEmitter = false;
|
||||
|
|
|
@ -5,6 +5,10 @@ import {Trait} from '@avocado/entity';
|
|||
// Input handling.
|
||||
export class Controllable extends Trait {
|
||||
|
||||
static type() {
|
||||
return 'controllable';
|
||||
}
|
||||
|
||||
initialize() {
|
||||
this._inputState = I.Map();
|
||||
}
|
||||
|
|
|
@ -9,6 +9,10 @@ export class Darkened extends Trait {
|
|||
};
|
||||
}
|
||||
|
||||
static type() {
|
||||
return 'darkened';
|
||||
}
|
||||
|
||||
initialize() {
|
||||
this._isDarkened = this.params.isDarkened;
|
||||
}
|
||||
|
|
|
@ -18,6 +18,10 @@ const decorate = compose(
|
|||
|
||||
export class Informed extends decorate(Trait) {
|
||||
|
||||
static type() {
|
||||
return 'informed';
|
||||
}
|
||||
|
||||
initialize() {
|
||||
this._packer = new Packer();
|
||||
this._rememberedEntities = {};
|
||||
|
|
Loading…
Reference in New Issue
Block a user