feat: addChildren
This commit is contained in:
parent
645286ed57
commit
92c23424a3
|
@ -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++) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user