feat: economy and polishing

This commit is contained in:
2026-09-05 19:12:28 +05:00
parent ca830b00b9
commit c56ec113cc
18 changed files with 868 additions and 42 deletions
+2
View File
@@ -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);