feat: world orchestrator with living NPC economy

This commit is contained in:
2026-06-12 14:22:42 +00:00
parent 29b1aef7d3
commit b2aef9e72c
4 changed files with 148 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
export function onPlayerArrive() {}
export function playerSystem(world) {
const loc = world.player.loc;
if (loc.kind === 'docked') return world.galaxy.planets[loc.planetId].systemId;
return loc.systemId ?? null;
}