feat(players): NPC disposition types and launch-with-players session tokens

Add Hostile/Neutral/Friendly ring types with session-only inactive overrides on control, plus launch-with-players flow and live player tokens on the map.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Ivan Fontosh
2026-07-30 17:11:01 +08:00
parent 101f595bac
commit cc50e64e21
38 changed files with 1803 additions and 59 deletions
+2 -1
View File
@@ -47,7 +47,7 @@ async function seedProjectWithNpcAndPlacement(
const npcUpsert = await invokeInRenderer<{ project: Project }>(page, 'project.upsertNpc', {
name: `Guard ${Date.now()}`,
filePath: sampleImagePath,
ringColor: '#c9a227',
disposition: 'neutral',
imageOffset: { x: 0, y: 0 },
});
const npc = npcUpsert.project.npcs[npcUpsert.project.npcs.length - 1]!;
@@ -63,6 +63,7 @@ async function seedProjectWithNpcAndPlacement(
nx: 0.35,
ny: 0.4,
sizeN: 0.12,
disposition: 'neutral',
},
],
},