chore: API
This commit is contained in:
parent
d257c285e8
commit
bc8715f403
|
@ -288,7 +288,7 @@ export default (latus) => class Emitter extends decorate(Trait) {
|
|||
return stream;
|
||||
},
|
||||
|
||||
emitParticle: (key, json) => {
|
||||
emitParticle: (key, json = {}) => {
|
||||
const particleJson = this.#particles[key];
|
||||
if (!particleJson) {
|
||||
return undefined;
|
||||
|
@ -296,7 +296,7 @@ export default (latus) => class Emitter extends decorate(Trait) {
|
|||
return this.entity.emitParticleJson(merge(particleJson, json));
|
||||
},
|
||||
|
||||
jsonForParticle: (key) => this.#particles[key] || {},
|
||||
jsonForParticle: (key, json = {}) => merge(this.#particles[key] || {}, json),
|
||||
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user