feat(play): hide NPC tokens from the player screen

A token can be hidden per session from the control menu. The GM still sees it, and its path keeps moving. Scene editor grid labels no longer call a removed helper.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Ivan Fontosh
2026-10-02 10:15:32 +08:00
parent 060bbd471a
commit f6c301a12b
10 changed files with 165 additions and 23 deletions
+3
View File
@@ -84,6 +84,8 @@ export type SceneNpcTokensSessionPlacement = {
disposition?: NpcDisposition;
/** Session-only: серая рамка и grayscale. */
inactive?: boolean;
/** Session-only: токен виден мастеру, но не на презентации. */
hiddenFromPlayers?: boolean;
};
/** Подкрепление: токен только на сессию, не пишется в scene.npcTokens. */
@@ -110,6 +112,7 @@ export type SceneNpcTokensSessionEvent =
| { kind: 'setSize'; placementId: string; sizeN: number }
| { kind: 'setDisposition'; placementId: string; disposition: NpcDisposition }
| { kind: 'setInactive'; placementId: string; inactive: boolean }
| { kind: 'setHiddenFromPlayers'; placementId: string; hidden: boolean }
| { kind: 'setScale'; scale: number }
| {
kind: 'spawn';