diff --git a/packages/state/synchronizer.js b/packages/state/synchronizer.js index 4416c35..18d05df 100644 --- a/packages/state/synchronizer.js +++ b/packages/state/synchronizer.js @@ -13,6 +13,11 @@ export class Synchronizer { } } + addChild(child) { + this.children.push(child); + this.childrenPacketsForUpdate.push(child.packetsForUpdate.bind(child)); + } + packetsForUpdate(force = false) { const packetsForUpdate = []; for (let i = 0; i < this.childrenPacketsForUpdate.length; i++) {