feat: economy and polishing
This commit is contained in:
@@ -391,6 +391,8 @@ export async function mountWorld(host: HTMLElement, opts: MountWorldOptions = {}
|
||||
clockOffset = d.serverNow - Date.now();
|
||||
if (d.camera) mergeCamera(d.camera);
|
||||
if (d.avatars) for (const av of d.avatars) syncAvatar(av);
|
||||
if (d.removed) for (const id of d.removed) avatars.delete(id);
|
||||
if (d.avatars || d.removed) pruneEntities();
|
||||
if (d.nodes) for (const st of d.nodes) syncNode(st);
|
||||
for (const e of d.events ?? []) opts.onEvent?.(e);
|
||||
if (d.stats) opts.onStats?.(d.stats);
|
||||
|
||||
Reference in New Issue
Block a user