fix: explicit types for minification

This commit is contained in:
cha0s 2019-05-05 04:26:23 -05:00
parent d64fc4c1fb
commit 0b66fdbdfd
6 changed files with 24 additions and 0 deletions

View File

@ -55,6 +55,10 @@ export class Alive extends decorate(Trait) {
};
}
static type() {
return 'alive';
}
initialize() {
this._context = createContext();
this._context.add('entity', this.entity);

View File

@ -13,6 +13,10 @@ export class Damaging extends Trait {
};
}
static type() {
return 'damaging';
}
initialize() {
this._collidingWith = [];
const damageSpecsJSON = this.params.damageSpecs;

View File

@ -34,6 +34,10 @@ export class Vulnerable extends Trait {
}
}
static type() {
return 'vulnerable';
}
initialize() {
this.damageId = 0;
this._hasAddedEmitter = false;

View File

@ -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();
}

View File

@ -9,6 +9,10 @@ export class Darkened extends Trait {
};
}
static type() {
return 'darkened';
}
initialize() {
this._isDarkened = this.params.isDarkened;
}

View File

@ -18,6 +18,10 @@ const decorate = compose(
export class Informed extends decorate(Trait) {
static type() {
return 'informed';
}
initialize() {
this._packer = new Packer();
this._rememberedEntities = {};