feat(control): spawn session NPCs and resize tokens in preview

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Ivan Fontosh
2026-08-18 14:42:06 +08:00
parent 1ab6ffd593
commit 1a9f0f2557
28 changed files with 1446 additions and 89 deletions
@@ -55,6 +55,18 @@ function applyEvent(
},
};
}
if (event.kind === 'setSize') {
const prevPlacement = prev.byPlayerId[event.playerId];
if (!prevPlacement) return prev;
return {
...prev,
revision: prev.revision + 1,
byPlayerId: {
...prev.byPlayerId,
[event.playerId]: { ...prevPlacement, sizeN: event.sizeN },
},
};
}
return prev;
}