refactor: render tick

This commit is contained in:
cha0s 2021-07-06 19:11:44 -05:00
parent c30c4cfdc2
commit 70f30c4576

View File

@ -141,7 +141,7 @@ export default (latus) => class Emitter extends decorate(Trait) {
this.#emitter.destroy();
return true;
}
this.tick(elapsed);
this.renderTick(elapsed);
return false;
};
hooks.destroy = () => () => 0 === this.#streams.length;
@ -330,7 +330,7 @@ export default (latus) => class Emitter extends decorate(Trait) {
: [];
}
tick(elapsed) {
renderTick(elapsed) {
this.#emitter.update(elapsed);
for (let i = 0; i < this.#emissions.length; i++) {
this.#emissions[i].tick(elapsed);