feat: addChildren

This commit is contained in:
cha0s 2019-05-21 03:09:06 -05:00
parent 645286ed57
commit 92c23424a3

View File

@ -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++) {