chore: API

This commit is contained in:
cha0s 2021-04-20 08:19:45 -05:00
parent d257c285e8
commit bc8715f403

View File

@ -288,7 +288,7 @@ export default (latus) => class Emitter extends decorate(Trait) {
return stream; return stream;
}, },
emitParticle: (key, json) => { emitParticle: (key, json = {}) => {
const particleJson = this.#particles[key]; const particleJson = this.#particles[key];
if (!particleJson) { if (!particleJson) {
return undefined; return undefined;
@ -296,7 +296,7 @@ export default (latus) => class Emitter extends decorate(Trait) {
return this.entity.emitParticleJson(merge(particleJson, json)); return this.entity.emitParticleJson(merge(particleJson, json));
}, },
jsonForParticle: (key) => this.#particles[key] || {}, jsonForParticle: (key, json = {}) => merge(this.#particles[key] || {}, json),
}; };
} }